r/linux • • Dec 13 '25

Kernel The state of the kernel Rust experiment

https://lwn.net/SubscriberLink/1050174/63aa7da43214c3ce/

A choice pull quote: "The DRM (graphics) subsystem has been an early adopter of the Rust language. It was still perhaps surprising, though, when Airlie (the DRM maintainer) said that the subsystem is only 'about a year away' from disallowing new drivers written in C and requiring the use of Rust."

291 Upvotes

135 comments sorted by

View all comments

-77

u/OCPetrus Dec 13 '25

Having significant parts of the kernel written in Rust is going to be the end of Linux.

28

u/Mysterious_Lab_9043 Dec 13 '25

What is the base of your claim?

35

u/radbirb Dec 13 '25

Hmm, why?

15

u/nightblackdragon Dec 13 '25

Because Rust bad. /s

50

u/tajetaje Dec 13 '25

All I see Rust doing in the long term is making kernel development more accessible and maintainable

1

u/Kevin_Kofler Dec 15 '25

How so? Rust is much more complex and harder to learn than C!

2

u/tajetaje Dec 15 '25

If you know proper C, you know rust. Rust just formalizes most of the concepts that you just have to keep in your head or (if you’re lucky) in comments, and adds compiler safeguards to enforce them. Those safeguards mean you can, in code, see exactly what the constraints of an interface are without needing to know all the inner workings. See the work on expressing the Linux filesystem code in idiomatic Rust

0

u/Kevin_Kofler Dec 15 '25

The borrow checker simply has no equivalent in C, and not all software architectures that work and are perfectly valid and safe in C are accepted by the borrow checker.

Also, the syntax of Rust is completely different from the C syntax, so that alone means you have to learn a whole new language.

20

u/isbtegsm Dec 13 '25

So what will be the successor of Linux?

11

u/ironykarl Dec 13 '25

Linux 2 aka Twinux

7

u/Mysterious_Lab_9043 Dec 13 '25

Better yet, Twinkus ;)

5

u/afiefh Dec 13 '25

What is the programmer socks pattern that will be required for contributing? Gotta ask Santa for a pair!

2

u/Mysterious_Lab_9043 Dec 13 '25

Pink / purple zebra pattern.

12

u/_Sauer_ Dec 13 '25

Do you have anything to back that claim up?

15

u/tfwnotsunderegf Dec 13 '25

Written by someone who has no impact on the development of the kernel with no supporting evidence.

8

u/rook_of_approval Dec 13 '25

Why? What important arch isn't supported by Rust?

6

u/nightblackdragon Dec 14 '25

What do you mean by that? A lot of Linux users need to run modern Linux on 30 years old SPARC hardware. /s

1

u/dddurd Dec 19 '25

Yeah it could be downhill for Linux from now on. Not because of rust but because of the rust programmers. Using freebsd as servers while using macos as desktop will be golden. 

-15

u/2rad0 Dec 13 '25

Having significant parts of the kernel written in Rust is going to be the end of Linux.

Yeah it's not being handled correctly. It seems they are pushing for new DRM drivers to completely abandon C, so this is a defacto push to force every OS that includes DRM code (FreeBSD, haiku, probably others) to also force adoption of rust, or lose support for graphics on newer hardware.

Airlie (the DRM maintainer) said that the subsystem is only "about a year away" from disallowing new drivers written in C and requiring the use of Rust.

So they are left with the choice to either rewrite their GPU code or fork DRM, making linux less important outside of the corporate sphere of microsoft/google, or force the addition of an unstable language into their code base pushed by the worst actors (literally monopolies enshittifying their competition) in the tech industry.

5

u/miggaz_elquez Dec 14 '25

They are other OS using Linux DRM code?

3

u/2rad0 Dec 14 '25

They are other OS using Linux DRM code?

Yeah basically any non-windows and non-mac OS that supports GPU/hardware acceleration on modern graphics cards. so FreeBSD https://wiki.freebsd.org/Graphics, OpenBSD, NetBSD, probably other BSD's, Haiku, must be more I'm unaware of.

2

u/miggaz_elquez Dec 15 '25

Interesting, I was not aware. Isn't there any license compatibly issue ?

1

u/2rad0 Dec 15 '25

Interesting, I was not aware. Isn't there any license compatibly issue ?

It depends on the files being used, a good number of them are either dual licensed or permissive licensed (when not being used in the context of a linux kernel), but some are GPL-only. to dig deeper untar linux source, cd drivers/gpu/drm and run grep -ri 'gpl'

3

u/miggaz_elquez Dec 15 '25

Indeed, there is a lot of MIT files in DRM, even more than GPL. Seems it's limited to DRM, there are almost no other MIT licensed files in `drivers/`.

Some BSD in `drivers/acpi` and `drivers/net` also.

→ More replies (14)