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

55

u/-Y0- Aug 29 '24

There is that, but not when you start your rant the "The religion of Rust".

-20

u/dnpetrov Aug 29 '24

Am I missing something? Where did I start that kind of rant? Because I didn't.

I did that kind of work (adopting a new technology in a very conservative environment - think hardware development). I understand how it goes. It will always be YOUR job to make things work together. Not the job of some "territorial boomers", who are busy people doing their own work and totally not concerned with your language of the future, however good it is. If Rust for Linux kernel maintainers fail to understand that and see it as a "non-technical nonsense", then they are terribly wrong. Guys just totally failed to hear it when it was put in a rather respectful and technical way. It is sad that such discussions regarding Rust way too often end like that.

30

u/_zenith Aug 29 '24

No, they're referring to the dev in the video, who acted seemingly maliciously to try to sink the project

18

u/Guvante Aug 29 '24

The referenced video has someone explicitly say

  • Even if you merge this bridge the C code can be refactored to break it

  • If the bridge breaks because we refactored you are going to have to fix the bridge without undoing the refactor

  • Blocking the refactor because someone important has a dependency on the Rust version is unacceptable

The last one was when I stopped watching. "No one important can use this period" is the epitome of malicious compliance.

It also goes against the Linux ethos of not breaking others code.

-7

u/dnpetrov Aug 29 '24

Yes, but it is not "malicious compliance". It's a reality: people working on a project care much more about their job being done, not about someone else's technology adoption. If the bridge is brittle and doesn't handle changes in C code well, then the bridge is a problem. People responsible for the bridge should make it work. And, obviously, these are not the people who write C code. This simply would not work in practice, regardless of what a particular person thinks of Rust. Such issues are inevitable if you have a language with stronger safety guarantees (you can't be both safe and 100% compatible with unsafe).

15

u/matthieum [he/him] Aug 29 '24

If the bridge is brittle and doesn't handle changes in C code well, then the bridge is a problem.

No, no it's not.

If a refactor of the C code changes the API -- either explicitly, or implicitly -- then the changes must naturally be propagated to all users of the API. The bridge, and the drivers beyond the bridge, are just such clients, like any other.

The clients are not a problem, they're the vital reason for the API to exist.

3

u/Guvante Aug 29 '24

As long as Rust isn't in the branch you have a point. The person implied that Rust couldn't enter the branch because of this.

Except that is non-sensical you don't block things because they might hurt refractors. That is part of the job of refractors fixing what you broke.

You could maybe make an argument that Rust style APIs are hard to make and so add friction to designing C APIs but I think that needs some evidence.

1

u/dnpetrov Aug 29 '24

And how would you expect it to work in reality? People who code in C are not exactly going to learn Rust and/or fix Rust code.

3

u/Guvante Aug 29 '24

I mean you can literally say that about any change.

The answer is always

  • Fix it yourself

  • Ask for help fixing it

1

u/sunshowers6 nextest · rust Aug 29 '24

I understand this, but I think it's worth trying to be more collaborative. "How can we make this happen?", not "this can't happen".

1

u/dnpetrov Aug 29 '24

Finally. Yes, sure that guy bursted out in a rather unprofessional way, which he probably shouldn't do. 

However, "territorial boomers", "scared shitless", etc doesn't sound professional or collaborative, either. 

1

u/sunshowers6 nextest · rust Aug 29 '24

I agree that that language is uncalled for. And I also agree that the standard for a new language to be integrated into a project as large as Linux should be quite high. But the current state of the effort is often not a result of engineering rigor.

I was part of the pioneer Rust team at another very large organization that eventually decided to make Rust first class. That was a major uphill climb, but also one folks generally approached with curiosity and empathy. Whenever we found mismatches between C++ and Rust, folks were generally interested in helping out even if they were personally skeptical of Rust.

1

u/MrRandom04 Aug 30 '24

Well, from my understanding the Rust bridge code is not actually adding any more safety guarantees to the result compared to the C code.

If the Rust code were to add any special guarantees not implied or required by the C code, then it would be a rather poor bridge because that isn't what bridge code is supposed to do. Rather, the Rust code just makes the implicit semantics of the function be embedded into the function call. If these semantics are changed in the C code, then every caller of that code which previously worked - whether it be written in C, Rust, or even Javascript - would be broken and need to be updated.

From what I am understanding, the Rust code simply encodes these semantics into the function and thus we may get a compiler error rather than a potential bug if some of the complex semantics are subtly changed.

35

u/kaoD Aug 29 '24

Am I missing something? Where did I start that kind of rant? Because I didn't.

They're talking about the linked video, which is why the Rust community sees this as "territorial boomers".

11

u/-Y0- Aug 29 '24 edited Aug 29 '24

You're missing the rant by Linux maintainer. https://m.youtube.com/watch?t=1569&v=WiPp9YEBV0Q

A person can't start an honest discussion by implicitly saying you're an irrational language zealot, and your language is second class citizen.

5

u/JoeyJoeJoeTheIII Aug 29 '24

Did you watch the video?

Guy resigned citing nontechnical nonsense and linked a video of a kernel maintainer angrily ranting at him.

That’s where the religion stuff comes from.