HackerTrans
TopNewTrendsCommentsPastAskShowJobs

agons

no profile record

comments

agons
·geçen ay·discuss
The first use case that comes to mind is if you want a DSL to build expressions that are evaluated later in some different context e.g. when using `polars`:

```python df.filter( pl.col("foo") == pl.col("bar"), ) ```

Sqlalchemy does something equivalent too, and I'm sure there are many others.
agons
·4 ay önce·discuss
I can imagine a pipeline where intermediate stages have been inserted to have some side effect, like debug logging all data passing through.
agons
·5 ay önce·discuss
The problem comes when there are lucrative odds for some unlikely scenario, which you can influence into realisation, and that outcome might be counter to the company's goals (i.e. sabotage)
agons
·10 ay önce·discuss
Huh.
agons
·11 ay önce·discuss
Is there a reason the Zig compiler can't perform type-narrowing for `u` within the `U::A(_) | U::B(_)` "guard", rendering just the set of 2 cases entirely necessary and sufficient (obviating the need for any of the solutions in the blog post)?

I'm not familiar with Zig, but also ready to find out I'm not as familiar with type systems as I thought.
agons
·geçen yıl·discuss
It gets worse the further you go, this was where I had to bail:

> the format is much favored by AI frameworks such as TensorFlow and PyCharm.
agons
·geçen yıl·discuss
Could mean "appear" as in "show up"