logoalt Hacker News

sheepscreek • today at 3:13 PM • 1 reply • view on HN

Ah took me a while to understand the reason behind this.

It wasn’t “let’s build a faster Rust based Typescript compiler” at all. That was a nice side-effect.

They needed a Typescript compiler that can run on their WASM only sandbox. So the only existing option was to export tsc Go to WASM, but that comes with the full Go runtime.

And to avoid that cost, they experimented with a Rust compiler and turns out it’s even faster than the reference tsc/Go implementation.


Replies

nitsky • today at 3:31 PM

Another reason: type aware listing in oxlint.

➕ show 1 reply