Arthur T Knackerbracket has processed the following story:
Rust is alive and well in the Linux kernel and is expected to translate into noticeable benefits shortly, though its integration with the largely C-oriented codebase still looks uneasy.
In a hopeful coda to the recent maintainer drama that raised questions about the willingness of Linux maintainers to accommodate Rust code, Josh Aas, who oversees the Internet Security Research Group's Prossimo memory-safety project, late last week hailed Miguel Ojeda's work to advance memory safety in the kernel without mentioning the programming language schism.
"While our goal was never to rewrite the entire kernel in Rust, we are glad to see growing acceptance of Rust's benefits in various subsystems," said Aas. "Today, multiple companies have full time engineers dedicated to working on Rust in the Linux kernel."
Since at least September last year, when Microsoft software engineer Wedson Almeida Filho left the Rust for Linux project citing "non-technical nonsense," it's been clear that acceptance had limits. Tensions between Rust and C kernel contributors flared again in January over concerns about the challenges of maintaining a mixed language codebase – likened to cancer by one maintainer. Urged to intervene, Linux creator Linux Torvalds did so, making his annoyance known to both parties and prompting their departures as Linux maintainers.
Amid all that, Ojeda, who helms the Rust for Linux project, published a "Rust kernel policy" as a way to clarify that those contributing Rust code to the Linux kernel should stay the course and to underscore that Linux leaders still support the initiative.
According to Aas, the presence of Rust code is increasing in various Linux subsystems, including: PHY drivers, the null block driver, the DRM panic screen QR code generator, the Android binder driver, the Apple AGX GPU driver, the NVMe driver, and the Nova GPU driver.
"We expect that one of them will be merged into the mainline kernel in the next 12-18 months," said Aas, pointing to remarks from Linux lieutenant Greg Kroah-Hartman last November suggesting that the availability of Rust driver bindings represented a tipping point that would allow most driver subsystems to start getting Rust drivers.
Once this happens, said Aas, "the goal of the effort will start to be realized: Products and services running Linux with Rust drivers will be more secure, and that means the people using them will be more secure, too."
[...] "The good news is that with the rare exception of code that must be written in assembly for performance and/or security reasons (eg, cryptographic routines), we know how to get rid of memory safety vulnerabilities entirely: write code in languages that don't allow for those kinds of mistakes. It's a more or less solved research problem, and as such we don't need to suffer from this kind of thing any more. It can be relegated to the past like smallpox, we just have to do the work."
Between evocations of cancer and smallpox, it sounds like the Linux and Rust communities still have some issues to work out.
(Score: 2, Disagree) by sneftel on Thursday March 13, @11:02AM (1 child)
Fine. Go away. One can make reasonable arguments about maintainability versus security, but if it's just a matter of your "interest"? The Linux project is not short of contributors, both volunteers and professionally compensated. If someone's dedication in the project is so tepid as to be overwhelmed by having to learn a new language (seriously??), they can bow out now and increase the average level of commitment.
(Score: 2, Insightful) by Anonymous Coward on Saturday March 15, @02:25AM
Aw, poor little newbe programmer gets his feelings hurt because someone doesn't want to deal with his favorite toy language.
(Score: 1, Flamebait) by DadaDoofy on Thursday March 13, @11:34AM
"Rust is alive and well in the Linux kernel and is expected to translate into noticeable benefits".
"we are glad to see growing acceptance of Rust's benefits"
That these so-called "benefits" are left mostly up to the reader's imagination leaves little doubt that the real benefit lies in pissing off Linux purists.
(Score: 2) by Username on Thursday March 13, @02:49PM (2 children)
Will it accidentally shoot me with live rounds?
>written in assembly
That's one language I've never been able to figure out. Do I use the ikea compiler?
> like smallpox
*waits patiently for the lab leak*
(Score: 2) by turgid on Thursday March 13, @03:02PM (1 child)
Web Assembly for portability?
I refuse to engage in a battle of wits with an unarmed opponent [wikipedia.org].
(Score: 3, Funny) by Ox0000 on Thursday March 13, @05:32PM
The Birth & Death of JavaScript - A talk by Gary Bernhardt from PyCon 2014 [destroyallsoftware.com]
Enjoy! :)
(Score: 3, Insightful) by VLM on Thursday March 13, @06:37PM
Vaporware is always SO optimistic.