TL;DR
Get the latest gadgets delivered free with Prime
- Fast, free delivery on millions of items
- Prime Video, Amazon Music and more included
- Member-only deals all year
Cloudflare, VoidZero and Max Schwenk of Owner.com are working on tsrs, an experimental Rust port of the TypeScript compiler, in collaboration with the TypeScript team and within the Oxc toolchain. The project reports early benchmark results of up to eight times faster performance and about 70% lower memory use than TypeScript 7.0 under a stated matched-worker comparison; the figures are not a stable-release guarantee.
Cloudflare, VoidZero and Max Schwenk of Owner.com are developing tsrs, an experimental Rust port of the TypeScript compiler, in collaboration with the TypeScript team. The project is intended to make type checking faster and less memory-intensive while preserving TypeScript’s language behavior and leaving decisions about the language’s direction with its maintainers.
Cloudflare says early benchmarks show tsrs running up to eight times faster and using about 70% less memory than TypeScript 7.0 when both are tested with the same number of type-check workers. These are project-reported early results, not a claim that every workload or machine will see those gains. Cloudflare also notes that TypeScript 7.1 beta itself is up to 2.5 times faster than TypeScript 7.0, and says some optimizations developed through tsrs work have been contributed upstream.
The project is being incubated within the Oxc JavaScript compiler toolchain. Cloudflare describes it as a port, not a fork: the TypeScript team remains responsible for language design, and the Rust implementation is meant to track the original compiler’s behavior. The announcement says an experimental package can be installed from npm as tsrs.
Cloudflare also says tsrs currently differs from upstream TypeScript in some ways, including the order in which diagnostics are printed. The team plans to reduce such differences before a stable release. It is also working with Theo Browne to merge tsc-rs and tsrs into one package intended to support TypeScript features including the Language Server Protocol and content mappers.
Faster Checks Across More Environments
A Rust implementation could matter beyond shortening local type-check waits. Cloudflare says a smaller memory footprint can make it more practical to run development and build tools in browser-based environments, Cloudflare Workers and other constrained systems. The company points to WebAssembly as a particular reason for choosing Rust: Rust’s memory model can support interactions between a WebAssembly module and its host without bundling a language garbage collector in the same way Cloudflare says a Go Wasm build requires.
If the port proves both fast and compatible, developers and platforms could have more options for running TypeScript tooling in sandboxes, browser clients, embedded devices and IoT applications. Those are prospective uses described by Cloudflare, not capabilities established for a stable tsrs release. The project’s practical value will depend on whether its performance holds across real codebases and whether it keeps pace with TypeScript’s evolving behavior.
The work could also benefit users of the official compiler if performance improvements found in tsrs are accepted upstream. Cloudflare says it intends to contribute such improvements to the TypeScript Go codebase, so gains would not necessarily be limited to people adopting the Rust port.
As an affiliate, we earn on qualifying purchases.
Why a Rust Port Now
TypeScript has already undergone a major implementation change: the TypeScript team ported its compiler from JavaScript to Go. Cloudflare’s announcement says that version brought substantial speed and memory improvements. The company argues that a Rust port addresses a different priority as well: running compact tooling in WebAssembly environments, where memory use and interaction with the host can matter.
Cloudflare says previous attempts to reimplement TypeScript were difficult because the language and compiler are complex, and describes the official Go port as the sole earlier port to have succeeded. The company also points to recent AI systems capable of assisting with large-scale code ports, alongside increased interest in faster TypeScript tooling. That is the project team’s explanation for why a new effort is feasible now; it does not establish that automated porting removes the need for ongoing compatibility work.
To keep tsrs aligned, Cloudflare plans to adapt a process it uses for Vinext, its Next.js-related project: agents review upstream changes, open tracking issues and run compatibility tests. Cloudflare says TypeScript changes would be monitored in the same way, with the aim of identifying gaps and proposing fixes rather than letting the port drift.
“We are not forking TypeScript.”
— Cloudflare, in its announcement
As an affiliate, we earn on qualifying purchases.
Compatibility and Benchmarks Still Developing
Tsrs is experimental, and the announcement does not provide a stable-release date or a full account of how performance varies across projects, hardware or compiler settings. The reported comparison covers a specific setup—the same number of type-check workers against TypeScript 7.0—and should not be read as a universal speedup. Cloudflare says its default adaptive configuration can use more memory in exchange for additional speed, making exact settings relevant to comparisons.
Compatibility also remains in progress. Cloudflare acknowledges differences from upstream, including diagnostic ordering, and says the TypeScript team must retain control over language decisions. The announcement does not specify how often the compatibility suite will run, what level of parity will be required for a stable release, or when the planned package merger will be complete. It also does not provide details beyond the start of its “What’s next” section, which is cut off in the supplied report.
As an affiliate, we earn on qualifying purchases.
Compatibility Work Before Stability
The immediate work described by Cloudflare is to bring tsrs and tsc-rs into one package, expand support for TypeScript features such as LSP and content mappers, and track upstream changes through automated review and compatibility testing. The team also plans to investigate performance improvements and contribute suitable changes to TypeScript’s Go implementation.
For developers, the next practical step is to try the experimental npm package and evaluate it against their own projects, while treating current results and behavior as provisional. Cloudflare has not announced a stable-release date. A clearer assessment will depend on further benchmark details, compatibility progress and the project’s ability to stay synchronized with changes made by the TypeScript team.
As an affiliate, we earn on qualifying purchases.
Key Questions
What is tsrs?
Tsrs is an experimental Rust port of the TypeScript compiler, being developed by Cloudflare, VoidZero and Max Schwenk of Owner.com. The project is incubating within the Oxc toolchain and is intended to follow TypeScript’s behavior.
Is tsrs a replacement for the official TypeScript compiler?
Cloudflare presents it as a port, not a fork or announced replacement. The company says the TypeScript team will retain control of language design, and tsrs still has known differences from upstream.
How much faster is tsrs?
Cloudflare reports early results of up to eight times faster than TypeScript 7.0, with about 70% less memory use when the same number of type-check workers is used. These are project-reported benchmark results, not a guarantee for every workload.
Can developers try tsrs now?
Yes. Cloudflare says an experimental npm package is available as tsrs. The announcement does not give a stable-release date, and users should expect that compatibility work is ongoing.
Why build the port in Rust?
Cloudflare highlights Rust’s fit for WebAssembly and memory-constrained environments, including possible browser and serverless uses. Those are intended benefits; the announcement does not establish that all such uses are production-ready today.
Source: hn
Halloween Picks
halloween
As an affiliate, we earn on qualifying purchases.
