News for hackers. Stuff that matters.
Re:Committing to Rust in the Kernel by strken on Tuesday September 24, 2024 @10:28PM (#41643106)
Does Rust support the same range of architectures as C? Or is there some way to compile Rust to C to support weird obscure systems?

Forgive me if this is something commonly known by the people involved. It just strikes me as the most obvious objection to Rust in the kernel and I haven't seen any explanation of what's going to happen.

Re:Committing to Rust in the Kernel by steveklabnik on Tuesday September 24, 2024 @10:46PM (#41643224)
Currently Rust is only acceptable in drivers. These are inherently platform specific, so there’s no issue with platform support. If Rust doesn’t support the platform, the driver won’t be written in it.

Rust’s platform support is better than you might assume, but it is missing some platforms the kernel itself supports, so until that’s resolved, it can’t be in the core of things.

Re:Committing to Rust in the Kernel by BD103 on Tuesday September 24, 2024 @11:29PM (#41643434)
Check out the Rust's documentation page on platform support[0]. You'll be able to find the full list of supported platforms, as well as the target tier policy, and specific target requirements and maintainers.

[0]: https://doc.rust-lang.org/rustc/platform-support.html

Re:Committing to Rust in the Kernel by boulos on Tuesday September 24, 2024 @10:32PM (#41643131)
Rustc lowers to LLVM IR, so it can target anything LLVM can. For a long while, that meant there were obscure architectures that were excluded, but IIRC coverage has improved and the Linux kernel has decided to drop support for them.

The main push has actually been from the BSD family pushing clang (and thus LLVM) to support a broader swath of less common architectures.

Re:Committing to Rust in the Kernel by raggi on Tuesday September 24, 2024 @10:30PM (#41643114)
rustc does not yet no, there's a lot of hope in the gcc rust frontend to help bridge the gap, but also there is increasing support in llvm for more architectures and things like this should drive interest in accelerating those projects.
Re:Committing to Rust in the Kernel by Palomides on Tuesday September 24, 2024 @10:35PM (#41643161)
rust doesn't support alpha, parisc, or super-h, but afaict there are at least nominally functional back ends for the other platforms modern linux runs on