HackerTrans
TopNewTrendsCommentsPastAskShowJobs

agons

no profile record

comments

agons
·last month·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 months ago·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 months ago·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 months ago·discuss
Huh.
agons
·11 months ago·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
·last year·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
·last year·discuss
Could mean "appear" as in "show up"
agons
·2 years ago·discuss
> one of the first times

I don't think you can say it's "neither"! :)