Microsoft plans to replace all C/C++ code with Rust by 2030.

Microsoft plans to replace all C/C++ code with Rust by 2030.

10 months ago
duguying
194 views
Source: thurrott

Microsoft plans to completely remove all C and C++ code from its main codebase by 2030 and replace it with the Rust language using AI-assisted large-scale refactoring techniques.

Related tags

#微软#Rust#C/C++

Microsoft is modernizing its largest codebase and plans to phase out all C/C++ code by the end of this decade, replacing it with Rust.

Microsoft Distinguished Engineer Galen Hunt posted on LinkedIn: “My goal is to completely eliminate every line of C and C++ code in Microsoft’s codebase by 2030. Our strategy is to combine artificial intelligence and algorithms to rewrite Microsoft’s largest codebase. Our vision is ‘1 engineer, 1 month, 1 million lines of code.’ To accomplish this previously unimaginable task, we have built a robust code processing infrastructure. Our algorithmic infrastructure is capable of building scalable graphs of source code at scale. Then, our AI processing infrastructure enables us to apply algorithm-guided AI agents to modify code at scale. The core of this infrastructure is already running at scale on problems such as code understanding.”

This shift may shock some, but it’s exactly the future I’m describing: Microsoft will leverage artificial intelligence to refactor (rewrite) the NT/Windows kernel and other crucial codebases using the Rust language. Microsoft has foreshadowed this move: back in 2023, they announced they would rewrite parts of the Windows kernel using Rust. Previously, Azure CTO Mark Russinovich prohibited developers from creating new C/C++ projects, requiring them to switch to Rust. Earlier this year, Russinovich stated that Microsoft was “fully committed” to Rust and that the company had significantly expanded the use of this memory-safe language.

At the time, Russinovich stated that Microsoft was using Language Learning Models (LLM) to develop “more automated C and C++ to Rust translations.” Therefore, Hunt’s LinkedIn post can be seen as a follow-up to this. He was recruiting a lead software engineer to assist with this work.

“This lead software engineer position aims to help us develop and enhance our infrastructure to port Microsoft’s largest C and C++ systems to Rust,” the job posting states. “A key requirement for this position is experience building production-ready system code in Rust—preferably at least three years of experience writing system-level code in Rust. Experience with compiler, database, or operating system implementations is preferred. While compiler implementation experience is not required, applicants must be willing to learn and gain experience in this area within our team.”

Hunt’s Rust refactoring team belongs to the “Future of Scalable Software Engineering” group within Microsoft’s CoreAI Engineering Horizons. He stated that the team’s mission is “to build the relevant capabilities that enable Microsoft and its customers to eliminate technical debt at scale. We work with internal customers and partners to develop new tools and technologies, and then collaborate with other product teams to deploy these capabilities at scale within Microsoft and across the industry.”

That sounds good. If you’d like to apply for this job, you can do so on LinkedIn.

Thanks to Raf for providing the information.

More News

Want to see more quality content?

Browse all news