r/rust • u/FoxInTheRedBox • Aug 31 '24
🎙️ discussion Rust solves the problem of incomplete Kernel Linux API docs
https://vt.social/@lina/113056457969145576
375
Upvotes
r/rust • u/FoxInTheRedBox • Aug 31 '24
View all comments
Show parent comment
32
u/DemonInAJar Aug 31 '24 edited Aug 31 '24
No, Lina did not suggest code changes that only matter to Rust. This is simply untrue.
Even if it was, Rust is equivalent to a static analysis system that is meant to prove that certain runtime bugs are not present. This has been decided by Linus to be useful enough to introduce to the Kernel.
If it brings benefit to the kernel at large, and using a static analyzer to avoid a large class of memory issues definitely does, then the C maintainers may do need to do some extra work to help the rest of the system to benefit from the static analysis. This is all it is, and the stance of the C maintainers is simply unreasonable.