Remix.run Logo
▲ sheepscreek 7 hours ago

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.

▲nitsky 6 hours ago | parent [-]

Another reason: type aware listing in oxlint.

▲anamexis 6 hours ago | parent [-]

Oxlint already has type-aware linting, integrated with TS7/typescript-go.

▲nitsky 2 hours ago | parent [-]

Yeah but now it can just all be in rust, which is a lot simpler.