Microsoft Embraces Rust

Recommended Follow↓

Source: OSC Open Source Community (ID: oschina2013)

Windows 11 released a new test version (Insider Preview Build 25905) last week.The release announcement mentioned that this version has rewritten some functions in the Windows 11 kernel using Rust.Microsoft Embraces RustIt is reported that this preview version implements key kernel functions using safe Rust. Specifically, win32kbase_rs.sys contains a new implementation of the Windows GDI region . Although this is a small experimental feature, Microsoft engineers stated that Rust has advantages in reliability and safety compared to traditional programs written in C/C++, and they will continue to increase the use of Rust in the kernel. In March of this year, David “dwizzle” Weston, the Director of Security for the Windows Operating System, announced the entry of Rust into the operating system kernel at BlueHat IL 2023 in Tel Aviv, Israel — Rewriting Core Windows Libraries with Rust, and stated that in the coming weeks or months, Rust will be used to boot Windows in the kernel, with the basic goal of replacing some internal C++ data types with Rust.Microsoft Embraces RustRust is a high-performance, memory-safe language, and most vulnerabilities in software projects are related to memory safety bugs. Since 2004, the Microsoft Security Response Center (MSRC) has classified all reported Microsoft security vulnerabilities. According to their data, approximately 70% of all Microsoft annual patches are fixes for memory safety vulnerabilities. In fact, Microsoft has shown interest in Rust for several years, believing that the language is a way to capture and eliminate memory safety vulnerabilities before the code reaches users. Nowadays, as competitors like Google are embracing Rust, Microsoft’s exploration of Rust has become more enthusiastic. Last September, Microsoft Azure CTO Mark Russinovich even called on social media for developers to use Rust more instead of C/C++ for new projects. On the other hand, while rewriting Windows with Rust will not happen quickly, Microsoft’s support for Rust undoubtedly benefits the open-source community. Open-source software developer and current Sentry security engineer Armin Ronacher believes that Microsoft’s investment in Rust is very important for the language.“Specifically, I hope Microsoft reuses the existing compiler, and I hope this will lead to better PDB [Program Database] support. Currently, developer tool support on Windows lags behind what you get on DWARF-based [Debugging with Attribute Record Format] platforms.For more content, see: “Microsoft aims to make Windows tougher by rewriting core Windows libraries with 180,000 lines of Rust code”Related link: https://blogs.windows.com/windows-insider/2023/07/12/announcing-windows-11-insider-preview-build-25905/

– EOF –

Recommended Reading Click the title to jump

1. Google has a function with 20,000 variables…

2. Employee fired for taking “paid bathroom breaks” of 3-6 hours daily, lawsuit goes to the Supreme Court

3. Arrested! A graduate from Renmin University stole a large amount of student information to create a “beauty scoring” website

Follow “Programmers’ Affairs” and star it to not miss out on industry news

Likes and views are the biggest support❤️

Leave a Comment