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"