Better HN
topnewbestaskshowjobs
Log inSign up

agons

86 karma · joined Mar 20, 2021 (5y ago) · 27 submissions

Submissions

1.

AI bots flooded 2023 UK government consultation on disposable vapes ban(theguardian.com ↗)

3 points · by agons · 3w ago · discuss

comment 1mo ago · link · parent

Is it possible the size of the market for hand woven rugs has actually stayed the same, and the mass produced variety has simply filled the void for the large segment who were never able to afford them?

comment 1mo ago · link · parent

This comment doesn't help the pedant

comment 2mo ago · link · parent

I'm not sure I understand, are you suggesting that Tom Scott made it up?

comment 5mo ago · link · parent

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.

comment 8mo ago · link · parent

I can imagine a pipeline where intermediate stages have been inserted to have some side effect, like debug logging all data passing through.

comment 8mo ago · link · parent

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)

comment 1y ago · link · parent

Huh.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Could mean "appear" as in "show up"

comment 2y ago · link · parent

> one of the first times

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

comment 3y ago · link · parent

I don't think your "obvious" is the same as that of the person you're replying to.

comment 3y ago · link · parent

Tough to gauge how impressive this is without a before/after for comparison tbh.

comment 3y ago · link · parent

I'd say that the people counting leap seconds are the ones "doing something".

At the point they needed to be inserted, Unix systems carry on counting seconds as units of time as they pass, "ignoring" the need to add 1 for the purposes of accounting.

comment 3y ago · link · parent

Hey, you're leaning into it too much!

Who are people who are against typing in this day and age?

comment 3y ago · link · parent

The problem with that is that Jupyter requires a back-end to do any of the actual processing that runs the code in the cells.

Only way I can think to make the html file truly portable while fully functional would be to embed a python interpreter and all required libraries as wasm.

Could be possible with pyodide? I haven't used it.

comment 3y ago · link · parent

I find `typer` way more ergonomic than either argparse or click (which it uses under the hood).

If you're developing something more complex, you might find the feature set too small, but you can get surprisingly far with what's there.

The benefits from its type safety and lack of boilerplate alone are enough to keep me using it in favour of anything else.

comment 4y ago · link · parent

Just make sure to read the warning labels and take them seriously please. I believe the use of boiling water frequently causes them to rupture, inflicting burns on their users.

comment 4y ago · link · parent

OCI = Oracle Cloud Infrastructure (not Open Container Initiative)

comment 4y ago · link · parent

This looks like a really good resource, but why is it so difficult to find a somewhat up-to-date description of networking in the Linux kernel?

It seems like the least documented (at a high level, anyway) part of the kernel - if anyone knows a good resource I'd love to hear it.

comment 5y ago · link · parent

How was your approach different?

comment 5y ago · link · parent

> feel free to drive engagement on my post

comment 5y ago · link · parent

I would have thought Cython would be the closest analogue for comparison.

comment 5y ago · link · parent

It didn't read unkind or snarky at all to me - just an amicable way of ending a thread of investigation where the result was a simple "a ha, I understand" moment.

comment 5y ago · link · parent

What kinds of community problems do you have in mind?

comment 5y ago · link · parent

This can definitely be significant as part of a trend