Better HN
topnewbestaskshowjobs
Log inSign up

orlp

8,968 karma · joined Mar 27, 2013 (13y ago) · 1,507 submissions

Developer at https://pola.rs/.

Publish a blog at https://orlp.net/blog/.

Other socials:

    http://github.com/orlp/  
    https://stackoverflow.com/users/565635/orlp  
    https://linkedin.com/in/orson-peters/
Submissions

comment 1w ago · link · parent

We have it: unsafe extern "C" { }.

An actual stable native Rust ABI sounds like a forward compatibility nightmare.

comment 2w ago · link · parent

Office tower PCs aren't a market anymore. It's only laptops or single-board mini PCs connecting to a remote environment.

comment 2w ago · link · parent

> Will we go back to PCs? As in: are we going to get cheap local hackable frontier AIs at some point?

Forget about AI, the entire PC market is getting killed over this.

As an avid gamer I'm unsure if in 5 years I can even buy a gaming PC anymore. Not even because of cost, but it's unclear if anyone will still make the components anymore.

NVIDIA isn't interested, nor is AMD.

comment 3w ago · link · parent

> The quoted tweet about bloodlines. There are no lines worth speaking of in biology, there are webs. You are not the last one in a very long line, you're a twig on a very big tree. People who talk about their bloodline are often a bit iffy.

A fun thought exposing the silliness: every woman without a daughter is the end of a chain of mothers going back millions of years.

comment 3w ago · link · parent

From prices I can see it's 10-20x more expensive than tape archives.

comment 3w ago · link · parent

So if this happened to OpenAI it would've been instantly auto-updated everywhere? VS Code has an "auto update delay" which I have configured to a week, but I just found out that (https://code.visualstudio.com/updates/v1_123):

> Note: This delay does not apply to extensions from trusted publishers such as Microsoft, GitHub, and OpenAI. These extensions continue to update immediately.

You can't even configure which publishers you "trust"...

comment 3w ago · link · parent

It's not (just) about cheap labor. The sheer density of resources and knowledge in Shenzhen is just insane.

Manufacturing at small to medium scales is so heavily determined by small blockers/latencies. Missing some component, or need a modified PCB? In the US or Europe you'd be happy to find a replacement within a week, or more likely have to wait a month for it to come from China. In Shenzhen you can probably walk 2km and pick it up yourself in under an hour.

comment 1mo ago · link · parent

> There is a lot of cynicism in this thread but the fact this is still open and hour later ends the narrative in my view.

Clearly people aren't cynical enough.

I find it strange no one in this thread has even considered the possibility that the private key of the wallet isn't on the machine.

OP gets their working exploit neatly logged (or even multiple approaches), keeps the money, strengthens the illusion the exploit isn't that bad, and gets a free $500 on top from someone who added to the wallet.

comment 1mo ago · link · parent

Math isn't a science. The scientific method is irrelevant for it.

comment 1mo ago · link · parent

Block-level full disk encryption? AES-CTR would require a per-write nonce.

Encrypting UUIDs in a database?

ISO 9564-1 PIN encryption?

comment 1mo ago · link · parent

AES is used for a whole lot more than just encryption in CTR mode.

comment 1mo ago · link · parent

`values` might be quite large (up to W), without `values_agg` getting the current window value would be O(W) rather than O(1).

Note that there isn't a `finalize` call, only an `eval`, which gives the current aggregate over the window. You typically use these sliding window functions in a way where you want to get the current value every time the window moves.

comment 1mo ago · link · parent

> If you push, then pop, you should have the same data as you started with.

That's the case for a LIFO queue, but not a FIFO queue. Both commonly use the push/pop nomenclature.

comment 1mo ago · link · parent

That's right, and one more property I consider very important for numerical stability:

- The aggregate only depends on the value currently in the window.

Most problems caused by NaNs/infinities/catastrophic cancellation/etc in sliding windows are covered by this property.

comment 1mo ago · link · parent

I don't like `shift` as a name because it might give the impression the entire window shifts. Push increases the window size by one and pop decreases the window size by one (evicting the earliest pushed element).

In my mental model `shift` would move the entire window, it would be one push + one pop.

comment 1mo ago · link · parent

My question wasn't one for right now, it's an ongoing question as more of the field starts adopting AI.

comment 1mo ago · link · parent

> I enjoy programming and producing high quality work. Why would I want to give up the thing I find fun and produce something subpar?

No one who cares wants to. That's not the question.

The question is whether you can continue to get paid doing so.

comment 1mo ago · link · parent

