Stories
Slash Boxes
Comments

SoylentNews is people

Submission Preview

Link to Story

News and Advice on the World's Latest Innovations

Accepted submission by upstart at 2022-09-19 17:16:56
News

████ # This file was generated bot-o-matically! Edit at your own risk. ████

News and Advice on the World's Latest Innovations [zdnet.com]:

The Rust in Linux debate is over. The implementation has begun. In an email conversation, Linux's creator Linus Torvalds, told me, "Unless something odd happens, it [Rust] will make it into 6.1."

ZDNET Recommends The best Linux Foundation classes [zdnet.com]

Want a good tech job? Then you need to know Linux and open-source software. One of the best ways to learn is via a Linux Foundation course.

Read now

The Rust programming language [rust-lang.org] entering the Linux kernel has been coming for some time. At the 2020 Linux Plumbers Conference [linuxplumbersconf.org], developers started considering using the Rust language for new Linux inline code [linuxplumbersconf.org]. Google, which supports Rust for developing Android -- itself a Linux distro -- began pushing for Rust in the Linux kernel in April 2021 [googleblog.com].

As Wedson Almeida Filho of Google's Android Team said at the time [googleblog.com], "We feel that Rust is now ready to join C as a practical language for implementing the kernel. 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."

It took a while to convince the top Linux kernel developers of this. There were concerns about non-standard Rust extensions being needed to get it to work in Linux. For instance, with the new Rust Linux NVMe driver [phoronix.com], over 70 extensions needed to be made to Rust to get it working. But, Torvalds had told me in an earlier interview [zdnet.com], "We've been using exceptions to standard C for decades."

Also: Linus Torvalds talks Rust on Linux, his work schedule and life with his M2 MacBook Air [zdnet.com]

This was still an issue at the invitation-only Linux Kernel Maintainers Summit [linuxfoundation.org]. But, in the end, it was decided that Rust is well enough supported in the Clang [docs.rs] -- the C language family compiler front end -- to move forward. Besides, as Torvalds had said earlier [zdnet.com], "Clang does work, so merging Rust would probably help and not hurt the kernel."

At the meeting, Torvalds said, "There was debate at the Maintainers Summit, but it was really mostly about the issue of compiler versions. Which isn't new to Rust (we already have the whole issue on lots of different compiler versions, and gcc vs clang).

It also helped Rust's case that -- thanks to the ground-breaking work of Linux kernel and Rust developer Miguel Ojeda -- Rust on Linux has gotten much more mature [lpc.events]. In addition, Andreas Hindborg, a Western Digital Principal Engineer, at the 2022 Linux Plumbers Summit [lpc.events], showed you could write a first-rate driver, an SSD NVM-Express (NVMe) driver for Linux in Rust [desdelinux.net]. The maintainers were convinced it was time to move forward with Rust in Linux. In short, they agreed that Rust on Linux was ready for work.

Now, Torvalds warns in this first release, Rust will "just have the core infrastructure (i.e. no serious use case yet)." But, still, this is a major first step for Rust and Linux.

See also


Original Submission