Recent submissions

Comment · 5 days ago
The problem here is experimental evidence, which is the general reason they focus on mathematics.
Comment · 5 days ago
No, the discussion at https://www.reddit.com/r/esp32/comments/1x3bmjh/ordering_esp... clarifies that the FCC ID was faked and the product was counterfeit.
Comment · 5 days ago
The original post and the following discussion at https://www.reddit.com/r/esp32/comments/1x3bmjh/ordering_esp... clarify that the devices ordered were likely counterfeit and one had a fake FCC ID, so it was illegal to buy them irrelevant to the new law and likely why they were seized.

So the conclusion is not necessarily "don't buy ESP", but "verify what you're actually buying".

Comment · 7 days ago
Since undefined behavior is impossible, that means there are only two options.
Comment · 7 days ago
Sure, but in this context, the meaning was clear to refer to the differences from C++.
Comment · 9 days ago
I agree that the best leaders are devastating. /s
Comment · 9 days ago
Java and C# did kill C++. They just did it only in places they were feasible. People forget that before them, it was very common to write application and even serve code in C++. Now Rust is targeting its remaining niche(s).
Comment · 10 days ago
Here's a tip most Rust users don't know about extension traits: if you put `#[rust_analyzer::prefer_underscore_import]` above your trait (and you're using rust-analyzer and not RustRover), autocompletion and the import assist will import the trait `as _` by default, which is very useful for extension traits.
Comment · 10 days ago
> True, but there's no reason PGO can't eventually be implemented for native AOT.

It already is implemented, I believe. The thing I wondered is how NativeAOT could be faster, which is what GP claimed.

(Also, practically it should be slower because NativeAOT is based on the JIT and the JIT is worse at optimizing than LLVM).

Comment · 10 days ago
You mean 200B?
Comment · 10 days ago
That means those are probably builders and not setters. Do they change an existing object or a newly-constructed or to-be-constructed object?
Comment · 10 days ago
It does but only on the stack, known as `ref struct`. E.g. `Span<T>` is an interior pointer, and this is extremely common in modern C#.
Comment · 10 days ago
He writes regularly. Sometimes explaining C++, rarely explaining C#, sometimes historic stories, sometimes current stories, etc..
Comment · 10 days ago
You can always not enable PGO of course. What I meant is that I don't expect NativeAOT to do better.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton