Re:Linux 6.1 Officially Promoted to Being an LTS Kernel
by Denvercoder9 on Wednesday February 08, 2023 @10:39AM
(#34709544)
> will run on bunch of computers shortly, no matter if you want it to or not (granted you run a Linux kernel of course).
Probably not. The Rust support merged in 6.1 was only the bare minimum of infrastructure needed to write kernel modules in Rust, there's no modules in the kernel that actually use Rust yet. You need to explicitly enable the Rust infrastructure with a config option during compilation, and e.g. Debian doesn't do that yet (why would they?).
Re:Linux 6.1 Officially Promoted to Being an LTS Kernel
by nequo on Wednesday February 08, 2023 @10:12AM
(#34709109)
> Rust is officially in the kernel now and will run on bunch of computers shortly, no matter if you want it to or not
To me as a user, what difference does it make if the binary that I run was compiled from Rust, not from C? It is machine code.
Re:Linux 6.1 Officially Promoted to Being an LTS Kernel
by biorach on Wednesday February 08, 2023 @10:38AM
(#34709515)
As a user of the kernel, none, right now.
Long term there should be some improvement in reliability and security, if things work out as planned.
Re:Linux 6.1 Officially Promoted to Being an LTS Kernel
by jjnoakes on Wednesday February 08, 2023 @12:39PM
(#34711635)
I also think it will bring faster development and easier testing.
Re:Linux 6.1 Officially Promoted to Being an LTS Kernel
by howinteresting on Wednesday February 08, 2023 @01:19PM
(#34712316)
And a new generation of developers who have found C too intimidating to write code in.
Re:Linux 6.1 Officially Promoted to Being an LTS Kernel
by jacobr1 on Wednesday February 08, 2023 @02:21PM
(#34713368)
I don't think that is the problem. Rather it turns out everybody has been naive in thinking you can actually successfully manage memory, or other shared resourced in C without footgunning yourself.
Re:Linux 6.1 Officially Promoted to Being an LTS Kernel
by howinteresting on Wednesday February 08, 2023 @05:14PM
(#34716187)
Those are definitely related but distinct. The fact is that many younger developers will simply (for this and other reasons) refuse to contribute to a C (or C++) project, but happily do so to a Rust project.
Re:Linux 6.1 Officially Promoted to Being an LTS Kernel
by mike_hock on Wednesday February 08, 2023 @07:18PM
(#34717790)
I trust Linus to keep the shitty contributions out (and lambast contributors if necessary).
Re:Linux 6.1 Officially Promoted to Being an LTS Kernel
by xslvrxslwt on Wednesday February 08, 2023 @10:04PM
(#34719259)
No worries, that's only natural, especially for Linus, after all he's the one that said "if keeping C for the sole purpose of not letting C++ "devs" contribute - so be it" lol (and thanks him for that)
Re:Linux 6.1 Officially Promoted to Being an LTS Kernel
by billfruit on Wednesday February 08, 2023 @05:16PM
(#34716235)
Also does this lead to an increase in dependencies for building the kernel? How about building it for older hardware?
Re:Linux 6.1 Officially Promoted to Being an LTS Kernel
by LoganDark on Wednesday February 08, 2023 @10:26AM
(#34709331)
> Rust is officially in the kernel now and will run on bunch of computers shortly, no matter if you want it to or not
I believe Rust is only used for a few kernel modules at the moment.
Re:Linux 6.1 Officially Promoted to Being an LTS Kernel
by seanw444 on Wednesday February 08, 2023 @11:11AM
(#34710102)
Other than the headline of "Rust kernel module mainlined" I don't know what this entails. Do you need the entire rustc/cargo toolchain to compile this portion of the kernel? Or have they implemented some Rust compiler in gcc that it uses?
Re:Linux 6.1 Officially Promoted to Being an LTS Kernel
by conradev on Wednesday February 08, 2023 @11:22AM
(#34710316)
Rust support was merged into GCC in December: https://www.phoronix.com/news/GCC-13-Rust-Merged
Re:Linux 6.1 Officially Promoted to Being an LTS Kernel
by chaosite on Wednesday February 08, 2023 @11:30AM
(#34710468)
That doesn't sound right, are you saying that the kernel depends on an unreleased version of GCC (13.1?)
> Among the key highlights for Linux 6.1 are the initial Rust infrastructure has been merged
https://www.phoronix.com/review/linux-61-features