HackerTrans
TopNewTrendsCommentsPastAskShowJobs

agons

no profile record

comments

agons
·पिछला माह·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 माह पहले·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 माह पहले·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 माह पहले·discuss
Huh.
agons
·11 माह पहले·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
·पिछला वर्ष·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
·पिछला वर्ष·discuss
Could mean "appear" as in "show up"