Rust is slower... Shouldn't be used in the kernel...
Linux
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
If someone makes a Rust-free fork, please name it Stainless.
Is very easy to build the kernel without rust, and is the default scenario
it is not the default
The default is GCC, and you need to build the kernel with clang to build the kernel with the rust support, how is possible rust arrives by default? https://docs.kernel.org/rust/quick-start.html
Maybe is the default in your distribution, but is not the default in the kernel
you need to build the kernel with clang to build the kernel with the rust support
I believe this statement is incompatible with how C works. The kernel can load modules written in any language as long as it outputs a .ko, so there can be no technical requirement for building the rest of the kernel itself with clang.
You can't load modules built with a different compiler. The modules aren't external programs, the modules are literally part of the kernel. And if you want to use a module wrote in rust you also need to have built in the rust support in the kernel
You can’t load modules built with a different compiler.
Sure you can. There's even multiple guides for how to write C++ kernel modules, which inherently is going to use a different compiler than what was used for the kernel itself.
if you want to use a module wrote in rust you also need to have built in the rust support in the kernel
Only if the module uses rust-specific interfaces in the kernel, otherwise it can be assembled into a .ko to have plain C-style symbols loaded by the kernel like normal.
How much of this will be slop?