Port of the TypeScript compiler, checker and lsp to Rust, by LLM
TL;DR Highlight
LLMs ported tsc to Rust; Opus 5.5 got furthest in two weeks for about $24k
Who Should Read
Backend or tooling developer weighing cost and quality of letting coding agents do a large port or rewrite
Core Mechanics
- OpenAI models spent $400k and stalled near 84%
- GPT-5.6 Sol and GPT 6 Astra used over $400,000 of API-priced tokens.
- Months of /goal loops produced over 1.3M lines of Rust but never got past roughly 84% compatibility.
- Opus 5.5 restarted from scratch and went further
- It had a working v0 in 10 hours.
- The author expected it to reuse the Codex code, but it started over.
- It got further than Astra in 1/10th the time.
- Two weeks cost about $24,047
- That is API-priced spend, though the author used Claude accounts.
- It equaled 925% to 983% of his $200 plan's weekly limits.
- It is a direct port of the Go tsc 7
- It keeps the algorithms and behavior of Microsoft's native Go TypeScript compiler.
- It offers the same CLI (tsc), language server, and API, and all 184,773 ported Go tests pass.
- It is faster than tsc 7
- Type checking takes about half of Go's time on 60 open-source projects (geometric mean).
- On T3 Code with Effect diagnostics, tsc-rs --fast takes 9.77s versus 42.55s for tsc 7, 4.35x faster.
- The author never read the code
- The README says "I've never read a line of this code."
- Everything below the README's "Slop Line" is marked as written by LLMs.
Community Reactions
- Skepticism about adoption value
- One commenter asked why use a less maintained, less tested implementation.
- Another said the real question is what this teaches us.
- Real-world speedup is small in absolute terms
- A commenter noted real-world project times were only 1-3s better than tsc 7.
- They said percentages can look more impressive than absolutes.
- Rust port reimplements Go semantics, hurting performance
- A commenter said it reimplements Go-style strings and much of the Go standard library.
- They argued it jumps through hoops to preserve Go behavior.
- Concerns about verification and maintenance
- A commenter worried about holes where original authors thought tests unnecessary.
- Another recalled Bun's rewrite taking 3 months of human labor to fix issues before release.
- A TypeScript team member said they were surprised 3 such ports appeared in a week.
How to Apply
- Measure test pass rate first
- Run an agent loop that raises the pass rate against the existing test suite of a library you want to port.
- Record the pass rate numerically to compare models.
- Compare models on a small module
- Give the same small port to two models and record time and token cost.
- Also try a new model starting from scratch instead of inheriting stuck code.
- Verify the port with output diffs
- Write a script that feeds the same inputs to original and port and compares outputs across several projects.
- Document mismatches as a known-problems list.
- Adopt a marker for LLM-written code
- Mark LLM-written sections in the README like the "Slop Line".
- State the verification scope so users can judge the risk.
Try It
# Paste into Claude Code (simplified version of the article's method: test pass-rate goal loop)
Goal: port module {{module name}} in {{original library path}} to {{target language}}.
Rules:
- Keep the original algorithms and behavior.
- Port the original tests and run them with {{test command}}.
- Print passed/total tests at each iteration.
- Stop at 100% or if the rate does not improve for 3 iterations in a row, and summarize what blocked you.
Show me the port plan and file structure first, and start after I approve.
Next to try: when done, have it feed 20 identical inputs to the original and the port and list the outputs that differ.Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques