Conversation
re: rust, linux kernel, joyful caps
Show content

@jill oooh

0
0
0
re: rust, linux kernel, joyful caps
Show content
Ah so we got yesterday evening our first "Rust-hater" among the patchset reactions
I think these days will be quite the shitstorm in the Kernel Mailin-List lmao :')
2
1
8
re: rust, linux kernel, joyful caps
Show content
But also it brings many good questions about Rust design and how we could use the "Rust for Linux" patchset to improve both the kernel and the language.
For now the main problems being:
- The alloc model of Rust which is based on runtime-panic on allocation failure, which is greatly incompatible with the Linux kernel, and actually is the biggest blocking point for merging the patchset (according to Linus himself so, yeah it's quite blocking actually)
The "faillible-alloc" API would gains greatly from kernel devs reviews and would allow to get a good API design
- The Rust Model Model, based on C++20/C11 MM spec, is actually not great for sync-related code, as it clashes with the kernel own's memory model for this stuff (LKMM)
Many kernel devs seems to be kinda joyful about helping Rust improving its memory model and going away from the "de facto" actual standard which is mostly imposed and the Rustonomicon page about this is actually great to see how it's actually that bad: https://doc.rust-lang.org/nomicon/atomics.html
(TL;DR: Informatics is shit and we failed every bit of this)
0
3
5
re: rust, linux kernel, joyful caps
Show content

@jill Ooooooh, this is interesting.

0
0
0
re: rust, linux kernel, joyful caps
Show content

@jill I didn’t know (or maybe I forgot?) you were a kernel developer.

1
0
0
re: rust, linux kernel, joyful caps
Show content
@Sylvhem I'm not actually i used "we" as in "the rust community" and as i'm subscribe to the rust-for-linux mailing-list as well as wanting to do some rust kernel stuff ^^
0
0
1
re: rust, linux kernel, joyful caps
Show content

@jill omg do that mean we will be able to code parts of the kernel in Rust ??

I definitely need to learn this language

1
0
0
re: rust, linux kernel, joyful caps
Show content
@Nocta If the patchset is merged into the mainline kernel, yes! :)
The goal is, for now, to have a starting support of Rust language by having modules and drivers being written in Rust
It's not planned yet to migrate kernel core source to Rust tho
0
0
2