Tsrs introduces Rust port of TypeScript compiler, boosts speed by 8x

Summary

A new Rust port of the TypeScript compiler, called tsrs, has been launched, promising performance improvements of up to 8 times compared to TypeScript 7.0 and using approximately 70% less memory. This development happened in close collaboration with the TypeScript team, emphasizing the approach of enhancing existing tools without forking the original source. The new compiler also runs in WebAssembly (WASM), allowing it to be used seamlessly across different environments, including browsers and Workers, and is expected to become part of the Oxc toolchain.

Analysis

tsrs: tsrs is a Rust port of the TypeScript compiler developed in close collaboration with the official TypeScript team. It functions as a drop-in replacement that runs in WASM for browser and Workers environments. The project is positioned for future integration into the Oxc toolchain. TypeScript: TypeScript is Microsoft's open-source superset of JavaScript with static typing and its associated compiler. Recent developments include community efforts to create optimized alternative implementations while maintaining compatibility through direct collaboration. voidzerodev: voidzerodev is the X account and developer who introduced tsrs as a Rust port of the TypeScript compiler. The announcement emphasizes non-fork collaboration with the TypeScript team and plans for broader toolchain adoption. Compiler Porting: Rust ports of established compilers are being developed through direct collaboration with original teams to deliver enhanced performance without forking the source. Runtime Compatibility: WASM-based implementations enable the same compiler to operate across browsers, edge Workers, and other environments. Toolchain Integration: New compiler alternatives are planned for incorporation into existing development ecosystems such as the Oxc toolchain.

Categories

techai_agents
View Original Tweet