Interesting. I presume they'll be canning the resulting knowledge base of prompts and suggestions as a "solution/agent" for doing exactly such migration "essential lifting" process.
Microsoft agentically ports Copilot runtime to Rust for $120K
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 …
COMMENTS
-
Saturday 19th September 2026 10:22 GMT Jason Bloomberg
"would have taken years and cost millions if done by hand"
Or an inspired hacker might have done the job in a week using only their knowledge and their bedroom laptop.
I doubt we'll ever know, but function by function conversion to a new language is often easier than some would think, especially for someone familiar with both source and target language.
In fact, many people have done it; writing proof of concept code in Python or some other agile language, then converting to C, C++, and these days Rust or Zig, for production or improvement.
There are always going to be issues along the way, sometimes big ones, but I am sceptical of claims something would have been impractical without AI. Especially when such claims come from those who have vested interests in promoting AI.
-
Saturday 19th September 2026 13:42 GMT ComputerSays_noAbsolutelyNo
Re: "would have taken years and cost millions if done by hand"
Also, the AI did the same as humans first would have done. Read the docs and try to understand it first, then write code.
While one suspects that one is expected to be impressed by the short time this took, I am doubtful that this warrants the sinking of trillions of dollars in capital and the perpetration of the largest scale theft in history.
-
-
Monday 21st September 2026 10:48 GMT deanb01
Re: "would have taken years and cost millions if done by hand"
For many conversions, especially from arcade machines, we didn't have the luxury of the original source code or graphics. The games were written based upon observations of playing the original. Sometimes the ROMs could be dumped for graphics.
-
Tuesday 22nd September 2026 20:55 GMT steviebuk
Re: "would have taken years and cost millions if done by hand"
And coding in assembly.
Was beyond me as a kid. In middle school, I'd have the urge to go home and type in some code on the ZX81 from books. But, what I still can't understand to this day, they oddly used a really shitty font in the mags and books to donate "This is code". But the font was so shitty, I knew they're be typos. Instead of working out what the problem was, I just gave up.
Wasn't until PCs came round and I was in college in the mid 90s, that I finally got into a bit of programming.
-
-
-
-
-
Saturday 19th September 2026 16:14 GMT rgjnk
Quality
Well I guess no one has even thought to review any of it? All just rubber stamped?
That's a big pile of complex code to trust to any porting process, let alone an automated one. There could be all sorts of weird crap added (or kept) and they'd have no idea.
Just because it compiles doesn't mean it's right, and neither does passing the tests or the other tooling.
You can see why so many things are not so slowly falling apart in a mass of weird and obvious bugs affecting things that had no need to be touched.
-
-
Monday 21st September 2026 05:00 GMT sindrelspec
Re: stupid question
I'm no developer, but these numbers seem to indicate TypeScript has pretty poor performance in general, converting to any other "decent" language would have probably done just as much for performance:
https://programming-language-benchmarks.vercel.app/typescript-vs-cpp
https://programming-language-benchmarks.vercel.app/typescript-vs-go
https://programming-language-benchmarks.vercel.app/typescript-vs-csharp
-
-
Monday 21st September 2026 11:34 GMT MattieD
A lot of cash
Spending $120k and three-weeks of developer time to get a 15x performance increase sounds like incredible value. Except it really isn't, it just massive highlights how terrible the performance of Type/JavaScript is.
While a re-factoring of the JS was never going bring similar performance gains, I think they're swapping one set of problems for another. Going from 400k lines of slow JS to 800k lines of machine-created Rust is one of those things that will become a millstone around the neck of anyone trying to maintain it. Unless, of course, they're just going to keep slinging the code into Copilot to make changes and it'll never be touched by human hands again.
-
Monday 21st September 2026 12:36 GMT FIA
Re: A lot of cash
[...] it just massive highlights how terrible the performance of Type/JavaScript is.
To play devils advocate... I'd say it highlights how using the correct tool for the job is an important skill to learn.
The advantages of JS et. al. is not speed, and it should not have been used for this use case.
-
Monday 21st September 2026 13:26 GMT You aint sin me, roit
Re: A lot of cash
I can understand a prototype being written in typescript, but it looks as if the prototype was shown to management who decided to go with it - with no consideration for the performance overhead. If it had been written in a proper language to start with it wouldn't need this conversion to Rust, and the follow up investigation into whether the design is structured correctly.
At least the AI had documentation to read, is the Rust similarly documented/commented?
[I know, I know... comments in code just isn't the done thing anymore.]
-
-
Monday 21st September 2026 12:34 GMT FIA
However, managers also had to grapple with a few dozen regressions in the resulting code, pointing to AI’s ongoing challenges in understanding Rust.
I've been teaching myself Rust at home, and also doing a bit of playing with local AIs.
I'm writing a winamp style music player, I like writing the code but I did wonder if I could use AI to write the documentation for the theming engine. I'm using Slint for my UI.
So I pointed a local copy of Quen3.8 at it and waited... (and waited... as my GPU isn't really up to the task...)
It gave up after 3 hours (not enough GPU memory)... but it'd made a good stab at writing some documentation.
What really shocked me though was how good it was. It had made an amazing job of working out what I was doing and writing it up well. It had even got stuff 'wrong' because that's how the code currently worked.
-
Monday 21st September 2026 16:22 GMT FIA
“That’s in no way an argument against Rust’s compiler,” Toub wrote. “But ‘if it compiles, it’s correct’ is useful only as a joke.”
This sentence worries me. Surely that's obvious???
Any compiled language that compiles is correct. (as far as the compiler is concerned)... it may not do what you want though.
But do people really think if it compiles it's right?!