Editorials 360

News from 360 Degree

Linux Builders Proceed Evaluating The Path To Including Rust Code To The Kernel

David Heinemeier Hansson Explains What It Takes to Write Great Code



Phoronix stories:
As talked about again in July, upstream Linux builders have been working to determine a path for including Rust code to the Linux kernel. That matter is now being additional explored at this week’s digital Linux Plumbers Convention…

To be clear although, these Rust Linux kernel plans don’t contain rewriting massive elements of the kernel in Rust (a minimum of for the foreseeable future…), there could be caveats on the extent to which Rust code could possibly be used and what performance, and the Rust help could be elective when constructing the Linux kernel. C would stay the dominant language of the kernel after which it is only a matter of what new performance will get added round Rust if involved by reminiscence security, concurrency, and different areas the place Rust is common with builders. Numerous upstream builders have been desirous about Rust for these language advantages round reminiscence security and safety in addition to its syntax being near C. There could be a to-be-determined subset of Rust to be supported by the Linux kernel…. Whereas the Rust code could be elective, the builders do acknowledge there are limitations on the place Rust is supported as a result of LLVM compiler back-ends. However a minimum of for x86/x86_64, ARM/ARM64, POWER, and different distinguished targets there’s help together with the likes of RISC-V.

Nothing agency has been decided but nevertheless it’s a subject that’s nonetheless being mentioned on the digital LPC this week and absolutely over the weeks/months forward on the kernel mailing checklist. There may be Rust-For-Linux on GitHub with a prototype kernel module implementation. There may be additionally the PDF slides from Thursday’s speak on the matter.

It isn’t clear to me that it is a finished deal. However the article argues that “it is nonetheless wanting like it would occur, it is only a matter of when the preliminary infrastructure will probably be in place and the way slowly the rollout will probably be…”

Learn extra of this story at Slashdot.