Hacker News·3 min read·hard

Microsoft agentically ports Copilot runtime to Rust for $120K

P
pjmlp
Microsoft agentically ports Copilot runtime to Rust for $120K
AI Summary

Microsoft successfully migrated the GitHub Copilot runtime from TypeScript to Rust using AI agents to perform the porting. The transition resulted in significant performance gains, including a 15.9x speedup and substantial memory efficiency improvements.

Why it matters

This demonstrates the practical utility of AI agents in large-scale software engineering and the performance benefits of memory-safe languages like Rust.

Dive DeeperCreate a free account to unlock

The Rust compiler remains unperturbed by the antics of the LLM

The software engine underpinning GitHub Copilot and a growing number of Microsoft products is now written entirely in Rust, with AI agents doing most of the porting work.

The migration cost about $120,000 in AI token usage plus about three weeks of a developer's time. However, managers also had to grapple with a few dozen regressions in the resulting code, pointing to AI’s ongoing challenges in understanding Rust.

The effort updated the runtime module-by-module until the job was completed, spanning over 135 releases across a 14.5-week time period. Roughly 1.3 port pull requests were opened per day.

Continue reading on Headlinne

Create a free account to read the full article.

Read full article →
technologyscience

Get smarter about the news

Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.

Create free account

Already have an account? Sign in