r/rust • • 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
586 Upvotes

374 comments sorted by

View all comments

Show parent comments

281

u/CommandSpaceOption Aug 29 '24 edited Aug 29 '24

I’m not saying the person asking the question there is malicious.

But if I wanted to sink the Rust for Linux project, I would do exactly he is doing, in exactly the manner he’s doing it.

  1. Firstly don’t share exactly what the C interface is supposed to do. When someone proposes a Rust interface, just say it is wrong without suggesting how it can be fixed.

  2. Explicitly say that even if the Rust interface is merged, it will be a second class citizen that won’t be updated when the C interface is refactored. Not even an attempt at collaborating like “let’s work on keeping the Rust interface in sync with the C interface”. Be as hostile as possible, while also making it clear that anyone investing in a Rust driver is making a bad technical decision. That way no sane person would write a Rust driver when they know they’re signing up for constant breakage.

  3. Next, show up to talks the team is giving and completely derail the discussion with random bikeshedding. Insult them with extremely charged language that has no place in a professional setting - “you guys are trying to convert people to your religion!” Create a toxic work environment. This has the bonus effect of burning out the people working on the project, slowing any momentum Rust for Linux may have built up (You are here!).

  4. Now that no third party is writing Rust drivers and the Rust for Linux maintainers are demoralised and burned out, go in for the kill - “hey guys, I notice this Rust code isn’t being used at all. Unless someone merges a driver soon I’m going to remove it all”.

Of course I’m not saying they’re doing this with this intent. I’m not a mind reader. All I’m saying is, this is what someone trying their absolute best to sabotage Rust for Linux would do.

This is perfect because there is plausible deniability at every step of the way. My tech lead (Linus) decided to introduce Rust. Cool, I’ll just treat everyone involved to /r/MaliciousCompliance. And then after I succeed I’ll say I was right all along - C is the one true language of the Linux kernel.

The first 3 steps have succeeded. Step 4 is inevitable unless Linus realises what is being done and puts a stop to it.

64

u/jl2352 Aug 29 '24

I think it’s more people just stuck in their ways and being close minded.

Another question on the video said the return value is more like a lifetime, and went on a long ramble of things one needs to keep in mind or check when calling this function. It’s the mentality of ’just be a better programmer and don’t write bugs.’

I have seen this before in my professional life, having worked with people who will defend high complexity in this manner. As though it is fine, and it’s a you problem. They take exposing the high complexity as a negative.

All this Rust chap has done in the video is commenting that these functions aren’t as simple as they appear, and in Rust that’s an issue. You must expose that through the type system and that becomes noisy in Rust. They take it as a personal attack on their C domain.

51

u/CommandSpaceOption Aug 29 '24

just stuck in their ways and being close minded.

You’re almost certainly right.

I’m only saying the consequences of such behaviour are identical to active malice.

19

u/CrazyKilla15 Aug 29 '24

Because they are. The consequences are identical to active malice because they are active malice. The consequences are not unknown or unpredictable, they know this, thats why its done. They do know better. "Stuck in their ways and closed minded" isnt an excuse for being malicious, its a description of one way malice manifests.

They choose to do these things and act this way, nobody is forcing them, they didnt magically lose the ability to learn new things, to even listen to technical arguments, or what an "example" is, they choose to. Choose to close their minds, choose to reject anything that disagrees with them, choose to ignore evidence, choose to derail a talk and abuse the presenters. Those many choices are malicious. That behavior is a choice that is made of their own free will. If ones choices and the well-known consequences that follow cant be called malice, what can be? Do they need a cartoon villain mustache and a neon sign saying "I am being malicious right now" for it to count?

And its a choice so many others, similarly experienced, in similar fields, even similar ages, other kernel developers, do not make, and it only makes those who do look so much worse, so they drive them away, drive them out of projects, to maintain their positions and power. Nobody should have to subject themselves to this, and most don't, they leave and work on better managed projects.

The myth of the "Brilliant Jerk", someone who is supposedly so brilliant, so genius, that it makes up for their behavior, for everyone else they drive away combined, for how toxic it is to work with them, is just that, a myth. Nobody is that "brilliant", that "genius", worth that much more than so many others.

5

u/ajmmertens Aug 29 '24

I think it’s more people just stuck in their ways and being close minded.

I don't think that's entirely fair if you listen to the points raised throughout the entire video (not just the obnoxious guy at the shared timestamp).

There are legit concerns around mapping API semantics to the Rust type system, maintaining those mappings when semantics change, and that mappings aren't complete and/or correct.

I've had some experience with binding languages to existing APIs, and these are exactly the kinds of issues & questions you'd expect to come up.

22

u/JoeyJoeJoeTheIII Aug 29 '24

The guy ranting is the problem here.

Other people went to a technical talk and had a technical discussion. That’s fine. That’s the whole point.

He didn’t bring up any valid arguments, he accused them being religious zealots and other insane stuff then tried to play off the type stuff as “we don’t know!!” And then finished by nearly having a crying fit over the idea he might have to learn rust.

11

u/jl2352 Aug 29 '24

I listened to the whole video earlier. You are right, but it’s only a small amount of the discussion and one of the few really valid bits.

Overall there was a strong knee-jerk hostility to any Rust.

4

u/ajmmertens Aug 29 '24

For sure, though to be fair the second Rust speaker didn't help much to diffuse that sentiment. If someone was telling me to refactor my code because the semantics don't map well to their binding, my reaction to that would also not be positive.

There's definitely animosity towards Rust, but I'm also sensing a "if it can't be mapped to Rust you're doing it wrong", which is further emphasized in the blog:

