11 ms·
The biggest point is in your second paragraph. "The problem really is that the people who want to see Rust in the linux kernel have next to no linux kernel bac
by zare_st 3y ago
The biggest point is in your second paragraph.
"The problem really is that the people who want to see Rust in the linux kernel have next to no linux kernel background and have a poor understanding of how Linux works and how things are generally done."
Is this a non topic then?
Having drivers in Rust is one thing. Drivers were done in C++ before. But you use a subset because a language targeting kernel needs to use kernel facilities. You won't be able to use your standard library. Syntax needs to be resolved to what kernel provides, or dropped.
That's why C++ in kernel never took off that seriously, when you restrict it, and when you already have to accommodate for kernel's "API mindset", what's left of language in between isn't that important.
- i_am_a_peasant 3y agoIf C could get constexpr and templates (with concepts) I would be very happy. Everything else in C++ is just syntactic sugar to me. Very useful syntactic sugar, but just sugar. Alright placement new is quite nice too. Since there are so many ways to allocate memory in the linux kernel. As far as RAII goes, ehhhh I don't know. KASAN and kmemleak do a pretty ok job.