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

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.

-1

u/ajmmertens Aug 29 '24

Right, this is why it's being referred to as a religion, and why the Rust community is having trouble convincing C/C++ devs :)

If a chunk of code does exactly what it needs to do but can't be verified statically, that code is not wrong, it just means the static analyzer is incomplete/imperfect.

Limiting yourself to a subset of what the hardware can do at runtime so you can use a strict static analyzer (e.g. rustc) is fine, but it's also obvious that that's not going to be for everyone.

16

u/sunshowers6 nextest · rust Aug 29 '24

Take it from Asahi Lina, who says:

Rust works. I'm pretty sure I'm the only person ever to single handedly write a complex GPU kernel driver that has never had a memory safety kernel panic bug (itself) in production, running on thousands of users' systems for 1.5 years now.

Because I wrote it in Rust.

https://vt.social/@lina/113045456734886438

To be clear, I personally have no interest in convincing anybody who hasn't already been convinced. I've just been writing Rust full time at work for over 7 years, as part of several teams that have written software in Rust that would otherwise be practically impossible.

9

u/JoeyJoeJoeTheIII Aug 29 '24

But the guy explained why the function being talked about is so lousy and gives an argument why the rust version is cleaner and results in less chance of bugs.

How is that religious zealotry?

1

u/ajmmertens Aug 29 '24 edited Aug 29 '24

I'm not commenting on any single argument or statement. I'm calling out the general sentiment of "if it can't be expressed in Rust, it ain't good".

IMO "if it doesn't work, it ain't good".

The difference between those two sets is where things get religious, because it makes people argue that code that works is bad, and that's a tough position to defend, especially to the developers that wrote that code.

→ More replies (14)

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.

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)

1

u/[deleted] Sep 02 '24

The long-haired dude and the vaguely-british-sounding guy were obnoxious too (partly because the long-haired one can't speak for shit), getting stuck on stupid non sequiturs such as whether it should be a method or not (it's not what's being discussed), getting upset that the Rust API doesn't mirror the C API, saying that it would have to be changed if the C API changes (It would have to be changed either way whether it mirrors the C API or not and "being able to tell what C function this Rust function calls" is just a bullshit argument because it's irrelevant, all you need to know is what the function does, what inputs it expects and how to handle it's output which is what rust's good at and why those C APIs suck.)
Also they got stuck on this one example and didn't let the rust guys show their presentation choosing instead to waste everyone's time on pointless bikeshedding. Nice technical conversation they got there

1

u/Boner-b-gone Sep 05 '24

The issue is that C isn't a memory-safe language, and Rust is.

The old fogies don't want to learn a new language, even when it's objectively better.

They'd rather keep slapping patches on the leaky old ship rather than help build a newer and better ship. That's literally all his API argument boils down to.

1

u/ajmmertens Sep 05 '24

This attitude is a big reason why these discussions are so painful.

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.

1

u/orbatos Sep 02 '24

That is not what is happening here. Kernel Devs and Linus are trying hard to keep it civil while people like this can't be bothered to work with everyone else. Rust isn't special here, they need to integrate and they just don't feel like it.

2

u/jl2352 Sep 02 '24

I’ve seen the video. It’s pretty clear which side is acting childish and unprofessional.

1

u/orbatos Nov 30 '24

It certainly is