ts-rust is an experimental Rust port of the TypeScript 7 native compiler (tsc) created largely with large language models. It preserves the Go implementation’s algorithms, command-line interface, language server and API, and can be installed via an npm package named tsc-rs or used as a standalone binary on Linux x64 (static) and macOS arm64. The repository warns it’s an early release and not yet a full replacement; the maintainer also notes they never manually read the generated code. Development involved heavy LLM usage and significant API spend, with later models producing working versions much faster. The port is pinned to an upstream TypeScript 7.1.0-dev revision and includes built-in Effect diagnostics so Effect projects can be checked in one pass.
Compatibility and performance are the focus: 181,711 ported Go tests pass, language-server and API outputs match Go on oracle tests, and command-line outputs largely align with Go except for pinned-revision differences. Benchmarks show substantial speedups: on a 60-project suite tsc-rs checks about half the time of the Go compiler; on a T3 Code suite tsc-rs ran 7.25s versus tsc 7’s 16.10s. Across six real-world apps, tsc-rs delivers a geometric-mean 11.4× speedup over TypeScript 6 (1.61× faster than TypeScript 7); bun check is faster still but lacks integrated Effect diagnostics. Known issues and platform gaps remain.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.