Microsoft is turning to Rust to safeguard some of its most crucial core code
Memory-safe code is the aim of the game
When you purchase through links on our site, we may earn an affiliate commission.Here’s how it works.
Rust is now beginning to reach Windows developers asMicrosoftlooks to safeguard some of its most important core code.
Windows Director of OS Security David Weston explained that Windows would boot with Rust in the “next several weeks or months,” and true to his word, the company has been rewriting core libraries in the memory-safe code.
He continued to explain the company’s goal of converting C++ data types into their Rust equivalents, proclaiming “very few calls to unsafe code” in a nod to the company’s success.
Rust for Windows
Memory-safe code has been a growing topic for discussion in recent years, given the potential for bugs in code to affect any electronic device running software or firmware. Rust is designed to help prevent exploitable code from being shipped in the first place, making Windows, in this case, more secure.
These are the best laptops for programming>BlackBerry is getting to grips with Rust at last>Google says Rust is the key to cutting Android vulnerabilities
Microsoft’s commitment to Rust isn’t unique, withGooglealready having announced its readiness for the coding language two years ago in Android, stating that “memory safety bugs in C and C++ continue to be the most-difficult-to-address source of incorrectness.” Rust joined Kotlin and Java in the Android Open Source Project.
DWriteCore inWindows 10and above has already been part of the Rust revolution, and now has substantially more lines of Rust code than C++.
The move to Rust is one that sees the company’s developers tackling the OS’s oldest challenges, according to Weston, who hinted at a more secure future for Windows.
Are you a pro? Subscribe to our newsletter
Sign up to the TechRadar Pro newsletter to get all the top news, opinion, features and guidance your business needs to succeed!
At the Tel Avivpresentation, he explained that “as much as we love Rust, we know it’s probably not the solution to rewrite the last 40 years of C and C++ code in Rust,” indicating that “broader approaches” may spell out a future whereby Rust may not be the be-all-and-end-all solution.
ViaThe Register
With several years’ experience freelancing in tech and automotive circles, Craig’s specific interests lie in technology that is designed to better our lives, including AI and ML, productivity aids, and smart fitness. He is also passionate about cars and the decarbonisation of personal transportation. As an avid bargain-hunter, you can be sure that any deal Craig finds is top value!
New fanless cooling technology enhances energy efficiency for AI workloads by achieving a 90% reduction in cooling power consumption
Samsung plans record-breaking 400-layer NAND chip that could be key to breaking 200TB barrier for ultra large capacity AI hyperscaler SSDs
NYT Strands today — hints, answers and spangram for Sunday, November 10 (game #252)