Sadly the experience with physical products tells us that the vast majority of people prefer cheap disposable crap over expensive craftsmanship.

comment 1mo ago · link · parent

It's likely that way more than just one of these is wrong. But even if it turns out 80% is wrong this is still 100+ results...

comment 1mo ago · link · parent

I'm more worried about them doing bad things at the behest of people who want them to do bad things.

That is 1. immediately technically possible, and 2. realistic.

If you need a source for 2 I'd suggest you open any history book.

comment 1mo ago · link · parent

I'm not denying that, but I'd still like to know what that cost.

comment 1mo ago · link · parent

Yes, what does that mean?

comment 1mo ago · link · parent

Oops, edited.

comment 1mo ago · link · parent

I'd really like some clarity on what that means. E.g. DeepMind has 'cheated' with this in the past, claiming that AlphaZero only took 4 hours to reach super-human chess levels while conveniently leaving out the fact that it was 4 hours x 5000+ TPUs. Sure it's impressive that it only took 4 hours wall-clock but it's very misleading as to cost.

Can we get a number in Blackwell GPU-hours, kWh, or some other compute-scaled metric?

comment 1mo ago · link · parent

Polars does have an asof join so I guess the mapping hasn't been made yet from SQL. Could you open up an issue at https://github.com/pola-rs/polars/issues ?

comment 1mo ago · link · parent

I'm not sure what you tried. Is this not what you want?

    >>> df = pl.DataFrame({"x": ["a", "b", "c"], "y": ["d", "e", "f"]})
    >>> df.with_columns(new=pl.col.x + " text " + pl.col.y)
    shape: (3, 3)
    ┌─────┬─────┬──────────┐
    │ x   ┆ y   ┆ new      │
    │ --- ┆ --- ┆ ---      │
    │ str ┆ str ┆ str      │
    ╞═════╪═════╪══════════╡
    │ a   ┆ d   ┆ a text d │
    │ b   ┆ e   ┆ b text e │
    │ c   ┆ f   ┆ c text f │
    └─────┴─────┴──────────┘

comment 1mo ago · link · parent

I think the person you're replying to is more so saying that by choosing the right queries, machine, disk setup, caching, settings, thread count, RAM amount, etc, you can get quite different results. There is a reason everyone always wins their own benchmarks, and it doesn't even have to be dishonest - you optimize and iterate for your own benchmark whereas everyone else just gets one shot to do well out of the box.

I tried my best to be as transparent and fair as possible, running everyone with out-of-the-box settings on a third party's queries (DuckDB), a third party's data generator (tpcgen-rs, from the DataFusion guys), on a stock setup available to everyone (AWS machines).

The one exception is that we also ran Polars locked to 32 threads on the large machine (in addition to the out-of-the-box setup), which was to highlight we can do a lot better on small data. We still suffer from a relatively high constant overhead on very high CPU count machines if the data isn't large enough, but I'm working on fixing that. It's possible that DuckDB / DataFusion have similar scaling issues with high thread counts and would do better with 32 threads as well, I didn't test that.

comment 1mo ago · link · parent

Peak memory usage per query is in the raw data (in `results/`) in the repository: https://github.com/pola-rs/polars-2.0-benchmark/.

comment 1mo ago · link · parent

Doing the benchmarks for 2.0 on the large AWS metal machines at small data sizes (SF=10) really opened my eyes that we have some low-hanging fruit in Polars when it comes to optimizing our constant overhead for smaller queries.

For example our join currently does a full partition into T partitions, for each of the T threads. Overall we create T^2 partitions, which on a 192-core machine is non-trivial. Great if you have a ton of data to feed that with, but if you 'only' have a few dozen million rows it becomes rather small. This is the primary reason we saw in the benchmarks that Polars pinned to 32 threads beats 192 thread Polars at SF=10.

I'll be working on improving that soon. I expect that to have a big impact on SF=10, and a decent impact on ClickBench, which sits between SF=10 and SF=100 in terms of rows.

comment 1mo ago · link · parent

Actually yes. We had already been planning to do 2.0 for a long time. We originally said we'd move on from 1.x quickly when released 1.0 but ended up staying at 1.x much longer than intended.

From a quick check our first PRs were merged to the 2.0 branch in June:

    2026-06-17T21:27:51Z #27993 chore: Stop coercing `pl.col(...)` to selector ...
    2026-06-18T14:19:26Z #27996 chore!: Replace multi-seed hash API with a single seed
    2026-06-19T07:05:11Z #27991 chore(python!): Remove `Expr.flatten` function
12345
51