Cloudflare and VoidZero Announce tsrs, an Experimental Rust Port of the TypeScript Compiler
Cloudflare and VoidZero, together with Max Schwenk of Owner.com, announced tsrs, an experimental Rust port of the TypeScript compiler incubated within the Oxc JavaScript toolchain and developed in collaboration with the TypeScript team. This is product and open source tooling news with no security incident, vulnerability or threat activity described. Early benchmarks claim tsrs is up to 8x faster and uses about 70% less memory than TypeScript 7.0 with the same number of type-check workers. The stated rationale includes better WebAssembly fit (no garbage collector to compile in) for running sandboxed development environments on Cloudflare Workers, in browsers and on embedded devices. The project states it is not a fork and aims to track upstream TypeScript behavior closely.
Detalhes técnicos
- Benchmarks were reportedly run against a configuration agreed with the TypeScript team; TypeScript 7.1 beta is said to be up to 2.5x faster than 7.0, with some optimizations upstreamed from tsrs.
- tsrs ships with an adaptive configuration based on machine type that uses more memory but is faster.
- Known differences from upstream exist, such as the order in which diagnostics are printed; the goal is to minimize them before a stable release.
- Plans include merging tsc-rs and tsrs into one package with LSP support, and integrating with Oxlint for type-aware lint rules.
- Cloudflare notes that frontier AI models now enable large-scale code ports in days.
Remediação
No remediation is required. Teams wishing to evaluate it can install the experimental release from npm (tsrs), treating it as pre-stable software.
Linha do tempo
-
Cloudflare and VoidZero Announce tsrs, an Experimental Rust Port of the TypeScript Compiler
ler a análise desta fonte ocultar
Cloudflare and VoidZero, together with Max Schwenk of Owner.com, announced tsrs, an experimental Rust port of the TypeScript compiler incubated within the Oxc JavaScript toolchain and developed in collaboration with the TypeScript team. This is product and open source tooling news with no security incident, vulnerability or threat activity described. Early benchmarks claim tsrs is up to 8x faster and uses about 70% less memory than TypeScript 7.0 with the same number of type-check workers. The stated rationale includes better WebAssembly fit (no garbage collector to compile in) for running sandboxed development environments on Cloudflare Workers, in browsers and on embedded devices. The project states it is not a fork and aims to track upstream TypeScript behavior closely.
Technical Details
- Benchmarks were reportedly run against a configuration agreed with the TypeScript team; TypeScript 7.1 beta is said to be up to 2.5x faster than 7.0, with some optimizations upstreamed from tsrs.
- tsrs ships with an adaptive configuration based on machine type that uses more memory but is faster.
- Known differences from upstream exist, such as the order in which diagnostics are printed; the goal is to minimize them before a stable release.
- Plans include merging tsc-rs and tsrs into one package with LSP support, and integrating with Oxlint for type-aware lint rules.
- Cloudflare notes that frontier AI models now enable large-scale code ports in days.
Remediation
No remediation is required. Teams wishing to evaluate it can install the experimental release from npm (
tsrs), treating it as pre-stable software.