Among the oldest and most aggressive operating systems, Windows introduced the world to how a PC should run. Since it is the oldest OS, it is hard to write its back-end coding. You should know that they are well-written in C and C++ languages. But it is also acceptable that these channel codes have a few downsides. Being a dominant learner, Windows soon rewrote its kernel’s inside components.

The kernel is a core part of your PC that works in line with internal programming. As it loads after the bootloader, it coordinates and controls every program and process. Like other components of Windows, it is also written in the Windows Authentic C++ language. However, Microsoft’s OS & Security Vice President, David Weston, recently made a major announcement that aims to rewrite the kernel’s inside. So, let’s check what he actually said.

Microsoft is working to replace Windows 11 Kernel Code with Rust.

Since Windows 11, we all expect a lot from it, so we usually hope for a Windows successor. Of course, those things are well-addressed by developers. But David Weston’s recent announcement about the Windows 11 kernel code is new. During the Bluehat IL 2023 conference, David Weston said, “We are not flawless and always strive to improve user experience.” In context, he examined the present security status and found that Windows was getting many bugs, attacks, and memory errors.

A complex engineered system like the real world is prone to bugs, but attacks can’t be avoided. For a reason like this, developers finally decided to switch some of the kernel code to be written over Rust. For those who do not know, Rust is also a programming language developed by Graydon Hoare (Mozilla Engineer) in 2006. Microsoft chose Rust because it prevents memory errors, is easy to write, and uses an ownership and lending system to ensure each data has a single owner.

Microsoft will use Rust programming language in Windows 11 code kernel to improve efficiency and safety.

As a result, Microsoft Windows developers develop Kernel codes easier, reducing bugs, attacks, and memory errors. Despite officials’ efforts to explain the reasons for switching to Rust, there appears to be confusion about why developers chose Rust. So, below, we are sharing a list of reasons why Windows Kernel’s parts need to be rewritten based on Rust.

  • To reduce bugs, attacks, and memory errors
  • To provide memory safety without Garbage Collection
  • To perform better in embedded and device-based developments
  • It works perfectly for writing low-level software like Kernal OS, Microcontroller devices, and more
  • It can run multiple computations parallelly
  • Rust works better in terms of concurrency, safety, and speed than C++

Meanwhile, adopting Rust to write the core kernel insides will mainly improve the previous security downfalls. According to an official statement, developers plan to use this new coding language for at least two years. You will be surprised that Microsoft has already written 36,000 lines of code in Rust to reduce legacy attacks on their core programming language. It is not the first time a dominant company has switched to Rust.

You will be glad that companies like Google, Amazon, Apple, Facebook, and Dropbox have switched to Rust. Windows developers have already set up a dedicated team for implementing Rust since Rust has already proven to be a beloved language trusted by developers for the last six years. From that, Rust has a lot of potential to compete with the downsides of the C++ language. So, be ready for the Windows 11 kernel code to be newly written in Rust, as developers will roll it out in the coming weeks.

Frequently Asked Questions

Q1. Is Rust compatible with Windows 11?

Ans. Rust is entirely compatible with Windows 11 64-Bit.

Q2. Why is Rust better than C++?

Ans. Rust is comparatively better since it has more advanced safety standards that decrease development costs.

Q3. Is Rust the future of programming?

Ans. We all have seen the extreme potential of Rust over C++, and as the tech giants are adopting it, it will probably be a dominant coding language in the future.

Q4. Will Rust replace JavaScript?

Ans. JavaScript tools seem outdated, and I agree they are trying to be more advanced, but Rust is such a combination of mighty tools that meet all the downfalls of existing programming languages. Viewing that, it seems Rust will slowly replace JavaScript.