首页 | 水果短剧 | 博客 | 论坛 | 交友 | 黄页 | 聊天室 | 游戏 | 寄快递 | 登入邮箱 用户中心 | 云浏览器 | ClaudeBot [Bot] | 退出 | 简体 | English
首页 > 时政 > Trending News

Cloudflare and VoidZero Introduce tsrs: An AI-Generated Rust Port of TypeScript

🤖 AI 辅助采编👤 编辑部筛查📄 原文来源见正文
PHP 安全服务 · 免费扫描网站 PHP 漏洞 → 一键修复 → 修复验证报告(PHP Patch Assurance) 免费扫描 →
🔊
每篇文章,都有双人深度解读 Every Article Gets a Two-Host Deep Dive
听到焦点,听出门道,发现新闻价值! Discover the Real Value Behind the News
试听 →
简体版 繁体版 分页: 1 / 1
华人空间新闻 官方账号 ✍️ 周二 10月 27, 2026 8:57 am #1
Summary
InfoQ Homepage News Cloudflare and VoidZero Introduce tsrs: An AI-Generated Rust Port of TypeScript Oct 27, 2026 2 min read Follow us on tsrs, a Rust …
InfoQ Homepage

News

Cloudflare and VoidZero Introduce tsrs: An AI-Generated Rust Port of TypeScript

Oct 27, 2026

2
min read

Follow us on

tsrs, a Rust port of the TypeScript compiler, has been announced by Cloudflare, which is developing it with VoidZero and Max Schwenk of Owner.com, incubating the project inside the Oxc toolchain and working in close collaboration with the TypeScript team. Cloudflare is emphatic that this is not a fork, with the TypeScript team retaining full control over the language's design.

Cloudflare's benchmark comparing tsrs against TypeScript 7.0 at the same number of checker workers

The headline numbers are a claimed up to 8x faster type checking and around 70% less memory than TypeScript 7.0 at the same number of checker workers. Rust also unlocks the use case of compiling to WebAssembly through @tsrs/wasm so checks can run in a browser or on Workers, without dragging a garbage collector into the bundle the way a Go binary does.

To try, developers simply point it at an existing tsconfig and run:

In a detailed write-up, Schwenk explains he wrote "zero" code, instead directing agents led by Claude Opus 5.5 to produce a faithful port, using TypeScript's own 15,197 conformance cases as the spec. On Owner's 37,000-file monolith, a check that needed 19 GiB and 80 seconds on TypeScript 7.0 dropped to 7 seconds.

One developer benchmarked both npm packages and measured 5.3x faster checking and 72% less memory, with identical diagnostics and byte-identical emit, but spotted that tsrs exits with code 2 on type errors where tsc exits 1, enough to quietly break a CI script. Measuring against the newer TypeScript 7.1 beta rather than 7.0, ImportStatic found a smaller 2.7x gain, a reminder that the 8x headline is measured against the older baseline.

TypeScript's Daniel Rosenwasser responded that much of the speed "does not just come down to language choice," and that some optimisations discovered in tsrs are feeding into a leaner TypeScript 7.1. Peter Steinberger reported on X:

Moved to tsrs over the weekend. Drop-in replacement. Around 5x faster for OC.

Kind of amazing that it took Microsoft a team and two years to rewrite the TS compiler in go, and now you can just let an agent rip and get sth significantly better within weeks.

Others were wary, questioning whether the arena-based, never-freed memory model is sound.

tsrs sits alongside Microsoft's own Go-based compiler, known as tsgo, and Theo Browne's rival Rust port, tsc-rs. Rather than compete, Cloudflare is merging tsc-rs and tsrs into a single package, adding language server and content mapper support.

The release remains experimental. There is no watch mode or language server yet, --init and --showConfig are unsupported, and diagnostic order can differ, the compatibility notes provide more details. Because tsrs tracks TypeScript 7, teams still on TypeScript 5 or 6 should first adopt Microsoft's native Go port before swapping in tsrs, after which migrating is as simple as reusing the existing tsconfig.

tsrs is open source under Apache-2.0 and available on GitHub.

About the Author

Daniel Curtis

The InfoQ Newsletter

A round-up of last week’s content on InfoQ sent out every Tuesday. Join a community of over 250,000 senior developers.

View an example

Source: InfoQ
扫码分享
扫码分享本文
打赏给华人空间
打赏
有粉丝喜欢你的作品,你就能收到打赏!
创作者平台 点击了解,加入,创作,圈粉,有赏!
简体版 繁体版 分页: 1 / 1
eBay拍卖狙击神器 — 最后一秒自动出价,永远不超价获胜
华人空间用户专享:前100名6个月免费 · 30天免费试用,随时取消
免费试用 →