3 ms·
As much as I love Rust: As long as Rust doesn't support all platforms which the Linux kernel supports, it really is a no-go for kernel code in general.
by adwn 7y ago
As much as I love Rust: As long as Rust doesn't support all platforms which the Linux kernel supports, it really is a no-go for kernel code in general.
- steveklabnik 7y ago"in general" is a bit strong; the maintainers have said: > I spoke with Greg Kroah-Hartman, and he said he'd be willing to accept a framework in the kernel for writing drivers in Rust, as long as 1) for now it wasn't enabled by default (even if you did "make allyesconfig") so that people don't need Rust to build the kernel, and 2) it shows real benefits beyond writing C, such as safe wrappers for kernel APIs. https://lwn.net/Articles/797828/ https://lwn.net/Articles/797828/
- adwn 7y agoThat's why I wrote "in general": It's not yet suitable for most kernel code, just for some specific cases (i.e., optional drivers). Hmm, maybe I should have written "...for general kernel code" or "...for most kernel code", that would have been clearer.
- steveklabnik 7y agoAh yeah, I see that now... words are hard, I think you can read this both ways. Sorry about that!