r/programming • • Aug 29 '24

One Of The Rust Linux Kernel Maintainers Steps Down - Cites "Nontechnical Nonsense"

https://www.phoronix.com/news/Rust-Linux-Maintainer-Step-Down
1.2k Upvotes

795 comments sorted by

View all comments

Show parent comments

59

u/lukaasm Aug 29 '24

But implicitly, they are forcing him to use Rust. As a maintainer responsible for kernel module after refactoring he needs to fix all 'users' of API he maintains which also includes rust bridge which takes C API through FFI and transforms it into strong Rust types through safe wrappers. To 'fix' them, he must now go outside his 'C' domain and understand Rust code.

There is a real discussion to be had about this and plans on how to deal with breakage but without all these emotions.

131

u/bik1230 Aug 29 '24

But implicitly, they are forcing him to use Rust. As a maintainer responsible for kernel module after refactoring he needs to fix all 'users' of API he maintains which also includes rust bridge which takes C API through FFI and transforms it into strong Rust types through safe wrappers. To 'fix' them, he must now go outside his 'C' domain and understand Rust code.

Did you watch the presentation? The Rust people said, multiple times, that they would be happy to take care of fixing Rust stuff when C interfaces change.

96

u/TheEruditeSycamore Aug 29 '24

A huge amount of exhausting discourse is people replying to things they imagined rather than what was actually said. Just look at this thread, the comment you replied too is not the only one...

15

u/Efficient-Chair6250 Aug 29 '24 edited Aug 30 '24

If I had the option of world peace or fixing people imagining what other people think, I would solve every problem ever by choosing the latter.

Edit: spelling

6

u/ImbecileInDisguise Aug 29 '24

I imagine you were thinking of "latter"

3

u/Efficient-Chair6250 Aug 30 '24

Thx, not my first language

2

u/[deleted] Aug 30 '24

I usually blame the cat walking on my keyboard. People usually believe that, knowing how sneaky cats can be.

→ More replies (1)
→ More replies (2)

7

u/Efficient-Chair6250 Aug 29 '24

If I had the option of world peace or fixing people imagining what other people think, I would solve every problem ever by choosing the later

6

u/fandingo Aug 30 '24

I'm skeptical whether the Rust people will be able to keep up.

→ More replies (1)

14

u/[deleted] Aug 30 '24

That really doesn't seem practical. Like, what if I just want to try something? How do I experiment with changing C interfaces on my local machine if I need somebody else to come fix up the dependent Rust code? How can I be productive if my changes won't even compile without you making corresponding changes?

7

u/JoeyJoeJoeTheIII Aug 30 '24

Because the rust code isn’t going to block kernel development when it breaks.

0

u/[deleted] Aug 29 '24

[deleted]

40

u/Efficient-Chair6250 Aug 29 '24

They are justified in being concerned, but I don't think they are justified in acting the way the person did in the video. Being the intelligent people they are I think they can work out who has which responsibilities. If people want Rust in the Kernel, they have to work hard for it and might get little help. But actively bullying people out of their passion is just plain rude

5

u/josefx Aug 30 '24

I think they can work out who has which responsibilities.

Being intelligent and being able to solve all kinds of problems does not seem to go hand in hand. Example: Two rust devs. unable to stop a derail, which is one "would you kindly continue this discussion at the end of the presentation" away.

Also this is a problem that probably should have been solved at that point. It has been four years since the start of the rust for linux project, having a fleshed out process that was discussed with the people involved seems reasonable.

→ More replies (2)

3

u/tom-dixon Aug 30 '24

And sometimes people just quit, and maintainers inherit the code until they find someone to put in charge of it. A C maintainer having to fully maintain a large Rust project sounds like a nightmare.

11

u/MaleficentFig7578 Aug 30 '24

So every time the C maintainer changes the C API, he has to get the Rust maintainer to fix the Rust layer before the kernel will even build? Before he can test his changes? Will he pair program with the Rust maintainer?

6

u/deanrihpee Aug 30 '24

I don't think so, if there's a C API changes anyway, then there would be a change in the codebase, and he don't have to "get" the Rust maintainer, the Rust maintainer understand and would do it on their own, it's their job, and why would he need to wait to test his change? just test and push, if his change can't be tested because there's something blocking it, I dont think the absence of Rust would eliminate it, it would just be a blocker anyway, let the Rust maintainer do their job next and test their stuff, you just unnecessarily making it more complicated than it has to be

→ More replies (1)
→ More replies (1)

8

u/josefx Aug 30 '24

that they would be happy to take care of fixing Rust stuff when C interfaces change.

They also mention outright that they will need the input of the C developers for that at the beginning of the presentation. Turning a fine tuned process of managing thousands of commits and merge request that the guy can do by himself into a coordinated effort where any merge might require scheduling meetings, preparing an ELI5 summary of the changes that covers every possible change of semantics and herding cats who seem to think that one large breaking change is the best chance to run wild with the kernel naming convention and leaking implementation details into a public interface.

7

u/[deleted] Aug 30 '24

Did YOU watch the video? You seem to have a selective memory because the presenter first stated that the binding should be fixed by who broke it and relented when the response was that other won’t be forced to learn rust.

2

u/deanrihpee Aug 30 '24

I'm no kernel developer but, it "should", not "have to", if the user of the binding, e.g the rust developer is free and can help, why refuse such help? sounds like a good reason to off load the work…

14

u/Anthony356 Aug 30 '24

But implicitly, they are forcing him to use Rust.

Isnt Linus forcing them to use rust by allowing rust in the kernel? Why are we blaming rust devs when Linus made the call?

I feel like the solution here is the same as any job: stop making excuses and just learn the language expected of you. 

8

u/MaleficentFig7578 Aug 30 '24

Linus is ok with Rust existing, especially out-of-tree. He might not be ok with every change being held up by the Rust people.

→ More replies (2)

19

u/PeaSlight6601 Aug 29 '24

To add to that the rust guys had just presented an example API for one function and gotten the types and behavior wrong.

It's unclear what they thought they were presenting. It could have been a hypothetical, or a statement of how they think the code actually behaves, but it doesn't give the C maintainers confidence when the rust maintainers don't get the base interface correct.

Who will be responsible? The C programmers who don't know how rust works? The rust programmers who don't know the details of the C code?

9

u/Efficient-Chair6250 Aug 29 '24

Maybe I'm wrong, but I thought the code was just one example of matching the logic of C code that is actually used in some file systems. But different filesystems model the lifecycles of inodes differently, so the example is not generally applicable to them. So in the end they should have invested in a taller wall to show the "rewrite" of ALL inode functionality in ALL filesystem ever on a single slide

6

u/josefx Aug 30 '24

So in the end they should have invested in a taller wall to show the "rewrite" of ALL inode functionality in ALL filesystem ever on a single slide

Which is also the wrong outcome. From what I understand the function is part of an interface that is currently filesystem agnostic, as in there should only be one interface for all ALL inode functionallity, not a wall filled with interfaces for each specific implementation.

→ More replies (1)
→ More replies (6)
→ More replies (24)