Skip to content
Trending storyDeveloping

Theo open-sources tsc-rs, a Rust port of the TypeScript 7 compiler

1 article1 sourcesince Oct 8Last article

Overview

AISummary of 1 article

Theo(T3 Stack 创建者)以 MIT 协议开源了 tsc-rs,这是对微软 Go 原生版 TypeScript 7 编译器、类型检查器和语言服务器的逐行移植,锁定上游 typescript-go 提交 673a5f17,并保留上游 Apache-2.0 / BSD-3 声明。它并非从零设计,而是保留 Go 版的算法和行为。

作者称,在 Apple M4 Pro 上的六个真实应用基准测试中,tsc-rs 比 tsc 7 快约 1.61 倍,比 bun check 快约 2.95 倍;这些性能数字来自作者自述,报道中未提供独立验证。作者还称,移植版通过了全部 181,711 个移植自 Go 的测试,并且在 120 个开源仓库上的 CLI 输出与 Go 版一致,但 monorepo rootDir、tsc -b 增量输出等已知边缘情况除外。

Written by AI from the articles below · updated Oct 8, 9:53 PM ET

Check the sources:

Article timeline

The articles in this story. Times are ET.

Oct 8
  1. meng shaoPick
    Theo open-sources tsc-rs, a Rust port of the TypeScript 7 compiler

    AITheo, creator of the T3 Stack, open-sourced tsc-rs, a line-by-line Rust port of Microsoft's Go-native TypeScript 7 compiler, type checker, and language server under MIT, pinned to typescript-go commit 673a5f17. The author reports tsc-rs is about 1.61× faster than tsc 7 and about 2.95× faster than bun check on six real-app benchmarks on an Apple M4 Pro. The port passes all 181,711 ported Go tests, and CLI output matches the Go version on 120 open-source repos except for known edge cases such as monorepo rootDir and tsc -b incremental output.

    Image from @shao__meng's post

Heat trend

Not enough continuous observations to show a trend yet.