this post was submitted on 09 Feb 2026
215 points (96.9% liked)

Linux

12218 readers
380 users here now

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

founded 2 years ago
MODERATORS
 

While Linux 7.0 is the next kernel version solely over Linus Torvalds' numbering preference, there is a notable symbolic change that was sent in overnight for this new kernel merge window: formally concluding the "Rust experiment" with upstream kernel developers now in acceptance that Rust for the Linux kernel is here to stay.

The patch was talked about back in December that the Rust experiment is over and it's here to stay. There are already uses for Rust in production environments, some Linux distributions shipping with Rust kernel code, and millions of Android devices also using it.

top 50 comments
sorted by: hot top controversial new old
[–] TrivialBetaState@sopuli.xyz 36 points 1 day ago (10 children)

Can someone explain to me why Rust has been so controversial for the GNU/Linux kernel? One thing that I personally don't like is that the equivalent Rust-made (equivalent) GNU tools are licensed under MIT (or Apache? - something permissive like that) instead of GPL. If they were under GPL, I'd be more than happy. But since the kernel is under GPL regardless of C or Rust, what is the reason for the backlash? Sounds like a very promising language indeed.

[–] Adeptus_Obsoletus@piefed.social 1 points 4 hours ago

As someone who is more of a casual user, I don't have a problem with Rust itself, but rather Cargo and pulling a bunch of dependencies from god-knows-where, it scares me. It just feels like npm 2.0, with all of it's issues included.

[–] soc@programming.dev 4 points 11 hours ago

Old people defending status quo.

[–] Corbin@programming.dev 6 points 19 hours ago

From the perspective of somebody who's actually hacked on Linux: Most Linux maintainers, like most programmers in general, are full of machismo stemming from the inherent difficulty of writing C. It is extremely difficult to write correct C and nobody can do it consistently, so those maintainers are heavily invested in the perception that they are skilled with C. Rust is much easier to write and democratizes kernel hacking, which is uncomfortable for older maintainers due to the standard teenagers-vs-parents social dynamics. Worse, adapting various kernel interfaces so that they are Rust-friendly has revealed that the pre- and postconditions of interface methods were not known before; there is existing sloppiness in the kernel's internals which is only visible because of Rust-related cleanups.

Note that Linux is not a GNU project. GNU's kernel project is GNU Herd. "GNU/Linux" refers to Linux userlands populated with GNU packages. It's important not to be distracted by this; the kernel is agnostic towards userland and generally is compatible with any loadable executable that uses Linux's public syscall interface, so the entire discussion of Rust in the kernel is separate from anything going on in userland.

Most siblings are wrong! PRs written in Rust can be rejected. There are already multiple non-C languages in the kernel. Rust is sufficiently available on the platforms where it will be required for building kernel. Maintainers are only added after they have shown themselves to be socially reliable and they can be removed by other maintainers if they are unresponsive. The only correct sibling points out that Rust is different.

[–] ILikeBoobies@lemmy.ca 39 points 1 day ago* (last edited 1 day ago) (1 children)

Most common reason I saw was not wanting mixed languages across the code base.

If you're a Rust maintainer and you're given a C patch (or reverse) then what do you do with it/confirm it's not bringing other bugs.

Other issues are that it's heavier, hurts compatibility, and doesn't function like C.

[–] TrivialBetaState@sopuli.xyz 7 points 1 day ago

This is a very valid reason, indeed.

[–] Jhex@lemmy.world 3 points 1 day ago

From what I have ready the issue is as follows:

Rust is a memory safe language, because of this Rust enthusiast have been pushing for it. Not a problem there.

The issue is that some have taken it to an extreme, evangelical level where they expect name dropping Rust should open every door and blindly accept every PR

In reality, Rust rewrites can (and have) introduced bugs because you can make shitty code even with the best languages out there

[–] Jankatarch@lemmy.world 18 points 1 day ago

The main real argument is that if new contributors write code and then leave for other projects then old contributors still have to maintain that code, a task that gets really hard when code is written in a different paradigm entirely.

[–] MonkderVierte@lemmy.zip 7 points 1 day ago

