News for hackers. Stuff that matters.

agons

Re:Yes, and on Friday October 09, 2026 @07:43AM (#50019125)
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?
This comment doesn't help the pedant
Re:Exfiltrate Your Weights on Sunday September 20, 2026 @05:20AM (#49774066)
I'm not sure I understand, are you suggesting that Tom Scott made it up?
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.

Re:Shell Tricks That Make Life Easier (and Save Your Sanity) on Thursday March 26, 2026 @08:41AM (#47529724)
I can imagine a pipeline where intermediate stages have been inserted to have some side effect, like debug logging all data passing through.
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)
Re:Partially Matching Zig Enums on Saturday August 09, 2025 @12:29PM (#44847844)
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.

Re:Python Pandas Ditches NumPy for Speedier PyArrow on Wednesday June 04, 2025 @02:09PM (#44183727)
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.

Could mean "appear" as in "show up"
> one of the first times

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

I don't think your "obvious" is the same as that of the person you're replying to.
Tough to gauge how impressive this is without a before/after for comparison tbh.
Re:Parsing time stamps faster with SIMD instructions on Sunday July 02, 2023 @01:21PM (#36563482)
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.

Re:Proposing a Struct Syntax for Python on Wednesday June 14, 2023 @07:16PM (#36334203)
Hey, you're leaning into it too much!

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

Re:JupyterLab 4.0 on Tuesday June 13, 2023 @07:05PM (#36318875)
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.

Re:What new Python features are the most useful for you? on Wednesday January 18, 2023 @06:52PM (#34434845)
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.

Re:Electrically heated clothing (2013) on Thursday September 22, 2022 @08:10PM (#32946298)
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.
OCI = Oracle Cloud Infrastructure (not Open Container Initiative)
Re:Linux Insides on Saturday May 14, 2022 @01:42PM (#31380412)
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.

Re:Generating relocatable code for ARM processors on Tuesday October 12, 2021 @06:05PM (#28845622)
How was your approach different?
Re:Show HN: UI for Apache Kafka on Friday October 01, 2021 @02:03PM (#28721649)
> feel free to drive engagement on my post
Re:Why I Use Nim instead of Python for Data Processing on Saturday September 25, 2021 @02:41AM (#28651020)
I would have thought Cython would be the closest analogue for comparison.
Re:Querying Parquet with Precision Using DuckDB on Friday June 25, 2021 @07:17PM (#27637409)
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.
Re:React Ruined Web Development on Tuesday June 22, 2021 @06:23PM (#27597997)
What kinds of community problems do you have in mind?
This can definitely be significant as part of a trend