行业动态
www.infoq.com ·
@Daniel Curtis
Cloudflare 与 VoidZero 推出 tsrs:AI 生成的 TypeScript Rust 移植版
Cloudflare、VoidZero 与 Max Schwenk 发布实验性 Rust 版 TypeScript 编译器 tsrs,TypeScript 团队参与。Cloudflare 声称其检查速度最高为 TypeScript 7.0 的 8 倍、内存占用减少 70%,但针对 7.1 beta 的一次测试仅显示 2.7 倍。tsrs 目前缺少 watch 模式和 language server,类型错误时退出码为 2。
AI推荐理由 InfoQ 报道了 Cloudflare、VoidZero 与 Max Schwenk 联合发布的实验性 Rust 版 TypeScript 编译器 tsrs,并称 TypeScript 团队参与其中。具体新信息包括:官方声称检查速度最高提升 8 倍、内存占用减少 70%,但针对 7.1 beta 的一次测试仅显示 2.7 倍;同时明确 tsrs 缺少 watch 模式和 language server,类型错误时退出码为 2。这些性能数字来自厂商声明,且仅有一次对比测试,证据有限;标题称其为“AI 生成”,但正文未提供生成方式或验证细节,因此不能据此认定质量。该工具对 TypeScript 工具链和 AI 辅助代码生成有潜在价值,但实验性定位和功能缺失是明显局限。
72
正文

Cloudflare, VoidZero and Max Schwenk announced tsrs, an experimental Rust port of the TypeScript compiler, built with the TypeScript team's involvement. Cloudflare claims up to 8x faster checking and 70% less memory than TypeScript 7.0, though one test against 7.1 beta showed 2.7x. It lacks watch mode and a language server, and exits with code 2 on type errors.
*By Daniel Curtis*