News for hackers. Stuff that matters.
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).