Linus Torvalds is cautiously optimistic about integrating Rust into the next Linux kernel release

For more than three decades, Linux has been written in the C programming language. Indeed, Linux is C’s most notable achievement. Rust programming language Second Linux language of Linux. To recent Open Source Summit in Austin, Texas, Linux creator Linus Torvald said he could see Rust integrating the Linux kernel as soon as the next major release.

After the conference, I spoke with Torvalds and he said, “I’d like to see the Rust framework merge to launch in the next release, but we’ll see.” The next version of Linux would be Linux 5.20. Torvalds and other Linux kernel maintainers are currently working on Linux 5.19.

The the average time between new releases of the main kernel is 9-10 weeks. This means that we will probably see 5.19 in early August. Then, if all goes well, we would see Rust in 5.20 in late October or early November 2022.

But, added Torvalds, “I’m not forcing it, and it’s not like it’s going to do anything really meaningful at this point – that would basically be the starting point. So, no promises.”

Now you may ask, “Why are they adding Rust?”

Rust lends itself more easily to writing secure software. Samartha Chandrashekar, AWS Product Manager, said this “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 integrate into the kernel.”

Note that no one is going to rewrite the entire 30 million or so lines of the Linux kernel in Rust. As Linux developer Nelson Elhage said in his summary of the 2020 Linux Plumbers Meeting on Rust in Linux“They’re not proposing a rewrite of the Linux kernel in Rust; they’re just focused on moving to a world where new code can be written in Rust.” The three potential areas of concern for Rust support are the use of existing APIs in the kernel, architecture support, and Application Binary Interface (ABI) compatibility between Rust and C. .

So if everything works, you can expect to see memory-safe rust in the Linux kernel later this year. After that, it will start appearing in mainstream Linux distributions such as DebianName, Ubuntu, SUSE Linux Enterprise Serverand Red Hat Enterprise Linux by 2023.

Related stories:

Comments are closed.