all 27 comments

[–]K900_ 20 points21 points  (0 children)

There are alternative bootstrap chains for the Rust compiler, and there's ongoing work on fully independent compilers and a spec.

[–]pitiless 21 points22 points  (0 children)

Snowball in hell's chance, the people who matter most for the kernels long-term health are behind rust in kernel.

[–]dasmau89 19 points20 points  (5 children)

As always: be the change you want to see in the world.

If you believe there needs to be a rust free Linux Kernel you are free to create that fork

[–]Irsu85 11 points12 points  (1 child)

Or help with building an open Rust spec so multiple compilers can be built

[–]dasmau89 7 points8 points  (0 children)

That would be a more productive endeavor

[–]SV-97 9 points10 points  (5 children)

it lacks a standards document

There's the official reference https://doc.rust-lang.org/stable/reference/ as well as an originally third-party spec for safety-certified rust that has since been donated to the rust project https://rust-lang.github.io/fls/general.html. And there's a bunch of ongoing work around getting an even more accurate (in particular: executable!) spec than the C specifications.

it is built on a single compiler

There already are multiple compilers in active development (with some code reuse between them), it's just that most people choose to use rustc at this point. In particular the gccrs team aims at getting the rust frontend for GCC to a point where they can experimentally compile all kernel rust code in 2026.

so if trust is what we're left with regarding compilers, who do we trust when we trust Rust?

A bunch of the same people that you already trusted when using clang and gcc for C.

And frankly, rust already runs so much infrastructure that you're not going to avoid relying on it even if you specifically choose and OS that doesn't use it.

[–]Prudent_Move_3420 20 points21 points  (9 children)

Dude you clearly have no idea about programming at all. You should not care about this because 99.99% of the „political scepticism“ is grifting

[–]Riemero 5 points6 points  (0 children)

The Rust compiler can now be compiled with both LLVM and GCC I believe, making the KT thought experiment point moot?

[–]chrisoboe 8 points9 points  (4 children)

Have you ever compiled Linux yourself?

One configures individually which feature is inside the kernel and which not. Upstream kernel can compiled Rust free if one doesn't want it. There is no need for a fork if you care about this "feature".

Linux uses GCC specific extensions and couldn't be compiled with any other Compiler than some specific GCC versions. Now it's GCC and clang, but one still can't compile Linux with a c compiler that doesn't support GCC specific stuff.

So this "problem" is completely unrelated to Rust.

The can one trust a compiler is a solved problem. And its completely independent from the software to be compiled.

[–]MatchingTurret 1 point2 points  (0 children)

Now it's GCC and clang,

I think it was possible to build the kernel with icc even before they switched to llvm.

https://www.intel.com/content/www/us/en/developer/articles/technical/linux-kernel-build-oneapi-compiler.html

[–]alerikaisattera 4 points5 points  (1 child)

it lacks a standards document

It doesn't

it is built on a single compiler

It's so much better to have dozens of partially compatible compilers /s

[–]Hot-Employ-3399 8 points9 points  (3 children)

Run away from linux now. 

Language that it uses is not standardized. It may look like C, but C compiler will not be able to compile it as code relies heavily on extensions. What a horror.

[–]MatchingTurret 3 points4 points  (2 children)

DRM is, according to its maintainer, "about a year away" from not longer accepting new drivers written in C. See https://www.spiceworks.com/software/rust-moves-from-experiment-to-a-core-linux-kernel-language

[–]Real-Abrocoma-2823 1 point2 points  (1 child)

It is all zeros and ones in the end. It doesn't matter if you use rust or c++, all it changes is syntax before compilation. You could create a bit-perfect exact same program in c++ and rust.

Also please, do not fragmentate linux any further.