Comment by AbuAssar
14 hours ago
According to voidzero, this port is up to 8x faster than TS 7.0 & ~70% less memory.
Microsoft should seriously consider porting typescript to rust at this point
14 hours ago
According to voidzero, this port is up to 8x faster than TS 7.0 & ~70% less memory.
Microsoft should seriously consider porting typescript to rust at this point
I'm pretty sure they already considered it before settling on Go. Allegedly, they chose Go because it was easier to translate to.
That was pre-AI. Ironically if they waited just another year they could've done this port directly to Rust themselves.
Not really because this port is based on the Go version. I doubt it would be as easy for an LLM to port the TS 6 codebase.
1 reply →
I wonder how more frustrating is it to work on the compiler in rust vs go.
IIRC at the time of the port to go they wanted fast test and compile time, of course it's a different era now.
That's interesting. A go version to iterate on the code and a rust version to run the code might be an optimal split here.
Idk. Apart from the fact that benchmarks are generally of questionable value, what's the point? Is the TS compiler unbearably slow?
They say the point in the article - WASM
(Not sure if this could be a genuine remark or is more of a joke, but)
Why not vibecode a Go -> WASM cross-compiler, then?
14 replies →
The success of "modern" CLI tools written in Rust (uv, oxlint, turbopack) show there's a clear demand for faster tools in general.
Also, faster feedback loop is crucial for AIs, so I guess this makes sense.
What they show is that JavaScript should never have left the browser into the backend.
Don't rewrite into Rust, Go, Java, .NET, Zig, Odin, whatever.
Start with them directly.
> Is the TS compiler unbearably slow?
It's not. Even the JS compiler is still fast enough for many projects given the single core improvements in hardware (eg Apple Silicon).
Faster feedback loops almost always deliver improvements elsewhere.
[flagged]
[dead]
Up to 8x faster seems kinda of a crazy claim. 8x faster at what?! TS 7.0 is reasonably well optimized and compiles VSCode in well under 10 seconds..
This can type check and compile VSCode in less than a second?
For VSCode: 4x speedup vs TS 7, 3x vs TS 7.1
Yes, it's in the article.
Well, no, not exactly. The article says vscode is compiled in 5.28s in typescript 7.1 (nightly), and in 1.73s in tsrs (dev), which is 3x faster.
1 reply →