ts-rust (aka tsc-rs) is an experimental Rust port of the TypeScript 7 compiler (tsc), created to test LLM capabilities and build a fast, WASM-compatible type checker. The project achieved 100% compatibility in tested real-world apps and serves as a drop-in replacement for most projects. Developed using OpenAI's GPT-5.6 Sol and GPT-6 Astra models, along with Claude's Opus 5.5, the port cost approximately $24,047 in API tokens over two weeks—significantly less than the initial $420,000 estimate.
Opus 5.5 completed the working version in just 10 hours, starting from scratch and outperforming earlier models. The tool mirrors Microsoft's native TypeScript compiler (microsoft/TypeScript), maintaining the same command-line interface, language server, and API. It supports Linux x64 and macOS arm64, with Windows and Linux arm64 pending. ts-rust includes built-in Effect diagnostics (codes 377xxx) for Effect projects, requiring no additional compiler when configured in tsconfig.json.
The port is pinned to upstream revision microsoft/TypeScript 673a5f17d713 (2026-09-29, TypeScript 7.1.0-dev) and passes all 181,711 Go tests. It matches Go's behavior on oracle test sets and is roughly twice as fast as the Go version in type checking across 60 open-source projects. On 120 repos, output differences are limited to known issues and Go's own variability.
Benchmarks compare it against tsc 6, tsc 7, and Bun's checker using the T3 Code project.
المصدر: Hacker News · لخّصه HeadlinesBriefing