Tsrs: A Port of TypeScript to Rust(blog.cloudflare.com)
429 points by hnisjafx40 5 days ago | 211 comments
tl;dr: Cloudflare, VoidZero, and Owner.com are developing tsrs, a Rust port of the TypeScript compiler, in collaboration with the TypeScript team as part of the Oxc toolchain. Early benchmarks show tsrs is up to 8x faster and uses ~70% less memory than TypeScript 7.0, with Rust chosen primarily for its superior WebAssembly story (no GC overhead), enabling sandboxed dev environments in browsers, Workers, and embedded devices. The project aims to stay faithful to upstream TypeScript rather than fork it, using agents to track and sync changes similar to their Vinext/Next.js workflow.
HN Discussion:
  • ~TypeScript team confirms speed gains are largely from optimizations, not just language choice
  • ↑The Rust memory model/arena approach is a clever technical solution to the GC porting problem
  • ↑WASM compatibility was the real motivation, with speed being a bonus
  • ↓Concern about shift from handwritten ports to fully AI-generated code without proper review
  • ↓AI-driven duplication of effort undermines the value of open source work