One of the world’s most popular programming languages is coming to Linux

The next version of Linux will include support for Rust

When you purchase through links on our site, we may earn an affiliate commission.Here’s how it works.

The next version of theLinuxkernel will include support for popular programming language Rust, it has been confirmed.

As reported byThe Register, Linus Torvalds, the creator of Linux, has now accepted a pull request that will bring Rust support to the kernel with version 6.1.

The idea is not to rebuild the entire kernel in Rust, but rather to complement the existing C codebase with new components written in the secondary language, helping to reduce the likelihood of memory bugs that lead to security vulnerabilities.

Rust in Linux 6.1

Rust in Linux 6.1

With the release of Linux 6.0 last weekend, eyes will now inevitably turn to the next version. Although the latest kernel update included only relatively unsexy changes, the addition of Rust to Linux 6.1 is considered a major addition.

According to a recentsurveyof 70,000 developers by StackOverflow, although Rust is not the most widely used of all languages (that’sJavaScript), it was voted “most loved” by respondents. It is also, incidentally, among the most lucrative languages for developers, commanding a median yearly salary of almost $90,000.

The campaign to bring Rust to Linux has been ongoing for some time, earning support from an array of stakeholders, includingGoogle, which developed Android atop the Linux platform.

“We feel that Rust is now ready to join C as a practical language for implementing the kernel,”saidWedson Almeida Filho, a member of the Android team.

Are you a pro? Subscribe to our newsletter

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!

“It can help us reduce the number of potential bugs and security vulnerabilities in privileged code while playing nicely with the core kernel and preserving its performance characteristics.”

Linux running slowly? This one simple tweak could fix it>Our list of the best Linux laptops available>Linux bug is breaking the screens of Intel-based laptops

Until recently, concerns around the need to build non-standard extensions for Rust in order to make it compatible with Linux have limited progress. But ultimately, it was decided the language is sufficiently well-supported in Clang, a compiler front end for the C family of languages.

The initial merge brings roughly 12,500 lines of Rust code to the kernel, laying the groundwork for subsystem abstractions and Rust-based drivers, to be introduced with future pull requests.

Following the traditional pattern, Linux 6.1 should go live within the next two to three months.

Joel Khalili is the News and Features Editor at TechRadar Pro, covering cybersecurity, data privacy, cloud, AI, blockchain, internet infrastructure, 5G, data storage and computing. He’s responsible for curating our news content, as well as commissioning and producing features on the technologies that are transforming the way the world does business.

7 myths about email security everyone should stop believing

Best Usenet client of 2024

New fanless cooling technology enhances energy efficiency for AI workloads by achieving a 90% reduction in cooling power consumption