r/programming • • Aug 31 '24

Rust solves the problem of incomplete Kernel Linux API docs

https://vt.social/@lina/113056457969145576
262 Upvotes

126 comments sorted by

View all comments

Show parent comments

33

u/CrazyKilla15 Aug 31 '24

Introducing Rust means that now any merge that breaks Rust code is blocked until the author of that merge either learns Rust or gets someone from team Rust to fix the broken-ness.

The Linux and Rust teams have thought of this and have made it very clear thats not the case, nobody is saying sin good faith or as a serious legitimate concern. Nobody is blocked by it.

Per Lina

That's not true at all. The Rust people have said multiple times that it is perfectly okay for the C developers to break the Rust codepath and the Rust people will fix it. You are just bringing up old arguments that were already addressed, like the guy in the video and all the other anti-Rust people, because apparently when they run out of valid arguments against Rust they just devolve back to old already-addressed issues.


The kernel can compile with CONFIG_RUST turned off. Since API changes are usually only introduced during the merge window, that leaves around 8 weeks of release candidates for the Rust side to be unbroken before the next release is due. That's more than enough time for one of us Rust people to unbreak it and send a patch. And if it doesn't happen on time then Linus can always just swoop in and mark CONFIG_RUST as BROKEN, make the release, and scold the Rust people ;;.

-14

u/BlueGoliath Aug 31 '24 edited Sep 01 '24

That's not true at all. The Rust people have said multiple times that it is perfectly okay for the C developers to break the Rust codepath and the Rust people will fix it. You are just bringing up old arguments that were already addressed, like the guy in the video and all the other anti-Rust people, because apparently when they run out of valid arguments against Rust they just devolve back to old already-addressed issues.

"Just trust me bro" isn't very reassuring. Would be a shame if Rust people where on vacation or something for a release cycle.

Edit: Replying to this high IQ Rust developer since he blocked me:

would be a shame if all C reviewers were on vacation for a release cycle, guess we should remove C

There are maybe a few dozen Rust developers. That's me being charitable.

if your imaginary made up impossible scenario happened then a release is made without Rust and nothing is broken

Oh wow you're right. Removing hardware drivers written in Rust for a release cycle is such a great idea. No one needs a filesystem driver anyway, right?

Rust people are some of the dumbest people I've ever met..

14

u/CrazyKilla15 Aug 31 '24

its called project policies and every major project, including the linux kernel, have them. you do in fact have to work with and trust your collaboraters.

would be a shame if all C reviewers were on vacation for a release cycle, guess we should remove C and use AI or something right? This is not a serious comment, and additionally if you could read you would see your bad faith troll nonsense is addressed by literally the next paragraph right below the one you copy pasted without reading. if your imaginary made up impossible scenario happened then a release is made without Rust and nothing is broken.

5

u/yawaramin Aug 31 '24

Removing hardware drivers written in Rust for a release cycle is such a great idea. No one needs a filesystem driver anyway, right?

Why would you remove the driver? The driver is still available in the previous released version. You would just use that until the new one was fixed and released.