Introducing tsrs: A Port of TypeScript to Rust
Cloudflare Blog ● Covered by 2 sources
Cloudflare, VoidZero, and Owner.com are building tsrs, a Rust port of TypeScript's compiler. They say it can be up to 8x faster and use about 70% less memory.
Based on reporting by Cloudflare Blog — read the original for the full story.
Summary, retelling and take written by AI under human oversight; images are AI-generated illustrations. How we work · Report an error
Cloudflare and VoidZero are working with Max Schwenk of Owner.com on tsrs, a Rust port of the TypeScript compiler. The project is being developed with the TypeScript team and sits inside the Oxc JavaScript compiler toolchain, not as a breakaway fork.
That distinction matters. The people behind tsrs say they want TypeScript’s own team to keep control of the language’s design and direction, while the Rust version stays tightly aligned with upstream. The goal is simple enough: less waiting for type checks, less memory burned, and a compiler that can fit into more places, including the browser.
The early numbers are eye-catching. Against TypeScript 7.0, tsrs is said to be up to 8x faster and use about 70% less memory when the same number of type check workers is used. TypeScript 7.1 beta already narrows that gap, reaching up to 2.5x the speed of TypeScript 7.0, and some of those gains were upstreamed from tsrs.
There’s a caution baked into the launch. The team says benchmark comparisons with other ports can get messy when they use different machine sizes or different defaults, so they worked with the TypeScript team to keep the measurements on the same configuration. By default, tsrs uses an adaptive setup that leans toward more memory in exchange for even more speed.
Cloudflare also wants this to matter beyond compiler bragging rights. The company points to WebAssembly and says Rust’s memory model makes it easier to move data between guest and host, which helps when running build systems in tight loops on Workers. That same approach, they argue, could eventually make fully sandboxed development environments viable in a browser, on embedded devices, or inside IoT apps. The project is still experimental, but it is already installable from npm as tsrs.
My take — AI-written commentary, not fact-checked reporting
This is the sane version of the current Rust-port craze: keep the original project in charge and ship real speedups instead of a prestige fork. The industry’s favorite hobby is rewriting tools and then pretending maintenance is an afterthought; at least this one starts by admitting that’s the hard part.
Read more about this at: Cloudflare Blog
Related stories
NVIDIA Announces CUDA Rust with cuda-oxide (SIMT) and cutile-rs (Tile) for Compile-Time-Safe GPU Kernels
MarkTechPost · 1 month ago ·
4
Introducing Kitesurf: The agent-first browser that runs in V8 isolates on Cloudflare Workers
Cloudflare Blog · 2 months ago ·
47
AI-generated Rust compiles perfectly. That’s the scary part.
The New Stack · 2 months ago ·
15