创建

登录 ReadmeX

或

了解我们如何处理你的信息: 隐私政策

ReadmeX

陪你读懂 AI 动态

今天,想先了解什么?

选一份动态总结,或直接聊聊你的问题。

社区和关注动态总结只属于你自己。

资讯

LLM 将 TypeScript 编译器移植到 Rust,速度超 Go 版

AI 总结

开发者 pingdotgg 把微软原生 TypeScript 编译器(Go 版)移植为 Rust 项目 ts-rust(npm 包名 tsc-rs),其 0.1.0 早期版本称在所有实测真实项目中实现 100% 兼容,移植的 181,711 个 Go 测试全部通过,六款开源应用的几何平均检查速度约为 tsc 7 的 1.61 倍。作者表示先用 GPT-5.6 Sol 与 GPT-6 Astra 花费逾 40 万美元 token 仍停在约 84% 兼容率,而 Claude Opus 5.5 从头重写,10 小时产出可用 v0,两周 API 花费约 24,047 美元。项目内置 Effect 诊断,但语言服务的编辑器功能(快速修复、重构、悬停、补全)尚未移植。

深度见解

如果这些数据成立,它是 LLM 完成编译器级大规模语言移植的一个醒目案例;但作者自称没读过一行生成代码,项目仍是早期版本。

ts-rust (aka tsc-rs)

I wanted to see if LLMs could port the TypeScript compiler, checker and lsp to Rust. Turns out they can.

It cost over $420,000 in tokens to do it, but you could probably have done it for ~$20k (see below)

Motivations

  • Test model capabilities
  • Make a fast TypeScript type checker
  • Make a ts checker that can work in WASM with high performance
  • Memes

Warnings

This is an early release. It has 100% compatibility in every real world project we have tested. It should work as a drop in replacement for the vast majority of apps. See Known problems.

#ts-rust#tsc-rs#TypeScript#Microsoft#OpenAI#GPT-5.6 Sol#GPT-6 Astra#Anthropic#Claude Opus 5.5#Claude Code#Effect#Bun

原文约 12 分钟读完阅读原文
群聊

还没有评论,来说说你的看法。