News for hackers. Stuff that matters.
Re:We rewrote our Rust WASM Parser in TypeScript – and it go... by estebank on Friday March 20, 2026 @07:09PM (#47462041)
Some architectures are made easier by the choice of implementation language.
Re:We rewrote our Rust WASM Parser in TypeScript – and it go... by crubier on Friday March 20, 2026 @08:27PM (#47462718)
In my experience Rust typically makes it a little bit harder to write the most efficient algo actually.
Re:We rewrote our Rust WASM Parser in TypeScript – and it go... by catlifeonmars on Friday March 20, 2026 @11:26PM (#47463706)
That’s usually ok bc in most code your N is small and compiler optimizations dominate.
Re:We rewrote our Rust WASM Parser in TypeScript – and it go... by Defletter on Friday March 20, 2026 @11:37PM (#47463752)
Would you be willing to give an example of this?
Re:We rewrote our Rust WASM Parser in TypeScript – and it go... by lukeweston1234 on Saturday March 21, 2026 @04:27AM (#47465147)
Not OP, but one example where it is a bit harder to do something in Rust that in C, C++, Zig, etc. is mutability on disjoint slices of an array. Rust offers a few utilities, like chunks_by, split_at, etc. but for certain data structures and algorithms it can be a bit annoying.

It's also worth noting that unsafe Rust != C, and you are still battling these rules. With enough experience you gain an understanding of these patterns and it goes away, and you also have these realy solid tools like Miri for finding undefined behavior, but it can be a bit of a hastle.

Re:We rewrote our Rust WASM Parser in TypeScript – and it go... by catlifeonmars on Saturday March 21, 2026 @10:53AM (#47467593)
Has no one written a python! macro for this use case?
Re:We rewrote our Rust WASM Parser in TypeScript – and it go... by foldr on Saturday March 21, 2026 @06:47AM (#47465877)
Mutating tree structures tends to be a fiddle (especially if you want parent pointers).
Re:We rewrote our Rust WASM Parser in TypeScript – and it go... by EdwardDiego on Saturday March 21, 2026 @12:37AM (#47464024)
UV also has the distinct advantage in dependency resolution that it didn't have to implement the backwards compatible stuff Pip does, I think Astral blogged on it. If I can find it, I'll edit the link in.

edit wasn't Astral, but here's the blog post I was thinking of. https://nesbitt.io/2025/12/26/how-uv-got-so-fast.html

That said, your point is very much correct, if you watch or read the Jane Street tech talk Astral gave, you can see how they really leveraged Rust for performance like turning Python version identifiers into u64s.