News for hackers. Stuff that matters.
Re:We rewrote our Rust WASM Parser in TypeScript – and it go... by peter_retief on Saturday March 21, 2026 @04:42AM (#47465232)
I suspect that you used highly optimized algorithms written for python, like the vector algorithms in numpy? You will struggle to write better code, at least I would.
Re:We rewrote our Rust WASM Parser in TypeScript – and it go... by masklinn on Saturday March 21, 2026 @04:59AM (#47465327)
Python 1.4 would be mid-late 90s long before numpy and vector algorithms would have been available.

I suspect it’s more likely to be something like passing std::string by value not realising that would copy the string every time, especially with the statement that the mistake would be hard to express in Python.

Re:We rewrote our Rust WASM Parser in TypeScript – and it go... by johnisgood on Saturday March 21, 2026 @05:57AM (#47465656)
Everything is new to the uninitiated. :P