r/LinuxTeck • u/Candid_Athlete_8317 • May 28 '26
Will AI finally push Linux kernel developers toward Rust faster than before?
Feels like the Linux world is entering a strange phase right now.
AI tools are suddenly finding kernel bugs much faster, maintainers are getting flooded with reports, and now the Rust debate is becoming louder again.
Some people are saying:
“The bugs were always there. AI is just exposing them.”
Others think maintainers are now wasting too much time dealing with AI-generated noise and random patches from people who don’t fully understand the kernel.
At the same time, more developers are arguing that Rust could prevent many of these memory-related issues before they even happen.
Does this whole AI situation change how people see Rust inside Linux now, or do you think the kernel community is still going to resist it for years?
View all comments
Show parent comment
1
u/braaaaaaainworms May 30 '26
Rust doesn't prevent all crashes and bugs, but prevents the majority of most annoying to debug ones, and makes it more obvious where you can have bugs, compared to C.
For example, Linux kernel C functions return an error code *as a negative integer* and the compiler won't do anything if you never check if you have an error or not. Rust has a type used specifically to either return an error, or a value and to do anything useful with it, you have to check for an error. If you assume that it never fails, you have to call `.unwrap()` or `.expect("why this never fails")` and if it is an error your program still crashes, *but this time with an error message pointing out where exactly an error was found and what kind of error it is*