We rewrote our Rust WASM parser in TypeScript and it got faster
71–80 of 239 posts
Re: We rewrote our Rust WASM parser in TypeScript and it got faster
#72Earlier quoted context omitted.
What it says is this: > uv is fast because of what it doesn’t do, not because of what language it’s written in. The standards work of PEP 518, 517, 621, and 658 made fast package management possible. Dropping eggs, pip.conf, and permissive parsing made it achievable. Rust makes it a bit faster still.
Yes exactly! That quote directly disproves that all of the improvements UV has over competitors is because of algos, not because of rust. So the claim is not well supported at all by the article as you stated, in fact the claim is literally disproven by the article.
Re: We rewrote our Rust WASM parser in TypeScript and it got faster
#73Re: We rewrote our Rust WASM parser in TypeScript and it got faster
#74You still do get some latency from the event loop, because postMessage gets queued as a MacroTask, which is probably on the order of 10μs. But this is the price you have to pay if you want to run some code in a non-blocking way.
Re: We rewrote our Rust WASM parser in TypeScript and it got faster
#75Something not unlike this happened to me when moving some batch processing code from C++ to Python 1.4 (this was 1997). The batch started finishing about 10x faster. We refused to believe it at first and started looking to make sure the work was actually being done. It was. The port had been done in a weekend just to see if we could use Python in production. The C++ code had taken a few months to write. The port was…
[dead]
Re: We rewrote our Rust WASM parser in TypeScript and it got faster
#76Something not unlike this happened to me when moving some batch processing code from C++ to Python 1.4 (this was 1997). The batch started finishing about 10x faster. We refused to believe it at first and started looking to make sure the work was actually being done. It was. The port had been done in a weekend just to see if we could use Python in production. The C++ code had taken a few months to write. The port was…
[dead]
I was not actually sure this one was a bot, despite LLM-isms and, sadly, being new. But you can look at the comment history and see.
Re: We rewrote our Rust WASM parser in TypeScript and it got faster
#77Earlier quoted context omitted.
Yes exactly! That quote directly disproves that all of the improvements UV has over competitors is because of algos, not because of rust. So the claim is not well supported at all by the article as you stated, in fact the claim is literally disproven by the article.
You are right. 99% is not 100%.
Re: We rewrote our Rust WASM parser in TypeScript and it got faster
#78Re: We rewrote our Rust WASM parser in TypeScript and it got faster
#79The real win here isn't TS over Rust, it's the O(N²) -> O(N) streaming fix via statement-level caching. That's a 3.3x improvement on its own, independent of language choice. The WASM boundary elimination is 2-4x, but the algorithmic fix is what actually matters for user-perceived latency during streaming. Title undersells the more interesting engineering imo.
Re: We rewrote our Rust WASM parser in TypeScript and it got faster
#80Earlier quoted context omitted.
Some architectures are made easier by the choice of implementation language.
In my experience Rust typically makes it a little bit harder to write the most efficient algo actually.