News for hackers. Stuff that matters.
Re:Kerla: Monolithic kernel in Rust, aiming for Linux ABI co... by wongarsu on Monday October 25, 2021 @07:33AM (#28986619)
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.

Re:Kerla: Monolithic kernel in Rust, aiming for Linux ABI co... by geewee on Monday October 25, 2021 @07:35AM (#28986642)
I don't think that the Linux kernel has decided (yet) to allow rust code into the kernel proper, has it?
Re:Kerla: Monolithic kernel in Rust, aiming for Linux ABI co... by fork-bomber on Monday October 25, 2021 @07:43AM (#28986697)
It hasn't. But the attitude towards using Rust for device driver development has now gotten very positive, especially post the recent kernel summit.
Re:Kerla: Monolithic kernel in Rust, aiming for Linux ABI co... by ericbarrett on Monday October 25, 2021 @09:38AM (#28987637)
An LWN article about Rust in Linux that's very relevant to this discussion: https://lwn.net/Articles/829858/
Re:Kerla: Monolithic kernel in Rust, aiming for Linux ABI co... by pjmlp on Monday October 25, 2021 @09:02AM (#28987289)
Google 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-mo...

If upstream ever cares to support clang or Rust, that is another matter.

Re:Kerla: Monolithic kernel in Rust, aiming for Linux ABI co... by jstarks on Monday October 25, 2021 @12:30PM (#28989757)
Unless I'm missing something, that link refers to building Android user-mode components in Rust, not kernel components in Rust.
Re:Kerla: Monolithic kernel in Rust, aiming for Linux ABI co... by steveklabnik on Monday October 25, 2021 @01:01PM (#28990216)
That's correct, but it came after them rebuilding the bluetooth stack https://news.ycombinator.com/item?id=26647981