r/linux • • Dec 10 '25

Kernel "Rust in the kernel is no longer experimental — it is now a core part of the kernel and is here to stay."

https://lwn.net/Articles/1049831/
1.5k Upvotes

353 comments sorted by

View all comments

Show parent comments

12

u/Xaeroxe3057 Dec 10 '25

It’s a good question. In the modern world it’s essentially impossible for a low-level language such as Rust to get anything done without FFI. All Rust software today makes extensive use of FFI, whether the developers are consciously aware of it or not. I’ve been a Rust developer for 11 years and it became apparent to me pretty quickly that I wouldn’t be able to get anything done with it unless I also knew C and C++. Rust plays nice with C. It wouldn’t be where it is today if it didn’t.

In particular FFI is required in order to interact with operating system APIs, and to integrate with large pre-existing libraries. So, in a sense the pure Rust application is actually pretty niche. It would have to be built for a system whose kernel contains no C code. I don’t see many of those systems around these days.

4

u/AWonderingWizard Dec 10 '25

Thanks a lot for taking the time to clarify that for me. I'll definitely be adding Rust to my language repertoire then.

1

u/ParserXML Dec 10 '25

Considering that writing FFI code is obviously essential for the kernel, which features from Rust would you consider to be more beneficial in terms of stability/predictability?

Not having many of the C/C++ oddities (a product of their time) comes to mind.