Huge toolchain needed and limited compatibility to other platforms.

[–] lbfgs@programming.dev 11 points 1 day ago

One big practical criticism is that it requires a different compiler which is supported on far fewer platforms than GCC

[–] Auth@lemmy.world 22 points 1 day ago

The entire controversy is that its different.

[–] wonderingwanderer@sopuli.xyz 5 points 1 day ago (2 children)

What's the advantage of GPL? As far as I'm aware MIT and Apache are both FOSS. But I'm new to this and still learning.

I don't know what the big deal about Rust is. It seems like a cool language to me...

[–] PlexSheep@infosec.pub 18 points 1 day ago (2 children)

MIT: do whatever you want, I don't care

GPL: You can modify this freely, but your product must also be FOSS if you modify this.

[–] pkjqpg1h@lemmy.zip 1 points 56 minutes ago

GPL makes sure that the project will not start enshittification and will remain Free Software

[–] wonderingwanderer@sopuli.xyz 4 points 1 day ago

Makes sense. Thanks!

[–] TrivialBetaState@sopuli.xyz 29 points 1 day ago (1 children)

GPL enforces that all derivatives are FOSS and GPL as well. With permissive licenses, like MIT and Apache, a company is free to take the code, change/develop it further (or leave it as is) and make it closed-sourced without sharing anything with anyone. Regarding Rust, I am with you. Hence my question.

[–] wonderingwanderer@sopuli.xyz 4 points 1 day ago (2 children)

I see. That makes sense.

So if the kernel were written in a language licensed under GPL, for instance, Ubuntu would either have to ditch their proprietary blobs or make their own kernel?

If I had to guess, the only reason Rust might be controversial to some people is probably because they're used to C and likely set in their ways. Someone who's been programming since the 80s and doesn't want to learn a new language cause maybe they'll feel like a newbie again and can't be smug about knowing every possible command in C anymore. Just a guess...

[–] SlurpingPus@lemmy.world 6 points 1 day ago* (last edited 1 day ago)

The kernel is licensed under GPL, specifically only version 2. And it can't be relicensed, since it contains code from many people. The poster above is complaining about command-line utilities that are being rewritten in Rust.

Binary-only modules can be used with the kernel, because ~~they don't use the kernel's source, only the API or~~ a GPL middleware is made that is compiled with kernel header files, but provides an intermediary API for the binaries. I'm not quite versed in what exactly is allowed and prohibited by GPL.

Edit: Linux-syscall-note explicitly places the boundary of 'derivative works' at syscalls — so userspace programs aren't considered derivative and don't have to be licensed under GPL, but kernel modules are.

[–] TrivialBetaState@sopuli.xyz 9 points 1 day ago (4 children)

I'm pretty sure that code written in any language can be licensed under the GPL. That's why I cannot understand the backlash against Rush for the Kernel.

load more comments (4 replies)
[–] RickyRigatoni@piefed.social 42 points 2 days ago (1 children)

🦀🦀🦀🦞🦀🦀🦀

[–] vivalapivo@lemmy.today 6 points 1 day ago (1 children)

Keep your openclaw away from linux you weirdo

[–] kbal@fedia.io 49 points 2 days ago

Okay fine, guess I really do need to learn (the rest of) Rust now.

[–] lambalicious 20 points 2 days ago (1 children)

Well, recalling from my experience with a lot of software products, they all tend to rust by around or shortly before version 7, so...

[–] mech@feddit.org 8 points 1 day ago (2 children)

Protip: To keep your software project fresh, add a 0. in front of the version number.
That way it never gets old, plus you can make breaking changes at any time.

[–] FooBarrington@lemmy.world 7 points 1 day ago (1 children)

I'm on version 0.0.0.0.0.0.0.0.0.0.0.0.0.1 already!

[–] lambalicious 2 points 1 day ago

Version 127.0.0.1 forever!

[–] zaphod@sopuli.xyz 3 points 1 day ago

I remember the time when Linux was stuck at 2.6.x.x, then came Linux for Workgroups 3.11.

load more comments
view more: next ›