跳到正文
原文
Hacker News · 首页· hnisjafx40·· 2026-10-20AI 评分28

Tsrs:TypeScript 移植到 Rust 的实现

Tsrs: A Port of TypeScript to Rust

AI 导读

Tsrs 是一个把 TypeScript 移植到 Rust 的项目,据 voidzero 称其速度比 TS 7.0 快最多 8 倍、内存占用减少约 70%。Hacker News 上有评论质疑基准测试的价值,并讨论在 Rust 中维护 TypeScript 编译器是否比当年移植到 Go 更令人沮丧。

正文
Tsrs: A Port of TypeScript to Rust (cloudflare.com)
24 points by hnisjafx40 1 hour ago | hide | past | favorite | 4 comments

According to voidzero, this port is up to 8x faster than TS 7.0 & ~70% less memory.

Microsoft should seriously consider porting typescript to rust at this point


Idk. Apart from the fact that benchmarks are generally of questionable value, what's the point? Is the TS compiler unbearably slow?


I wonder how more frustrating is it to work on the compiler in rust vs go.

IIRC at the time of the port to go they wanted fast test and compile time, of course it's a different era now.

来源:Hacker News · 首页 · news.ycombinator.com