{"id":804131,"date":"2026-10-16T05:00:14","date_gmt":"2026-10-16T05:00:14","guid":{"rendered":"https:\/\/www.newsbeep.com\/uk\/804131\/"},"modified":"2026-10-16T05:00:14","modified_gmt":"2026-10-16T05:00:14","slug":"24000-ai-experiment-ports-typescript-compiler-to-rust","status":"publish","type":"post","link":"https:\/\/www.newsbeep.com\/uk\/804131\/","title":{"rendered":"$24,000 AI experiment ports TypeScript compiler to Rust"},"content":{"rendered":"<p>                    <a data-tag=\"devops\" href=\"https:\/\/www.theregister.com\/tag\/devops\" class=\"lab-article-section-link\" rel=\"nofollow noopener\" target=\"_blank\"><\/p>\n<p style=\"\" class=\" lab-article-section lab-article-section-top \">\n                    devops\n                <\/p>\n<p>                    <\/a><\/p>\n<p class=\"subtitle below\" style=\"\">\n        Microsoft&#8217;s Go rewrite gets some competition, with a developer claiming his port runs twice as fast\n    <\/p>\n<p>With some extra tokens to burn, developer and popular YouTuber <a href=\"https:\/\/t3.gg\/\" target=\"_blank\" rel=\"nofollow noopener\">Theo Browne<\/a> used AI agents to port Microsoft&#8217;s TypeScript compiler to Rust, just to see if it could be done.\u00a0Not only did he produce a working implementation, but the resulting code could also pave the way for more memory-efficient environments for AI agents.<\/p>\n<p>Browne claims his Rust port runs twice as fast as Microsoft&#8217;s official Go-based TypeScript rewrite (v7) released\u00a0<a href=\"https:\/\/www.theregister.com\/devops\/2026\/08\/20\/go-updates-may-delight-diehard-gophers-but-displease-ai-overlords\/5290643\" target=\"_blank\" rel=\"nofollow noopener\">earlier this year<\/a> and 12.5 times as fast as the previous version of TypeScript (v6) \u2013 not bad work considering he says he hasn\u2019t even inspected the code.\u00a0\u00a0<\/p>\n<p>TS_Rust is a project that would have been impractical even earlier this year, <a href=\"https:\/\/www.youtube.com\/watch?v=ND_kRgU_WlY\" target=\"_blank\" rel=\"nofollow noopener\">Browne noted<\/a> in a video presentation. But models are developing so quickly that heretofore unimaginable tasks are now possible.\u00a0<\/p>\n<p>The resulting <a href=\"https:\/\/github.com\/pingdotgg\/ts-rust\" target=\"_blank\" rel=\"nofollow noopener\">Rust-based TypeScript<\/a> also opens the possibility of using Google\u2019s V8 engine as a less-memory-intensive alternative for running agentic workloads written in TypeScript, an approach that would be unfeasible using Microsoft\u2019s Go implementation of TypeScript, Browne argued.\u00a0<\/p>\n<p>A job that shouldn\u2019t be possible<\/p>\n<p>Browne\u2019s original idea was to burn his excess tokens by tackling a project so large that it couldn\u2019t possibly be finished, just to see how far the latest models could get. The agentic rewrite involved porting the TypeScript compiler, type checker, and language server, which provides features such as error checking and code completion in editors.<\/p>\n<p>He burned more than $400,000 worth of API-equivalent tokens using OpenAI&#8217;s GPT-5.6 Sol and GPT-6 Astra, which reached roughly 84 percent compatibility before the models struggled to complete the remaining work.<\/p>\n<p>When Anthropic released Claude Opus 5.5 last month, he revisited the idea. To his surprise, the new model produced a working implementation, consuming about $24,000 worth of API-equivalent tokens through Browne&#8217;s Claude subscriptions. The resulting implementation passed the TypeScript conformance tests with nearly 100 percent accuracy.\u00a0<\/p>\n<p>Perhaps this unexpected success was due to Claude 5.5 being a more muscular model, Browne reasoned. But Claude was also clever enough to change its strategy to get a head start. Rather than attempting a direct translation from JavaScript to Rust, the model ported Microsoft&#8217;s Go implementation of TypeScript to Rust, copying a few bugs from the original along the way.<\/p>\n<p>Browne only learned that Claude did this after someone else pointed it out.<\/p>\n<p>\u201cWriting all of TypeScript from JS to Rust would not have been viable,\u201d he said in the video. \u201cThe Microsoft team went through every line of code in TypeScript, ported it to Go, and then started refining it to make it better and faster in Go. My agents did the same thing from the Go version to Rust.&#8221;<\/p>\n<p>TS_Rust is one of several recent projects that used LLMs to rewrite some software in Rust. Microsoft itself recently<a href=\"https:\/\/www.theregister.com\/devops\/2026\/09\/18\/microsoft-agentically-ports-copilot-runtime-to-rust-for-120k\/5297549\" rel=\"nofollow noopener\" target=\"_blank\"> <\/a><a href=\"https:\/\/www.theregister.com\/devops\/2026\/09\/18\/microsoft-agentically-ports-copilot-runtime-to-rust-for-120k\/5297549\" target=\"_blank\" rel=\"nofollow noopener\">rewrote <\/a>the Copilot runtime in Rust. That project cost the &#8216;softies about $120,000 in AI coins. Google, with the release of its Gemini 4 Argon model, is also <a href=\"https:\/\/blog.google\/innovation-and-ai\/models-and-research\/gemini-models\/gemini-4-argon\/\" target=\"_blank\" rel=\"nofollow noopener\">using<\/a> AI agents to port several major C\/C++ codebases (RE2, libgav1, and parts of Fuchsia&#8217;s Zircon kernel) to Rust.<\/p>\n<p>V8-powered agents<\/p>\n<p>Beyond the novelty factor, Browne\u2019s own version of TypeScript may ultimately provide a practical benefit by eliminating the need for agents to deploy relatively heavy agentic workspaces such as virtual machines and Docker containers. It\u2019s a job even Microsoft\u2019s own official Go implementation couldn\u2019t do as effectively, he argued.<\/p>\n<p>This work, should someone see it through, would be timely. Browne argued that with more powerful models on the horizon, inference costs are plummeting exponentially, so much so that the underlying compute costs needed to support developer environments will soon be the most expensive part of the job.\u00a0\u00a0\u00a0<\/p>\n<p>With a Rust-based TypeScript compiler, some agentic workloads could potentially run within Google&#8217;s V8 engine, instead of requiring a full container or VM. Cloudflare, for instance, already isolates multiple user environments using the Google V8 JavaScript runtime, thereby saving hundreds of megabytes per customer environment.<\/p>\n<p>TypeScript itself, stripped of its type annotations, runs cleanly within V8, but Microsoft\u2019s Go-based TypeScript compiler is not a good fit because Go&#8217;s garbage collector must be bundled into the runtime using WebAssembly \u2013 no easy task.\u00a0<\/p>\n<p>But Rust doesn\u2019t need a garbage collector, so it compiles more efficiently with WebAssembly. A lightweight agentic environment could, in theory, run within V8 using TS_Rust and an in-memory shell environment such as <a href=\"https:\/\/github.com\/vercel-labs\/just-bash\" rel=\"nofollow noopener\" target=\"_blank\">Vercel&#8217;s Just Bash<\/a>, potentially reducing costs compared with running the same workloads in a VM.<\/p>\n<p>As for Browne, he remains bullish on AI and software engineering.<\/p>\n<p>\u201cThese types of YOLO projects should not be viable at all. Like [it] shouldn&#8217;t even be able to pass the tests, much less actually work as a drop-in replacement for TypeScript,\u201d he said. \u00ae<\/p>\n","protected":false},"excerpt":{"rendered":"devops Microsoft&#8217;s Go rewrite gets some competition, with a developer claiming his port runs twice as fast With&hellip;\n","protected":false},"author":2,"featured_media":804132,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[554,733,4308,86,56,54,55],"class_list":["post-804131","post","type-post","status-publish","format-standard","has-post-thumbnail","category-artificial-intelligence","tag-ai","tag-artificial-intelligence","tag-artificialintelligence","tag-technology","tag-uk","tag-united-kingdom","tag-unitedkingdom"],"_links":{"self":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/posts\/804131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/comments?post=804131"}],"version-history":[{"count":0,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/posts\/804131\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/media\/804132"}],"wp:attachment":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/media?parent=804131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/categories?post=804131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/tags?post=804131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}