“My goal is to eliminate every line of C and C++ from Microsoft by 2030” — Microsoft bets on AI to finally modernize Windows

As the holiday season unfolds, Microsoft has shared intriguing updates regarding its ambitious plans for code transformation. In a recent announcement, the tech giant revealed that it is embarking on a project aimed at replacing C and C++ with Rust across its extensive codebases. This initiative, while still in the research phase, has sparked both excitement and skepticism among developers and industry observers alike.

Transformative Goals and Strategies

Galen Hunt, a distinguished engineer at Microsoft, has taken to LinkedIn to outline the company’s vision. He stated, “My goal is to eliminate every line of C and C++ from Microsoft by 2030.” This bold statement underscores a strategic shift that combines artificial intelligence and advanced algorithms to facilitate the rewriting of Microsoft’s largest codebases. The plan is ambitious, with a target of “1 engineer, 1 month, 1 million lines of code.”

To support this monumental task, Microsoft has developed a robust code processing infrastructure. This system creates a scalable graph over source code, allowing AI agents, guided by algorithms, to implement modifications efficiently. Hunt’s assertion that the core of this infrastructure is already operational on various code understanding challenges adds a layer of credibility to the initiative.

Challenges and Realities

While the vision is compelling, some industry experts express caution regarding the feasibility of such a sweeping transition. The timeline for eliminating C and C++ entirely seems daunting, especially considering that Windows 11 has been available for several years and Microsoft is still refining features like dark mode. Nonetheless, the integration of AI could potentially accelerate the process, suggesting that the shift to Rust may take precedence over other enhancements.

Microsoft has been gradually incorporating Rust into its operations for some time. In 2023, the company began rewriting portions of the Windows Kernel using Rust, even before the recent surge in AI capabilities. David Weston, Microsoft’s Corporate Vice President of Enterprise and OS Security, has previously articulated the rationale behind this transition. He noted the persistent vulnerabilities associated with C and C++, stating, “Decades of vulnerabilities have proven how difficult it is to prevent memory-corrupting bugs when using C/C++.”

The Future of Software Engineering

The new role advertised by Hunt is part of the Future of Scalable Software Engineering group within Microsoft CoreAI. This position will play a crucial role in continuing the modernization of Microsoft’s code, reflecting a significant investment in the future of software development. As the tech landscape evolves, Microsoft’s commitment to adopting Rust represents a strategic pivot towards enhanced security and efficiency in coding practices.

As the company moves forward with this initiative, the tech community watches closely, eager to see how these ambitious plans will unfold in the coming years.

Winsage
“My goal is to eliminate every line of C and C++ from Microsoft by 2030” — Microsoft bets on AI to finally modernize Windows