VOOZH about

URL: https://thenewstack.io/microsofts-bold-goal-replace-1b-lines-of-c-c-with-rust/

⇱ Microsoft's Bold Goal: Replace 1B Lines of C/C++ With Rust - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2025-12-23 16:30:15
Microsoft's Bold Goal: Replace 1B Lines of C/C++ With Rust
Programming Languages / Rust / Software Development

Microsoft’s Bold Goal: Replace 1B Lines of C/C++ With Rust

Microsoft is hiring Rust experts to help the company translate billions of lines of legacy code using AI-powered infrastructure.
Dec 23rd, 2025 4:30pm by Darryl K. Taft
👁 Featued image for: Microsoft’s Bold Goal: Replace 1B Lines of C/C++ With Rust
Featured image by Jay Heike on Unsplash.

Microsoft is hiring top-level engineers to help to get rid of C and C++ in its largest codebases and replace that code with Rust.

In a job listing post on LinkedIn, Galen Hunt, distinguished engineer at Microsoft, wrote: “My goal is to eliminate every line of C and C++ from Microsoft by 2030.”

In responding to questions from commenters about why Rust and not another (more familiar) language like C#, Hunt mentioned memory safety and concurrence.

“Two reasons for Rust over C#: 1) C# is memory safe, but not concurrent safe, 2) performance (no GC). Just at Microsoft, we have about a billion lines of code that I want to [be] rewritten,” he wrote. “Across the industry, it is probably 20-40BLoC that needs to be written.”

How Will They Do It?

Hunt said Microsoft will combine AI and algorithms to rewrite Microsoft’s largest codebases.

“Our North Star is ‘1 engineer, 1 month, 1 million lines of code,’” he wrote.

Hunt described the process as “previously unimaginable.” However, the company has built a powerful code processing infrastructure to handle it.

“Our algorithmic infrastructure creates a scalable graph over source code at scale,” he wrote. “Our AI processing infrastructure then enables us to apply AI agents, guided by algorithms, to make code modifications at scale.”

Moreover, this infrastructure is already operating at scale on problems such as code understanding.

Joining the Team

Hunt emphasized the importance of a diversity of skills on his team.

“We take on bold risks,” he wrote.

“Our team is driven by a growth mindset. We are a diverse team with a wide range of skills and perspectives,” Hunt wrote. “We have learned that our diversity and growth mindset is critical to success in the rapidly changing world of AI-based tools.”

Hunt is hiring a Principal Software Engineer to help Microsoft evolve and augment its infrastructure to enable translating Microsoft’s largest C and C++ systems to Rust.

“A critical requirement for this role is experience building production-quality systems-level code in Rust — preferably at least 3 years of experience writing systems-level code in Rust,” Hunt said. “Compiler, database or OS implementation experience is highly desired. While compiler implementation experience is not required to apply, the willingness to acquire that experience in our team is required.”

Hunt’s team is part of the Future of Scalable Software Engineering group in the EngHorizons organization in Microsoft CoreAI, he wrote.

“Our mission is to build capabilities to allow Microsoft and our customers to eliminate technical debt at scale,” he said.

The Gradual Move To Rust

Microsoft has been signaling its gradual move to Rust for some time now.

As far back as 2022, Mark Russinovich, Microsoft Azure CTO, posted on X, formerly known as Twitter, that “it’s time to halt starting any new projects in C/C++ and use Rust” for scenarios where a non-GC language is required.

In addition, at the RustConf 2025 conference in September, Russinovich spoke about how Rust was helping Microsoft fix security issues with Windows, among other things.

C and C++ let you write code that looks fine but crashes spectacularly or, worse, gets hacked, he indicated. Microsoft’s own kernel has been leaking privilege escalation bugs monthly through Win32k.sys, the part that handles graphics and windows, Russinovich said.

During his keynote at RustConf 2025, “From Blue Screens to Orange Crabs: Microsoft’s Rusty Revolution,” Russinovich described the situation as being like “an underground oil repository that is leaking oil up a few drops at a time, just consistently.”

So the company started rewriting chunks in Rust. Not the whole thing, just pieces. If you dig into your Windows System32 folder right now, you’ll find a file called win32kbase_rs.sys. That’s Rust code running in your kernel.

Here’s the thing that actually matters: When a security researcher found a bug in the new Rust version, it crashed the system instead of letting an attacker take over, Russinovich said.

“This we view as a success,” he said. “This code written in C++, this bug would have actually resulted in a potential elevation of privilege, as opposed to a blue screen crash that’s very deterministic and can’t be exploited.”

TRENDING STORIES
Darryl K. Taft covers DevOps, software development tools and developer-related issues from his office in the Baltimore area. He has more than 25 years of experience in the business and is always looking for the next scoop. He has worked...
Read more from Darryl K. Taft
SHARE THIS STORY
TRENDING STORIES
Microsoft is a sponsor of The New Stack.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.