Linus Torvalds Is Cautiously Optimistic About Bringing Rust Into Linux Kernel's Next Release

image

slack_justyb shares a report from ZDNet:

For over three decades, Linux has been written in the C programming language. Indeed, Linux is C’s most outstanding accomplishment. But the last few years have seen a growing momentum to make the Rust programming language Linux’s second Linux language. At the recent Open Source Summit in Austin, Texas, Linux creator Linus Torvald said he could see Rust making it into the Linux kernel as soon as the next major release. “I’d like to see the Rust infrastructure merging to be started in the next release, but we’ll see.” Linux said after the summit. “I won’t force it, and it’s not like it’s going to be doing anything really meaningful at that point – it would basically be the starting point. So, no promises.”

Now, you may ask: “Why are they adding Rust at all?” Rust lends itself more easily to writing secure software. Samartha Chandrashekar, an AWS product manager, said it “helps ensure thread safety and prevent memory-related errors, such as buffer overflows that can lead to security vulnerabilities.” Many other developers agree with Chandrashekar. Torvalds also agrees and likes that Rust is more memory-safe. “There are real technical reasons like memory safety and why Rust is good to get in the kernel.” Mind you, no one is going to be rewriting the entire 30 or so million lines of the Linux kernel into Rust. As Linux developer Nelson Elhage said in his summary of the 2020 Linux Plumber’s meeting on Rust in Linux: “They’re not proposing a rewrite of the Linux kernel into Rust; they are focused only on moving toward a world where new code may be written in Rust.” The three areas of potential concern for Rust support are making use of the existing APIs in the kernel, architecture support, and dealing with application binary interface (ABI) compatibility between Rust and C.

1 Like