3 ms·
That's what may happen with the Linux kernel over time, now that it allows parts written in Rust. The limitation of that approach is that all internal interfac
by wongarsu 5y ago
That's what may happen with the Linux kernel over time, now that it allows parts written in Rust.
The limitation of that approach is that all internal interfaces (which includes most data structures) have to be C-compatible. You can get much of the safety benefits of Rust, but lose a lot of Rust's ergonomics.
- geewee 5y agoI don't think that the Linux kernel has decided (yet) to allow rust code into the kernel proper, has it?
- fork-bomber 5y agoIt hasn't. But the attitude towards using Rust for device driver development has now gotten very positive, especially post the recent kernel summit.
- pjmlp 5y agoGoogle has decided to go forward anyway. Just like Android Linux compiles just fine with clang for the last five years or so, it now makes use of Rust. https://source.android.com/setup/build/rust/building-rust-modules/overview https://source.android.com/setup/build/rust/building-rust-mo... If upstream ever cares to support clang or Rust, that is another matter.
- jstarks 5y agoUnless I'm missing something, that link refers to building Android user-mode components in Rust, not kernel components in Rust.
- steveklabnik 5y agoThat's correct, but it came after them rebuilding the bluetooth stack https://news.ycombinator.com/item?id=26647981 https://news.ycombinator.com/item?id=26647981
- ericbarrett 5y agoAn LWN article about Rust in Linux that's very relevant to this discussion: https://lwn.net/Articles/829858/ https://lwn.net/Articles/829858/