tsc-rs Rust TypeScript Compiler
This Rust implementation offers significant performance improvements over existing TypeScript compilers while maintaining full compatibility. Developers working with TypeScript can now use tsc-rs as a drop-in replacement for faster builds and type checking. The project demonstrates the practical benefits of rewriting performance-critical tools in Rust, potentially influencing future compiler development in the TypeScript ecosystem.
Theo released tsc-rs, a complete Rust port of the TypeScript compiler, type checker, and LSP.
The project is a line-by-line port of TypeScript 7's Go version, not an original design.Performance tests on Apple M4 Pro show tsc-rs is 1.
61× faster than tsc (Go) and 2.95× faster than bun check.
All 181,711移植的测试通过,with CLI output matching Go version on 120 open-source repositories.
T3 Stack 作者 @theo 开源了一个 TypeScript 编译器/类型检查器/LSP 的 Rust 完整移植「tsc-rs」 它不是从零设计的编译器,是对微软官方 TypeScript 7(typescript-go,Go 原生版) 的逐行为移植,"保留 Go 的算法和行为",锁定的上游提交是 typescript-go @673a5f17 。MIT 协议,保留上游 Apache-2.0 / BSD-3 声明。 开源地址: github.com/pingdotgg/ts-r… 核心数据 性能(Apple M4 Pro,hyperfine 取 5 次中位数,120 个真实开源仓库 + 60 个项目测试集):相对 tsc 7(Go),tsc-rs 快约 1.61×,bun check 快约 2.95×。 兼容性:全部 181,711 个从 Go 移植的测试通过;在 120 个开源仓库上 CLI 输出与 Go 版一致(除已知的 monorepo rootDir、tsc -b 增量输出等少数边界问题)。VS Code 上报的 10 个错误、Sentry 的 2 个错误,与 TypeScript 7.1.0-dev 完全一致;bun check 在 Sentry 多报 3 个、tRPC 多报 2 个。 Theo - t3.gg @theo Announcing tsc-rs (aka ts-rust), my complete rewrite of the Typescript compiler, type checker, and LSP, all in Rust. This is a project I've had agents working on for 5 months now. I burned ~$400k of Codex tokens and got nowhere. Burned ~$20k of Opus and got there in 2 weeks. I have not read a single line of the code. tsc-rs is an open source drop-in replacement for tsc, and it's available now. 🔗 View Quoted Tweet📊 2 ⚡
This report is categorized under AITOP's "How-to" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows and US-China foundation model benchmarks and commercialization comparison. Key entities and technical topics under continuous tracking include TypeScript, tsc-rs, Rust, T3 Stack.
Source attribution: curated from shao__meng (@shao__meng). Cross-source corroboration: 4 independent sources have covered this development (including Naval, Geek, Andrew Curran), confirming industry-wide signal strength.