I am no visionary but if Linux doesn't internalize this, I'm afraid some other kernel will do to it what it did to Unix.

In other words, agree with me or you'll be obsolete. I'm sure this plays well in Rust circles, but it's understandable that this has some kernel devs a bit piqued.

18

u/sunshowers6 nextest · rust Aug 29 '24

If it can't be mapped to Rust it isn't definitive proof that you're doing it wrong, but it is a moderately strong signal that your semantics are unclear and you should update your beliefs in that direction.

→ More replies (18)

3

u/jl2352 Aug 29 '24

I think he is right with that quote. Google, Amazon, Microsoft, and many others, all care more about bugs and stability than their favourite programming language. They have the money to invest in OS development for years.

They could even fork Linux and just start plowing away with Rust.

2

u/ajmmertens Aug 29 '24

It doesn't really matter whether he's right or not (personally I think it'll take a whole lot more to displace Linux).

If you're a kernel dev safety already is one of the (if not the) main concerns, and all processes and coding guidelines are built around that. Considering how successful (and stable) the Linux kernel is, kernel devs are probably feeling like they're doing a pretty decent job (and justifiably so).

For a community to then come along and advocate for an entirely different (and let's face it, unproven for this kind of project) approach to safety is obviously going to invite lots of scrutiny.

If that community then also considers their approach to be the only correct way to do safety, well what do you expect is going to happen.

7

u/JoeyJoeJoeTheIII Aug 29 '24

I’m not sure that’s a fair claim given how Linux has approached security in the past.

→ More replies (1)

2

u/JoeyJoeJoeTheIII Aug 29 '24

I think that’s absolutely a valid long term issue.

The security flaws of C aren’t going to get better over time. Rust will get more mature, and other languages and projects will pop up.

We’re talking about a long time scale though. Like maybe in 5 years a project is started, in a decade it’s mature enough to be an interesting toy, and maybe 5–10 years beyond that it’s actually looked on as a real alternative.

→ More replies (3)
→ More replies (3)

5

u/slamb moonfire-nvr Aug 29 '24

All this Rust chap has done in the video is commenting that these functions aren’t as simple as they appear, and in Rust that’s an issue.

It's a choice to make it an issue (as in, a "point of discussion") by putting it into the type system and ensuring it's noticed. I think it's a good choice, a much better one than "pretend everyone knows how to use this crappy API".

1

u/qeadwrsf Aug 30 '24

I feel like most stuff on list doesn't have to mean someone is like trying to sabotage.

Just old guy don't want to play ball with new guy that wants to change things.

The "toxicity" I think can be explained by leader is a old scandinavian nerd.

→ More replies (3)

89

u/robin-m Aug 29 '24

Step 4 is inevitable unless Linus realises what is being done

Linus did noticed the issue. I cannot find back the link, but he recently said that he was frustrated that the Rust for Linux project was not moving faster because of churn in the Rust for Linux infrastructure, but also because C dev where actively acting in bad faith.

and puts a stop to it

AFAIK not yet unfortunately. But I hope that this very incident will make thing move.

35

u/CommandSpaceOption Aug 29 '24

Yeah Linus watching that video and taking action is the only hope.

→ More replies (1)

20

u/protestor Aug 29 '24

Explicitly say that even if the Rust interface is merged, it will be a second class citizen that won’t be updated when the C interface is refactored.

Note that in the real world, if the interface is actually used it will be kept up to date. Linux has too many corporate stakeholders and Google alone has the manpower for this.

29

u/CommandSpaceOption Aug 29 '24

If the maintainer merges in code that deliberately breaks Rust code there isn’t much anyone can do. He is explicitly saying that’s what he plans to do.

A normal person would say “hey, let’s work together to minimise breakage, but you’ll have to do most of the work”. A saboteur would say “this is definitely going to break, be prepared”.

Again, not calling them saboteurs or implying they’re malicious. I’m only saying their actions are indistinguishable from malice.

3

u/ajmmertens Aug 29 '24

You are in fact implying that they're malicious, and I don't think that's called for.

There are only two logical possibilities:

  • Restrict the C source so it can't break the downstream Rust interface

  • Change the downstream Rust interface when the C source breaks it

It is very fair to call out that #1 is not a viable path for kernel development in general.

13

u/tdslll Aug 29 '24

Yes, but (a) none of the Rust for Linux devs were suggesting #1, and (b) the speaker was refusing to help fix the Rust interfaces that he breaks.

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

2

u/Booty_Bumping Aug 30 '24

This definitely applies to Android Binder, but a filesystem or GPU driver developer is in a much more precarious position if they have to make use of Rust bindings that don't have any other users. Bcachefs has a ton of amateur users who have gone out of their way to buy expensive hardware for automated testing, but corporate interest has backed out of the project and it's unclear when early adopters will come. That being said, if it does get even a single large corporate user then they will very much be committed, just by nature of it being a filesystem.

2

u/Boner-b-gone Sep 05 '24

Ted T'so is acting in bad faith and is desperately trying to defend his legacy in Linux. He realizes he won't be good at Rust, and is afraid of being sidelined in the community. His attitude sucks, and people like him are a huge reason why open source can suck and isn't adopted more widely.

1

u/orbatos Sep 02 '24

The churn is becoming caused by the Rust developers having no problems running over other people, including eachother. It's a shame this needed to happen but it did, of they can't follow basic procedures they need to take a break.

2

u/CommandSpaceOption Sep 02 '24

Which basic procedure did they not follow?

→ More replies (1)