r/linux • • Aug 29 '24

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

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

794 comments sorted by

744

u/small_kimono Aug 29 '24 edited Aug 29 '24

I've watched the whole video from the conference talk Wedson and Kent gave, and a few more from this conference, and my POV is this -- yes, the Linux kernel devs come off looking absolutely horrible. It looks like they engaged in a live bikeshedding of the presenters, without a care in the world about how they were trying to give a 30 minute presentation, and that one slide was about making point, not about how this would be the final interface.

Seriously, it's jarring to watch.

Saying all this, this talk followed the same conversational style of all the talks at that conference. Kent actually gives another talk at that conference where he seems to invite that kind of participation.

However, I really don't think that makes up for the way they treated Wedson. It was so obviously disrespectful, and in person, not via LKML, so I don't blame him for resigning. Having seen this, and read some of the comments re: Rust for Linux, the Linux kernel seems like an especially toxic work environment, filled with engineers who never grew up enough to express themselves in a professional way.

Just an absolute shit show.

412

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.

29

u/sockpuppetzero Aug 29 '24

This right here. I have seen so many variations on this theme play out over and over again in tech over the years, it's a major reason part of me really does not want to work in tech anymore.

61

u/simon_o Aug 29 '24

Looks like they are doing exactly that elsewhere already: https://vt.social/@lina/113045455229442533

48

u/CommandSpaceOption Aug 29 '24

Linus needs to listen. Only he can overrule Tso’o.

→ More replies (28)

17

u/[deleted] Aug 29 '24

Linux kernel devs doing what linux kernel devs do. Berating and belittling.

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

49

u/throwaway490215 Aug 29 '24

That is painting it a little too one sided.

Not even an attempt at collaborating like “let’s work on keeping the Rust interface in sync with the C interface”

This is the worst kind of extremely complicated and time consuming process. Your average REST /v2/ API maintenance is already hell. Updating secondary interfaces also falls under "nontechnical nonsense" for most devs. Especially if you're not using half of them.

Having said that, I strongly agree some people are being childishly antagonistic instead of looking for a process that everybody can live with.

I hope they eventually do bite the bullet because advances in language design needs to reach the kernel for everybody's benefit.

108

u/CommandSpaceOption Aug 29 '24

No one is saying Rust for Linux isn’t complex or that it doesn’t introduce additional complexity.

The issue is that the current maintainers are treating it as a “you” problem rather than something to collaborate on. They know that if they threaten constant breakage no one will invest in Rust drivers. So why wouldn’t they try to give some kind of certainty or say something like “we’ll keep you in the loop on any C interface changes, but we need a commitment that you’ll update the Rust interface and Rust drivers, preferably with an SLA”. Thats how you collaborate if you want to find a win-win.

I hope they bite the bullet

What they’re doing is the absolute best way to burn the maintainers out and make the project fail. I can’t believe anyone looking at this fiasco thinks otherwise.

→ More replies (29)
→ More replies (51)

133

u/radiant_gengar Aug 29 '24

This video is going in my permanent bookmarks, as a masterclass of how not to treat people; hopefully everytime I start to get full of myself I'll just watch it to remind myself how I may be coming off.

While I get the pushback, this talk could've gone very differently; I would've loved to hear technical critiques on the subject.

The critiques were strange; I just imagined a PR where every comment is nit: i dont like this lol and nit: i dont care you did work we're never merging it, and if we merge it it'll be garbage you're doing this for nothing lmao. It's weird for a discussion on naming to come up when the audience doesn't even want to use the interface from Rust. It's like the perfect example of a moving goalpost strawman argument. When naming discussion stops, another strawman pops up, further than the last. And over and over for 30 minutes.

And all he asked was for some discussion on what the fs interface should look like by people who have already written them and who use them, so a completely separate team (read: not you) can get some level of parity with an fs api.

15

u/stryakr Aug 29 '24

I've worked with engineers like the very loud individual decrying the merge notion of being tangentially being aware of a rust dependencies, to which I both understand their concern but don't understand their approach.

Beyond the bike shedding they're offering NOTHING constructive to the conversation and I suspect, much like those that I've worked with, there is a personality component to which being right can be more important than being effective.

→ More replies (7)

55

u/Elendol Aug 29 '24

Oh my, I just watched the video. This is horrible. Definitely the talk didn’t suit the audience but instead of understanding what the presenters wanted to discuss with the community they just focused on some weird details in a very impolite and disrespectful way. Also I felt that this C function was a good example for wrapping C code with an API using a type system, like with Rust.

→ More replies (9)

34

u/pusillanimouslist Aug 29 '24

The whole thing is shocking. My literal toddler behaves better. If a subordinate at work acted like this I’d begin the paperwork to fire them. 

8

u/mooky1977 Aug 29 '24

Holy crap, that video was utterly cringe-inducing.

272

u/crusoe Aug 29 '24

C/C++ devs seem weirdly afraid of Rust. The pushback is crazy and kneejerk.

They also gloss over all the issues of C/C++ when trying to claim it can be just as safe....

215

u/nukem996 Aug 29 '24

Kernel devs are very focused on stability and having stable processes. They do not like change and would much rather something bake for awhile before accepting it, some things they'll never accept. The core argument here seems to be that Rust wants to implement data types for kernel constructs so the type checker can validate core kernel components like inodes.

The argument isn't against that idea itself but that kernel maintainers, who do not want to learn Rust, do not want to be responsible for it. So if there is an inode Rust type and the C backend changes kernel devs don't want to update it to because they don't know how. They also do not want to freeze the C code because it will hold back all existing filesystems.

As a kernel dev this type of argument is common during development. There is resistance to change and it takes alot of buy in for even small changes to core systems. Hell at a conference I was in a talk about how to get new kernel developers and I was very quickly shot down when I suggested maybe we have an alternative to doing everything by plain text email.

Rust and C developers do seem to be grouping together and pushing eachother away. About a year ago I expressed interest in a new team at my company writing a new driver in Rust. I have kernel experience, driver experience, and have gone through the Rust tutorials but because all my kernel experience is in C and not Rust I was rejected. My current group is against using Rust at all because most developers don't want to learn it.

Good stable code requires alot of debate and I do wish kernel developers had more of an open mind to things.

→ More replies (89)

44

u/SnooCompliments7914 Aug 29 '24

On the contrary, it seems one part of the C++ community, those who love templates and meta-programming, are most likely to get Rust.

C programmers hate Rust for basically the same reason they hate C++. Programmers from other popular programming languages hate complex type systems in general, and won't consider memory-safety worth doing in the type system.

→ More replies (5)

19

u/MardiFoufs Aug 29 '24

Lol what? What does c++ have to do with this?

If anything, kernel devs are even more toxic to c++ than they are to rust. And by far.

16

u/lproven Aug 29 '24

C/C++ devs seem weirdly afraid of Rust. The pushback is crazy and kneejerk.

I find it odd, and hilarious, that you conflate C and C++ together like this.

Because 25Y ago the comment could have been "C devs seem weird afraid of C++. The pushback is crazy and kneejerk."

This is, for instance, the primary reason that GNOME exists: because KDE was out there and worked, and was the first FOSS full desktop for FOSS xNix -- but it used Qt and that meant it was written in C++.

https://www.linuxtoday.com/developer/stallman-on-qt-the-gpl-kde-and-gnome/

The Linux devs hated C++ with a passion. There was a brief effort at a GNU replacement for Qt but that would not have solved the C++ problem, so they yanked the half-done toolkit out of the GIMP and ran with that instead.

Now, apparently, C and C++ are allies against the new hated replacement for both...? :-o

8

u/tarranoth Aug 29 '24

I think it just shows how there's just very little movement in non-GC related languages for the past couple decades. C and C++ have been top dog for decades in that space (ada and fortran I guess still exist, but both seem to be dedicated to very specific areas). Look at the amount of GC languages that sprung up over the years. I wouldn't say golang/java/haskell/C#/scala/kotlin/F# have ever made a previous language obsolete, (well maybe C# did sortof overtake visual basic in a sense). But in general the existence of one language doesn't really supersede another. I think it has been long due for alternatives, and last I looked zig also looked as an interesting (though not production-ready) spin on a non-GC language.

→ More replies (1)

7

u/kapitaali_com Aug 29 '24

COSMIC is written in Rust.......

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

6

u/Veetaha Aug 29 '24 edited Aug 29 '24

Imagine being a developer not willing to learn and doubt own decisions. These guys look at the presenters like at kids trying to teach them something, when they already know everything. When in the life do you reach this point? What's the point of life if you don't improve?

47

u/[deleted] Aug 29 '24

Just finished watching the video. The linux devs yelling at the presenter were absolutely rude. Apart from their stubborness in wacking their genitals using that pile of crap that C has become (personal opinion), they clearly don't know nothing of how rust works, yet they are eager to criticize idiotic stuff like "we don't like methods like java does".

The truth here is that many of those devs are old geezers that don't want to learn nothing new and are afraid of losing their position to new devs bringing new and better stuff to their spaghetti code.

17

u/syklemil Aug 29 '24

Yeah, it's a kind of behaviour that devs generally don't appreciate: The "I don't know anything about this and I'm mad about what I'm imagined it to be". It's related to the "Linux sux because it can't do X!" type of post that's unfortunately a good way to be explained in detail just how many ways Linux can do X; to the forbidden webpage about googling on someone else's behalf; and even ESR's old "how to ask questions".

Comes off as people who should've gone to a Rust 101 talk rather than a Rust In The Kernel talk. Which might be enough of an ego check that that's the underlying problem. It's not like there weren't other talks they could go to.

But yeah, generally comes off as the kind of posturing you hear from people who are really aging out of something, but want to take it with them, rather than hand it over to the next generation. Rambling about "the Rust religion" doesn't really deserve any other response than "OK boomer".

32

u/CouteauBleu Aug 29 '24

I think the Linux dev worrying about Java-style OOP was fine. They were polite and asking for clarification about something they didn't know, and the presenter gave a simple response.

Ted behavior was ridiculously hostile, and that's worth pointing out. I wouldn't conflate the other questions with his rant.

31

u/Turalcar Aug 29 '24

Which is ironic since C as used by kernel has a lot more OOP (through explicit vtables) than idiomatic Rust.

21

u/SethDusek5 Aug 29 '24

Generally you let the presenter get through their slides before bombarding them with questions and opinions on the 2nd slide. The presenter never actually got to finish the presentation

→ More replies (1)

39

u/ITwitchToo Aug 29 '24

I think the Linux dev worrying about Java-style OOP was fine

No, that was derailment, came from a completely wrong/missing understanding of Rust and had nothing to do with the presentation.

→ More replies (2)

19

u/[deleted] Aug 29 '24

I'm not so convinced they were polite in asking that, I mean, if I don't know what a presenter is talking about, I don't interrupt them, I Google up the thing after.

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

17

u/Thegrandblergh Aug 29 '24

Watched the entire presentation and it's just another example of the Linux kernel maintainers shooting themselfs in the foot.

It's just another example of the antagonistic elitism that has plagued the "community" since its inception. I love Linux and a lot of what it stands for but this is an issue that they need to address. As people age, the amount of active maintainers who still want to code in C(++) will dwindle.

Keeping up with current technological developments is key to still be relevant. The kernel is still plagued by memory related issues due to old unsafe c code that needs to get patched (some day). They need to open up a bit to the modern day and swallow their ego.

15

u/jl2352 Aug 29 '24

Some of those criticisms were valid. Some are dumb, and put forward as fact, when they are just wrong. Some entirely miss the point.

The main issue is how hostile the audience is. It’s utterly childish, and not how you drive healthy criticism and change.

→ More replies (2)

30

u/SnooCompliments7914 Aug 29 '24

I wouldn't call that bikeshedding. The main concern raised, that is, a safe and sound Rust wrapping over a C API is usually totally unlike the original API, because the typical way a C API is designed, e.g. handles, is inherently unsafe. This is a valid concern and a general problem in Rust interop with other languages.

30

u/tanorbuf Aug 29 '24

If you redesign a C api you'll need to adapt the consumers of the interface, that's just true regardless of what kind of API we're talking about. This is already a part of developers' reality. The only difference here is that one of those consumers will happen to be a Rust binding/wrapper. Is it one extra thing? Yes. Is it more different than what you'd have in C api consumer? Also yes. But this guy wasn't just saying that. Instead it was, almost literally and not even very paraphrased, "I *will* break it, I *won't* fix it, and it'll be *your* problem alone", and that's just hostility - the exact opposite of encouraging happy collaboration.

18

u/UARTman Aug 29 '24

And the Rust guy was like "Yeah, I know, I am okay with that", and that wasn't enough!

→ More replies (10)

19

u/small_kimono Aug 29 '24 edited Aug 29 '24

I wouldn't call that bikeshedding.

Fair enough. I said, my emphasis added:

It looks like they engaged in a live bikeshedding of the presenters, without a care in the world about how they were trying to give a 30 minute presentation, and that one slide was about making point, not about how this would be the final interface.

Again, I listened to the whole presentation. As to whether some of the comments were a "bikeshed", I'll leave to the viewer.

I will say, even if some of the concerns raised are/were serious, many were obviously expressed in a hostile and defensive manner, and were off topic given the point Wedson was trying to express.

Wedson's example intended to illustrate how it is perhaps difficult to know how to use a particular C API effectively. This particular API requires knowledge which could be conveniently encoded in the Rust type system, but which seems to be undocumented.

See the API docs: https://www.kernel.org/doc/html/v6.0/filesystems/api-summary.html#c.iget_locked

And the function itself: https://github.com/torvalds/linux/blob/d5d547aa7b51467b15d9caa86b116f8c2507c72a/fs/inode.c#L1360

Each provide no help as to how to use the function correctly, and don't describe how the superblock struct or inode might be handed back in a corrupted state, or that this functions could error, and what to do then, whereas the Rust function signature does. This was a perfect example of things C makes extremely hard and Rust makes much, much easier.

I think any pushback re: Wedson would have been more effective had this API function been easily understood, because all the invariants were well defined. Here, by trying to say Wedson doesn't get some aspect of it, the kernel devs kinda admit the Rust way is better.

I also think, no matter how serious your other concerns, when someone else is giving a technical presentation, it's incumbent upon you not to change the subject to what you want the talk to be about just because someone gave you a microphone.

7

u/Jwosty Aug 29 '24

He even said at the beginning, "let's take iget_locked as an example" (to illustrate the general point of encoding assumptions as types in the Rust type system). I doubt he was even saying it was perfect, just that it was an example. A full-blown nitpicky indepth code review is good and all, but inappropriate during a presentation that is trying to make a larger overall point.

→ More replies (5)

6

u/pusillanimouslist Aug 29 '24

I’d argue that “the base C api is inherently unsafe” is a problem even without any interop on the table. 

→ More replies (5)
→ More replies (4)

7

u/xmBQWugdxjaA Aug 29 '24

It's a shame, the presenter and some of the reasonable responses were really good.

15

u/zsaleeba Aug 29 '24

Linux development and the LKML mailing list in particular have always been horribly toxic. I was interested in contributing at one point but after I took a look at that toxic mess I ran a mile.

9

u/lacexeny Aug 29 '24

what subsystem are you talking about here? I've had pretty positive experiences overall personally but i know there's a few crazy people

→ More replies (1)

17

u/theAndrewWiggins Aug 29 '24

As an admitted rust fan, these types of engineers embody everything wrong with society. I think it's incredibly important as you age and gain experience to be open to other ways of doing things.

It's fine to not be excited by hype, heck, it's probably better to lean on the side of being wary. But these guys are clearly making blind critcism (as opposed to deep, well informed criticism).

A lot of "greybeards" end up making automatic criticisms based off intuition and surface level thinking due to overfitting on their past experiences.

→ More replies (5)

7

u/Isofruit Aug 29 '24 edited Aug 29 '24

Isn't the issue brought up in there purely an organizational issue? As in, basically requiring an answer to these very much non-technical questions:

  1. Who must do the work to update the Rust bindings when somebody changes a core-system it relies on? The person doing the change, or a member of the Rust-Team?

  2. If such a change occurs, must that person wait for the work on the Rust-side to finish first and is thus blocked by progress from there?

If you're a maintainer of such core systems and you're not familiar with rust, your answers are likely 1) the rust team because I don't want to learn rust and its abstraction over my core-system which is likely going to be complex and 2) no because I don't want to have to wait and require coordination/rely on somebody else to get the work done before my own is finished.

I think the answer from Wedson was "We will take care of it, but inform us?" and how the second question would be answered has been entirely left up in the air because the audience member came in too aggro to get that organizationally sorted. I'd argue a talk isn't necessary the greatest place either way to talk about how work should be distributed in general though.

→ More replies (1)

5

u/asphias Aug 29 '24

 Saying all this, this talk followed the same conversational style of all the talks at that conference

While i get the frustration of the presenters, i'm very much confused why they failed to steer the conversation. They didn't even appear to try.

Any presentation gets derailed if you just start answering any question in as much detail as you want. If you're actively trying to get feedback(which is already challenging in a 30 minute talk) you need to cut questions short. Tell them you'd love to sit down and go over it afterward, but right now you're looking for a discussion on X. And if the next question is not about topic X, say so and move on.

And if you want to get feedback, put the exact request in large font on the slide you keep visible.


 I absolutely get the frustration of the presenters, and i understand the feeling of ''bike-shedding'' happening here. But dear god, you're the presenter. Take some control over your own talk.

 

→ More replies (1)

14

u/[deleted] Aug 29 '24

I think the C devs were raising a valid point in that the tail can't wag the dog, and the purported benefits of rust are going to be fairly limited as long as the host, which dictates the API, is written in C. The rust guys want to do refactors and clean things up, but that's just not possible given the position they're in. It'll never be possible without extensive changes to the underlying C code, which all of a sudden puts the burden on everybody else.

I think rust devs should focus on a different OS, or even just build their own. Redox seems to be coming along and is written in rust, so why not focus efforts on that?

6

u/k0ns3rv Sep 01 '24

The Rust folks were suggesting an abstraction on top of the existing C API that encodes the same semantics. I don't see where you get "want to do refactors and clean things up" from.

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

3

u/lariojaalta890 Aug 29 '24

First time I’ve ever heard the term“bikeshedding”. Thanks for teaching something today. Interesting origin also.

→ More replies (4)

3

u/jorge1209 Aug 29 '24

I disagree. I think the presentation demonstrates the problems with rust code for the kernel. About 20 minutes in the guy asking questions alludes to the real problem.

The function he is presenting a rust interface for is not a proper method of any type. A long time ago when ext was the only filesystem it was a method of a type, but various performance enhancements have been introduced which for some filesystems has entirely replaced inodes with something else.

If the rust devs want to make a rust convenience wrapper around this mess of C code, they will need to do it at a higher level where actual objects can exist. If they present themselves as writing replacements for low level functions like i_get_locked then they have to develop an entire type system for all the weird intermediates which they don't even understand themselves.

The C API is not good, and I don't think the C developers are saying it is good, but Chesterton's fence applies here. There is a reason why this C code returns an opaque pointer to "something" which may need to be handled in a multitude of different ways depending on the underlying filesystem.

15

u/Jwosty Aug 29 '24 edited Jun 26 '25

(disclaimer: I'm not a Rust nor C or Linux kernel developer, but I do use typesafe languages)

they have to develop an entire type system for all the weird intermediates which they don't even understand themselves

Forgive me if I'm misunderstanding, but isn't that the whole point? If the Rust developer can't be expected to understand these intricacies, then how can anyone using the C interface? Is it truly better to leave these kinds of assumptions in implementations, documentation (which are certainly fallible), and tribal knowledge? Isn't it a good goal to translate as many of these assumptions as possible into actual concrete typing enforced by the compiler? This is the very reason we use strong type systems. It shifts congitive load from the developer to the typechecker, freeing up more brain cycles for higher level design and clean coding, in the same way that comprehensive test suites do (you no longer have to worry as much about, "will changing this line break something?")

→ More replies (10)

9

u/Coffee_Ops Aug 29 '24

If you spend 20 minutes of someone's presentations-- in the middle of said presentation-- asking questions before you get to the "real problem", it's possible that you've become the problem.

I do not believe the presentation was intended to become a collaborative code design session. The presenter's manner and atitude made it crystal clear they were not intending to get into the weeds here and wanted to get back on track, and other audience members remarked on that fact.

The fact that numerous audience members-- including some without a mic-- were speaking / making noises over top of the presenter is wildly inappropriate, regardless of the validity of their concerns.

→ More replies (2)
→ More replies (12)
→ More replies (7)

24

u/[deleted] Aug 29 '24

There's LWN article Rust for filesystems about the conference video mentioned in other comments.

136

u/McLayan Aug 29 '24

Just looking at the comments on the phoronix article makes me never want to work on the linux kernel even though I'm a huge fan of linux systems. As soon as Linus' generation retires the project will have extreme difficulties to find people willing to work under such conditions.

125

u/gerx03 Aug 29 '24

Just looking at the comments on the phoronix article

a few pages in they are talking about who's woke and who isn't

you can't make this up

33

u/pusillanimouslist Aug 29 '24

I’m not sure when it’s safe to say that a culture war term has jumped the shark, but surely “being used in an argument among programmers about programming” is well past that point. 

20

u/KerPop42 Aug 29 '24

Oh, "because of woke" has been a joke in my circles for a while now.

"You can't even walk down to the store and buy a sandwich with cash anymore"

"because of woke"

"because of woke"

→ More replies (1)

63

u/[deleted] Aug 29 '24

Moronix comment section always makes /r/linux look like a civilized and calm place for well informed discussions in comparison. That's an achievement on its own...

7

u/Misicks0349 Aug 30 '24

im not surprised, the phoronix fourms always seem to attract a certain...crowd

→ More replies (3)

18

u/pusillanimouslist Aug 29 '24

My first thought was “I can’t believe our careers depend on these jerks”. 

7

u/darkpyro2 Aug 30 '24

Jesus christ. If my coworkers talked to me like that at work, I would leave too! What the hell? I couldnt get past the second page. The sheer amount of emotion and venom with which they were discussing him and his departure is truly awful.

7

u/the_gnarts Aug 30 '24

Just looking at the comments on the phoronix article

Luckily the intersection of Phoronix readers and Linux contributors is fairly small.

As soon as Linus' generation retires the project will have extreme difficulties to find people willing to work under such conditions.

Greg will take over and he pulls a ton of weight. Plus, he’s got a reputation of being kind and helpful so I actually expect the situation to improve wrt. the next generation of maintainers. Unless you’re involved with a vendor kernel that is. :D

8

u/Key-Lie-364 Aug 29 '24

That's the internet now, not Linux in particular.

→ More replies (3)

157

u/picastchio Aug 29 '24

https://lwn.net/Articles/985210/

A related new development: FreeBSD considers Rust in the base system.

“To Kamp's assertion that developers should just use C++, Somers said that he was far more productive in Rust and his code had fewer bugs, too. He said he had used C++ professionally for 11 years, but was more skilled in Rust after six months. The problem, he said, was C++.”

50

u/07dosa Aug 29 '24

BSD "base system" is a large collection of libraries and binaries, and does NOT include the kernel. Also, even when Rust is adopted, they won't export complicated types signature for the sake of interop. AFAICT, even Kent (one of the biggest pro-Rust in the kernel community) wasn't sure if it's a 100% good idea to make it complex.

8

u/nightblackdragon Aug 29 '24

FreeBSD "base system" is everything that is part of the FreeBSD source tree and that includes kernel.

7

u/bl4nkSl8 Aug 29 '24

They said related, they didn't say "to the kernel". Or maybe your point was something else?

→ More replies (1)

49

u/habarnam Aug 29 '24

The linux kernel is not written in C++, and despite the name, C++ and C are quite different languages.

45

u/picastchio Aug 29 '24

I know. Both FreeBSD and Linux don't allow C++ in core kernel. But both are considering Rust albeit push-back from senior maintainers.

→ More replies (4)

42

u/dferrg Aug 29 '24

Oh, no. The day has come when I agree with a microsoft guy talking about linux.

92

u/[deleted] Aug 29 '24

gatekeeping at its worst

16

u/mitchMurdra Aug 29 '24

And people pretend we're Desktop Ready tm

54

u/not_perfect_yet Aug 29 '24

I am so tired and so disappointed that we apparently can't manage conflicts like this, in general.

It's not just a linux thing.

Even if it's irrational mud fighting, that's still a clearly phrased problem and there should be a way to address it.

I don't really have any suggestion, except that that is what I see is happening and I don't think it's just the C side.

:(

34

u/acommentator Aug 29 '24

Strong leadership establishing cultural norms of respect and constructive dialogue, paired with prompt removal of group members who do not follow these cultural norms.

(Note that Linus' historical behavior would have caused him to be removed from such a group.)

→ More replies (4)

19

u/Thegrandblergh Aug 29 '24

I've been working with both sides of a very similar problem for years. We have a codebase that is written entirely in C, have a very small number of maintainers attached to it. It's hard for newer developers to get started, and implementing newer features and updates are next to impossible for anyone other than the core maintainers.

What do you do? You have to start somewhere, right? The whole "it's been like this for years and we can't change it due to dependencies" isn't valid in my opinion. The way our software (and the Linux kernel) is right now is a ticking bomb. Who is going to maintain all the broken and leaking systems when you can't? This needs to change. We made the decision to slowly update the codebase part by part in parallel to the old codebase. Yes it was a nightmare at first and demanded resources, but we knew we had no choice as it was getting harder and harder to maintain.

12

u/CreativeGPX Aug 30 '24

Further, I think the point the presentation was meant to make (if it were allowed to happen instead of this weird audience takeover) was simply that the information should live in code rather than in people's heads. The point was that their implementation would put a lot of stuff that only lives in people's heads into the type system so that it's formally, mathematically defined. To be against that isn't just against updating the system, it's against revealing how to use the system.

19

u/[deleted] Aug 29 '24

The snippet linked is kind of ridiculous. The presenter is showing they've encoded what the API *already fucking does* in a way that actually makes sense. Then gets berated for doing so.

→ More replies (7)

115

u/detronizator Aug 29 '24

I watched just 2min and I'm cringing so hard. I know _nothing_ of Kernel internals, but this is not the point.

The adversarial stance of "second class citizenship of Rust" or "we break it, you fix it" is unnecessary and, maybe, done on purpose.

I especially find using expressions that paint Rust as a "religion" purposely bike-sheddy: it's trying to create a parallel with the current state of politics.

My hot take? Mortgage driven development. Probably the average Linux kernel developer, happy to write C for the rest of their life, has the skills to not need a language like Rust to "protect them from themselves". But all they are doing is hinder process to protect their job. Their "status".

Either purge the project of those subjects, or be ready to see an ABI compatible Kernel pop out from somewhere. With enough government support, Rust can go far: memory safety is paramount and no amount of smarts can win against human error.

48

u/really_not_unreal Aug 29 '24

I especially find using expressions that paint Rust as a "religion" purposely bike-sheddy: it's trying to create a parallel with the current state of politics.

I feel like the biggest thing people miss with these sorts of comparisons is the distinction between liking something because it's popular and liking something because it's genuinely good. I've programmed in C and I've programmed in Rust, and the difference in ergonomics and efficiency is night-and-day. I'm more-than-capable of implementing correct code in C, but the code I can write in Rust is far more readable and concise, and is much more likely to be correct the first time around. I don't like rust because it's popular, I like it because it is the best tool I've found for writing correct code.

32

u/insanitybit Aug 29 '24

Probably the average Linux kernel developer, happy to write C for the rest of their life, has the skills to not need a language like Rust to "protect them from themselves".

I wish people understood how not true this is. There's this perception that Linux kernel maintainers are just really good and the reality is that they aren't, they're honestly pretty mid. The really hardcode ones, almost none of them have the skills to do other work because they've been solving extremely niche problems in a single codebase for decades.

16

u/KerPop42 Aug 29 '24

I had a boss like this. She was mid at her job, but well-established. That establishment was threatened by anyone better than her, and she didn't feel like she could grow to match the skill level of a better team, so she drove away anyone that introduced anything she wasn't already an expert in.

Notably, her team was the least developed of the project, most stuck in the past.

→ More replies (3)

25

u/[deleted] Aug 29 '24

be ready to see an ABI compatible Kernel pop out from somewhere

And that's exactly what I hope will happen. These old farts need something dethronizing them.

→ More replies (3)

74

u/qnixsynapse Aug 29 '24

Looks like some people are not very happy with Rust... Actual context is here.

This belongs in r/LinuxDrama imo.

211

u/_AutomaticJack_ Aug 29 '24

When it gets bad enough for kernel maintainers to walk away, then it has earned a post on the main sub, for better or worse. That has real implications for people in a way that 99% of r/LinuxDrama doesn't.

172

u/airodonack Aug 29 '24

Jeez. The audience member that belittles Rust by comparing it to Java then realizes that Rust is not even object oriented. Rust-hate has become more unreasonable than the hype was. At the very least, he seemed like he was amenable to change (he learned how the code worked in real time and changed his mind).

29

u/torsten_dev Aug 29 '24 edited Aug 29 '24

I think the one comparing Rust to a religion was worse.

When all it boils down to is "What do I do when I want to change the semantics in C, but don't know Rust". It's a reasonable question asked in a very unreasonable way.

His hangup with not wanting to learn Rust seemed a little sincerely held.

30

u/argh523 Aug 29 '24

And the presenter told him like three times that they don't expect anyone to fix their Rust code. They'll do it themselves, all they want is help to figure out the semantics of the new thing

28

u/CouteauBleu Aug 29 '24

Jeez. The audience member that belittles Rust by comparing it to Java then realizes that Rust is not even object oriented.

That audience member was clear they were coming from a place of not knowing anything about Rust.

I think we shouldn't make fun of people who ask naive questions. Curiosity is good and crap.

29

u/CrazyKilla15 Aug 29 '24

I think we shouldn't make fun of people who ask naive questions. Curiosity is good and crap.

Not in the middle of a completely unrelated presentation, contributing to its massive derailment.

7

u/argh523 Aug 29 '24

Yeah that guy wasn't the problem, he sort of realized his mistake and even came up with a good question (how closely do these types encode the state of the program? (to which the answer is probably "exactly", but they didn't get around to answer it))

7

u/07dosa Aug 29 '24

The audience member that belittles Rust by comparing it to Java

Weren't people laughing because it was simply too out-of-context? I don't understand what makes you think *everyone* in the room was against Rust.

9

u/airodonack Aug 29 '24

You have it a bit switched around. The laugh was because of the dig at Java.

→ More replies (4)

2

u/inevitabledeath3 Aug 29 '24

I've seen it argued both ways on if Rust is OOP or not. It has a lot of OOP like features anyway.

25

u/gmes78 Aug 29 '24

"OOP language" is a meaningless term. You can do OOP in C if you want to, just look at GLib and GTK.

14

u/ebassi Aug 29 '24

The Linux kernel itself uses OOP in its own code base.

→ More replies (1)

30

u/masklinn Aug 29 '24

What “OOP” feature does it have aside from calling struct-associated functions with .?

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

-9

u/jelly_cake Aug 29 '24

Yikes, that sub clearly bought into the culture war nonsense on the side of nonsense.

4

u/Booty_Bumping Aug 29 '24

The fact that that subreddit allows submissions from the Lunduke journal... has doomed it from the start. No Linux community can maintain sanity with that guy allowed to yell about whatever he wants.

0

u/[deleted] Aug 29 '24

[deleted]

79

u/BarePotato Aug 29 '24

He sounds like he's saying that as a C programmer, he is unable to learn Rust.

You might be surprised(or maybe not) to find out there are a fuck ton of linux kernel C devs who refuse to change or learn anything new, and instead want to be catered to instead.

35

u/worriedjacket Aug 29 '24

That type of person seems to be drawn to C as a language imo

33

u/InflateMyProstate Aug 29 '24

Totally agree. There’s this weird cultish behavior with lower level programming cultures that is hard to pinpoint. For instance, you’re only benevolent if you understand memory management and write your own allocators in C, vs. using an interpreted language with a garbage collector.

→ More replies (1)

37

u/erichkeane Aug 29 '24

I mean, this is also a group of devs that believe C++ destructors and member functions are confusing/hard to keep track of, so instead re-inplement this stuff with gcc attributes, macros and function pointers.

→ More replies (17)

27

u/MooseBoys Aug 29 '24

C devs refuse to change or learn anything new, and instead want to be catered to

It’s almost like people who have spent 50 years using the same language and spent countless hours contributing to a major project written exclusively in that language for the last 30 years are not fond of the idea of changing things up to adopt a language which is itself less than 10 years old.

→ More replies (9)

18

u/crusoe Aug 29 '24

I started my career programming in C.

I don't miss it.

→ More replies (20)

16

u/not_a_novel_account Aug 29 '24

"That audience member" is Ted Ts'o, who has learned and forgotten more about the kernel than most will ever know in the first place.

His concerns about the fragility of FFI bindings in a fast moving API space should not be taken lightly.

Also I always find it funny that /r/linux commentors know nothing about the Linux kernel community besides "lmao Torvalds middle finger meme"

20

u/NaeblisEcho Aug 29 '24

It's 2024 and we're still saying this guy is a Brilliant Jerk so he must be excused for his shitty behavior.

39

u/small_kimono Aug 29 '24

"That audience member" is Ted Ts'o, who has learned and forgotten more about the kernel than most will ever know in the first place. His concerns about the fragility of FFI bindings in a fast moving API space should not be taken lightly.

I liked your comment initially because I didn't know who the audience member was, but, re: your update, his comment is frankly ridiculous in context.

Re: the substance, you're right that he's right, but no one disagrees/disagreed with him. Listen to the presenters.

Re: his style, he came in way, way too hot.

→ More replies (3)

5

u/simon_o Aug 29 '24

His concerns about the fragility of FFI bindings in a fast moving API space should not be taken lightly.

If, after his speech he didn't steer his Tesla into a tree nursery, setting it ablaze and bought a new CyberTruck with a rolling-coal adapter "to show it to the woke Rust agenda liberuls!", I question the commitment he has to his concerns.

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

2

u/Ok_Passage_4185 Sep 01 '24

This feels like a fundamental disconnect between idealists and pragmatists trying to solve the issue that programming languages don't work the way computers work.

There's no silver bullet. And any developer is going to have to fight to get big code changes into the kernel.

3

u/[deleted] Sep 01 '24

Ah yes the Linux shitshow. I am sure this way they will attract new future maintainers with all the mailing lists, elitism, (gnu)C89 and general toxicity.

Regarding the linked argument regarding filesystems: The linux "API" is not stable anyway. If something changes, all 50 or so filesystem drivers break anyway. Those written in C are not an exception.

1

u/[deleted] Sep 02 '24

Yeah with so many people jumping onto Nix and Rust we might see the future of OS being a combination of a high level API (Nix) contacting a mid level API (Rust) contacting .c and .asm files

10

u/[deleted] Aug 29 '24

The crux of the matter seems to be here:

https://youtu.be/WiPp9YEBV0Q?t=1536

Rust and C are two very different beasts, and the whole kernel cannot be expected to revolve around not breaking the rust bindings.

I didn't watch every minute of the video, but the point made by the audience member here is valid IMO, and it's a purely technical point.

I see some comments "they are scared of Rust," or "they are threatening to break bindings to stop Rust development." Honestly that seems a very skewed view to me.

Rust has to prove itself, and those who want to see Rust in kernel modules need to be the ones who "take the pain," rather than expecting everyone else to become a convert and put Rust front and centre (at the inevitable expense of whatever they're currently focused on.)

43

u/simon_o Aug 29 '24

the whole kernel cannot be expected to revolve around not breaking the rust bindings

... which has been assured multiple times throughout the video that this won't be the case.

→ More replies (5)

4

u/ergzay Aug 29 '24

Maybe a dumb question, but is forking the entire linux kernel an option? People in general would much rather write Rust rather than C (speaking as someone who's day job is C) and it's only the "old farts" who prefer to stick with C. I think a Linux kernel fork would allow significant movement and simultaneous deprecation of a lot of the old crusty software that most people don't care about (very old drivers/very old platforms) to reduce the maintenance load.

5

u/darkpyro2 Aug 30 '24

It's definitely an option, but then you would need to put the infrastructure in place to maintain the fork. Linux has a lot of complex processes involved in its development and decision making that will be hard to replicate -- otherwise it would have been forked and competed against a long time ago.

→ More replies (1)

4

u/FunAware5871 Aug 29 '24

So many "I'm not a dev BUT" comments XD

Kernel devs have a very hard time doing what they do, and we're not talking about random lines of code, they literally could break the whole system... Why should they have to take the extra responsibility to keep the rust compatibility or to code in rust? That should be on the rust team, not on them. Of course the two teams would have to communicate and keep each other up to date with development and actually work together... But at this point it'd still not be production ready (as pointed out in the video): anything written in rust could break at any given patch, unless c development is slowed down somehow (or the rust team keeps up with every change on their own).

Don't like it? Good news, it's FOSS: write patches. Can't code? Donate to the devs. Can't? Help the community in any other way (manage messages, coordinate stuff, ask how you can help or come up with something else). Just be helpful in any way you can, no matter how small. As a side note: complaining is not helpful, especially when it amounts to "they should just do the extra work".

To be clear, I've seen modules kept out of tree for questionable compatibility reasons with almost no one complaining, and I don't get how rust support actually got in in its current state.

29

u/Senator_Chen Aug 29 '24

The expectation was that the kernel rust team would maintain the bindings (which, if you'd actually watched the linked talk, you'd know). The reality is that there's a bunch of maintainers who are actively sabotaging that effort by stonewalling patches from rust devs (https://vt.social/@lina/113045455229442533) even if they're just fixes to existing buggy C code, or stating they'll actively sabotage the bindings if they ever get merged (like Ted Ts'o saying he'll go out of his way to merge changes that'll break rust filesystem bindings, and refusing to talk to the kernel rust devs about api changes or even how the existing (undocumented and littered with side effects) filesystem code works).

→ More replies (1)

1

u/kazagistar Sep 08 '24

What if people do try to contribute code, but are kept out of the kernel to sabotage their efforts because they are part of the "rust team"? How do you "just code" around that?

2

u/FunAware5871 Sep 08 '24

I never said "just code". Besides, to write a patch isn't just to code and send it for review. It also means to work with the community, raise awareness if it gets blocked for no real reason, and try to do something about it.

I was about to also write about how forks work and how the community factors in (maybe even quoting last month's drama on freedesktop), but I don't relly see why I should skil you the leg work when you're being so obnoxious while outlining your scarse knowledge on the subject.

2

u/Key-Lie-364 Aug 29 '24 edited Aug 29 '24

On the one hand I want to learn rust and be productive in it.

On the other hand it takes years to get good enough at C to contribute to upstream development especially as a Maintainer.

So if you already maintain something in C you realize you need years of investment to get parity with rust.

Tso's point about second class citizenship is from his perspective with alot of responsibility and pressure valid. He doesn't have time to ramp up on rust to the level required to support it in parallel to the enormous amount of work ext fs development requires.

You basically need 1-2 talented and committed trusted rust people per subsystem to manage the bindings. And if that person isn't one of the core maintainers for that block how do you really verify and support the rust interface?

C and ASM are complementary and they do different jobs whereas rust requires maintenance of an interface and aims to do much the same job as C.

I think, realistically you need to build your kernel from scratch in rust or fork(); Linux and make rust the first class citizen of the fork.

Unless alot of developers and companies are willing to invest the better part of a decade in transition, I think rust will wither in upstream Linux.

Edit: rewrite the mm subsystem in rust and then provide C bindings, something like that would be the way but, the reverse of having rust bindings to a C core won't work.

Rust has to deliver something worthwhile on its own and give a well maintained interface to that thing to incentivize it's uptake.

1

u/dimiterka Oct 03 '24

Using Rust for the kernel will convert Linux to Windows

1

u/mlcoder82 Oct 11 '24

I just watched the video. C guy was almost screaming. What a shame

1

u/isaacgordon2020 Oct 31 '24

I predict no one here actually maintains Linux code in a serious way (neither do I). In fact has anyone here even contributed to a 10 million + line project? You can shit on the Linux devs as much as you want, but unless you’ve built the infrastructure the entire world runs on, you probably need to learn some humility and treat them with respect. The rust devs made some classic mistakes they should never have done:

  1. Renaming the function - if you’re not a maintainer and don’t have the blessing of one, DONT REFACTOR. I see sometimes new engineers who join my company do this but your job day 1 is to make my life easier and contribute, not rename a bunch of stuff to make it make more sense to you and less sense to me since I have it mapped in my memory anyway. They should have kept the name the same in the example.

  2. Getting the behavior exactly correct - there should be no errors in that function. Be paranoid, read tens of thousands of lines of code so you are absolutely sure. Send the patch, months in advance not the day morning etc.

Even considering this, maintaining C object model in Rust is a hard problem and a painful maintenance job, but at least you would earn more trust from the Linux crowd to do that. And they could work with you to do that, show you functions that will have minimum C changes to target first, etc but it seems like they went about this all wrong and just shot themselves in the foot and this Reddit community is also (if they are willing to take self criticism) showing itself to be unserious by how uncharitably they are treating people who are maintaining extremely complex code that runs billions of computers in the world.

1

u/gs_hello Jan 12 '25

Why can't Rust people simply fork the linux kernel and incrementally migrate? Linux distros at some point will switch if it's worthy. Gen Z....

1

u/gs_hello Jan 12 '25

Can't understand why those rust developers can't simply fork Linux kernel and do their own thing without bothering anyone else.

1

u/gcasa Sep 03 '24

What I see is an honest technical review of the proposal. I’m not sure why you guys are saying this is non-technical nonsense when it is very technical. I don’t think anyone has anything against rust here. Technical reviews and discussions are necessarily hard.

→ More replies (1)

1

u/Longjumping_Quail_40 Aug 29 '24

Wouldn’t adding anything with whichever languages require the maintainers to learn something new? The point here seems to be whether the added new things are worth.

For example, if the logic of the type-encoded components is already written informally with some exhaustive documentation, and the compiler/test takes that into account, then the new nuance wouldn’t be worth it. If it isn’t safety critical, it probably isn’t worth it either.

1

u/_Sgt-Pepper_ Aug 31 '24

Linux has become a convoluted mess...

I hope redox takes off.....

-4

u/r2vcap Aug 29 '24

I don't think the behavior of existing kernel developers is toxic or unhelpful. Due to Rust's semantics, it is really hard to match the Rust API with the existing C API. A partial solution is the excessive use of the unsafe keyword, but Rust developers dislike this approach. Therefore, I believe there is a fundamental mismatch between kernel development and Rust APIs, especially considering that the Linux kernel is one of the most important FOSS projects.

-20

u/07dosa Aug 29 '24

Lots of bad mouthing, yet no one acts up.

Write patches, especially you younglings. That's how you move Linux and FOSS. Talking won't change a shit here. People are not here to do right things - they just do what they want and need. Stop blaming others for not delivering the future you want. You deliver your future to your doorstep.

If Rust in kernel is such a great idea, it must be proven practically, instead of being talked through. Write new kernel modules. Write new filesystem. Kent Overstreet does. Roll it on fucking thousand drives for him and help him build something cool.

17

u/Senator_Chen Aug 29 '24

They are writing patches. You can't write a new filesystem in rust because Ted Ts'o is actively sabotaging efforts to create rust bindings for the filesystem APIs. For GPU drivers maintainers have blocked upstream improvements because they're coming from rust devs, and stonewalled basic patches for over a year https://vt.social/@lina/113045455229442533

44

u/throwaway490215 Aug 29 '24

Ah yes, the classic: "if you want a tram, why aren't you laying tram lines yourself?"

17

u/SkiFire13 Aug 29 '24

With the additional "you can't lay tram lines, there's no tram yet that needs them"

15

u/bence0302 Aug 29 '24

Pretty good analogy. Most people using Linux don't have knowledge or experience in kernel development, and can't do shit but pray that the kernel developers will be reasonable.

8

u/07dosa Aug 29 '24

People having no experience in kernel development strongly pushing for Rust in kernel sounds really wrong. (I mean, if you really use that as an excuse.)

pray that the kernel developers will be reasonable

They've been more than reasonable with only C. It's just that they rejected the idea that could possibly ease their own pain.

5

u/buwlerman Aug 29 '24

Introducing Rust is not mainly about easing pain for the devs. From what I can tell Linus' main motivation was to try get new blood into the project.

The technical reason is about decreasing the number of critical vulnerabilities, and there is evidence from Google that indicates that replacing C and C++ with Rust in a living codebase reduces the number of critical vulnerabilities.

Vulnerabilities are not just pain for the devs, but for the users as well.

-12

u/07dosa Aug 29 '24

Fuck that analogy, because the numbers are not aligned at all.

Laying tram takes billions of dollars and millions of man-hour, and needs legal and administrative support from the government. How many people have such capabilities?

Writing a kernel module/filesystem? It takes a few people and hundreds of man-hour to get a working prototype. A handful of dudes and tens of thousands of man-hour will get you a decent software.

8

u/throwaway490215 Aug 29 '24

ofcourse its an imperfect analogy.

but lol at taking the deep knowledge of programming & kernel & rust & filesystem/module - learned over decades - for granted and bill it at a few hundred man-hours, but in the same breath pretend getting the OK to place a couple of steel beams is suddenly billions of dollars and millions of man-hours.

I can literally go to the hardware store and start in my back yard this afternoon. As you just argued in your initial comment.

→ More replies (3)

12

u/rundevelopment Aug 29 '24

Yes, the easy task of writing kernel modules, file systems, and drivers. It's so little work and quick to do that even fresh Rustlings could do it!

Seriously, stop belittling the work RFL contributors do and have already done.

→ More replies (1)

25

u/[deleted] Aug 29 '24

This is your response under harassment of contributor? Maybe more people would contribute if they were not harassed? It seems like there is lot of gatekeeping so maybe this is what you want in the end. But if not, if you are really genuine there is time for bit of introspection about toxicity.

→ More replies (1)

5

u/Booty_Bumping Aug 30 '24

Kent Overstreet does

Kent Overstreet was one of the speakers who was rudely filibustered in a conference speech by someone in the audience who thinks Rust = Java.

1

u/07dosa Aug 30 '24

And what's wrong with saying "help him build something cool"?

3

u/Booty_Bumping Aug 30 '24

Nothing, of course. But to say talking isn't going to do anything... this is an organizational issue, it can only be solved by talking. One more automated testing system for bcachefs, Asahi Linux, Android Binder, etc. isn't going to make the difference, especially considering barely any Rust code has been written due to struggles in deciding how the two languages should be bridged.

→ More replies (1)

11

u/really_not_unreal Aug 29 '24

I'll write a patch when the kernel community gets to a state where I don't get harassed for trying to make the software better.

-6

u/07dosa Aug 29 '24

If there really was harassment, you should alarm it in LKML instead of complaining on Reddit.

12

u/really_not_unreal Aug 29 '24

That's exactly what that maintainer did though?

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

-43

u/MooseBoys Aug 29 '24

“nontechnical nonsense” raised around Rust programming language use within the Linux kernel.

Honestly the concerns raised by the critics are entirely legitimate. It may be “non-technical” but it’s not nonsense. Requiring long-time maintainers to learn an entirely new language just to be able to test their C changes deserves all the backlash it gets. As one of the critics concisely put, big changes like this always come with pain, and “pain management” and who gets to incur the pain is critical to consider when proposing these kinds of changes. If your answer to that questions is “all of you have to shoulder the burden”, it’s not at all surprising that the response is overwhelmingly to GTFO.

Does this mean we should never add rust to linux? Of course not. But IMHO when “allocating pain” for the change, the plan should be for 95% of it to lie with the rust devs.

76

u/small_kimono Aug 29 '24

Requiring long-time maintainers to learn an entirely new language just to be able to test their C changes deserves all the backlash it gets.

I think the Rust guys were very clear that's not the case. And I think, when you repeat something like this, you should be clear they never said anything of the sort in the video.

If your answer to that questions is “all of you have to shoulder the burden”, it’s not at all surprising that the response is overwhelmingly to GTFO.

AFAIK that was no one's response? Can you point to where someone expressed this sentiment?

-6

u/[deleted] Aug 29 '24

How is not the case? In the Linux kernel the rule is once you make a change that impact others code you also need to fix that code too.

For example if you change the API of a function you need to update all the callers so that the code wont break!

So, if you by making a change in a C function in filesysyem core and that function is called in Rust you need to understand Rust so that you wont break the Rust code

35

u/small_kimono Aug 29 '24 edited Aug 29 '24

How is not the case? In the Linux kernel the rule is once you make a change that impact others code you also need to fix that code too.

You should watch the video. Wedson acknowledges until Rust is more mature the responsibility to make changes to the Rust code lies with the Rust team.

Not to mention -- even if this wasn't the case, if the responsibility lay with the person changing the C interface to update the Rust code, Linus is the person to whom that person should direct their ire, not the maintainer of Rust for Linux.

7

u/MooseBoys Aug 29 '24

until Rust is more mature the responsibility to make changes to the Rust code lies with the Rust team

How is this done in practice? Once you allow other components to take dependencies on the bindings, you create the opportunity to break things.

4

u/Chippiewall Aug 29 '24

I think the idea is it is accepted that the Rust code will just be broken frequently, and the rust-for-linux developers will try to get fixes out as quickly as possible

→ More replies (2)

30

u/CrazyKilla15 Aug 29 '24

Honestly the concerns raised by the critics are entirely legitimate.

So long as they ignore every actual plan, everything actually said, take everything in the most extreme nonsensical bad faith way, or like here literally just make up a plan to get mad at and then project it on everyone else, and generally engage in an extremely hostile and abusive manner, in bad faith, sure yeah they're legit.

-10

u/MooseBoys Aug 29 '24

most extreme nonsensical bad faith way

It’s literally what the presenter said, pleading with C devs to ask them to maintain type compatibility with the rust bindings.

26

u/Creamyc0w Aug 29 '24

It’s not tho, watch the video

40

u/teerre Aug 29 '24

Countless engineers much less decorated, dare I say intelligent, than kernel maintainers learn one, two, three additional languages. This complain specifically is one of the laziest ones imaginable.

3

u/MooseBoys Aug 29 '24 edited Aug 29 '24

So you want to tell people who, for the most part, contribute their skills to improving Linux with no compensation and simply don’t want to incur additional burdens based on things they are not passionate about is “don’t be lazy”? Sounds like an excellent way to not have those people be contributors anymore.

I’ve used c/cpp for over 25 years. Could I learn rust? Sure. Do I want to? Not really, unless I’m getting paid to. Would I raise objections to a project I contribute to requiring me to learn it in order to continue making contributions? You bet.

5

u/simon_o Aug 29 '24

for the most part, contribute their skills to improving Linux with no compensation

Not the case here.

Sounds like an excellent way to not have those people be contributors anymore.

Yeah, maybe that's for the best. You know, science progresses one funeral at a time, yadda yadda.

I’ve used c/cpp for over 25 years.

That tribalism seems to be your main problem to be honest.
Also, using C/C++ automatically makes your opinion worth less, I hope you understand that.

→ More replies (1)

40

u/[deleted] Aug 29 '24

Two points:

  • Many people working on the kernel are employed engineers working on company time. Linux is not a scrappy hobbyist project it used to be 20-some years ago.

  • A large number of critical vulnerabilities are due to memory errors. Rust provides the machinery to help prevent those. Wanting Rust in the kernel is not an unreasonable ask.

3

u/MooseBoys Aug 29 '24

Wanting Rust in the kernel is not an unreasonable ask

Of course it makes sense in many areas, but you need to go about it carefully and with consideration for the legitimate concerns of everyone involved. The fact that there’s zero in-tree automated unit testing makes these kinds of changes a complete non-starter IMO. In my current project, we added Rust to a predominantly cpp codebase. One of the requirements was making 100% of any rust binding dependencies have automated presubmit unit tests. It’s worked pretty well so far.

→ More replies (2)

6

u/gmes78 Aug 29 '24

Considering that most kernel developers do so as their job, yes, it would be lazy from them to not learn Rust if it's adopted by the kernel.

It's not even hard.

7

u/teerre Aug 29 '24

Yes. It's a not big deal. Countless do it, as already said. In fact it's embarassing that a developer that senior would just shut down learning a new language.

It's also very ironic for to be worried about losing contributors when an attitude analogous to yours just lost one.

-4

u/MooseBoys Aug 29 '24

it’s also ironic to be worried about losing contributors when an attitude analogous to yours just lost one

If I had to pick between keeping the 50-year-old C guy and the 20-year-old Rust guy, I’d choose to keep the C guy every time.

15

u/M3Vict Aug 29 '24

Until he retires in 5 years and you have no engineers at all. You can't just hire seniors if you want to maintain stability in knowledge transfer.

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

-7

u/inevitabledeath3 Aug 29 '24

Have you tried learning Rust? It's a lot more difficult than just picking up Java or C# for fun. The learning curve for that language is steep, and these people are unpaid volunteers.

16

u/teerre Aug 29 '24

Not only I tried, but I also introduced it to multiple teams, many of them very senior C++ developers. There was not a single case of a person not being productive in a couple months.

I have no doubts when I say: it's not that hard.

0

u/SnooCompliments7914 Aug 29 '24

You might get a very different result trying it with senior C developers...

3

u/teerre Aug 29 '24

There's always an excuse.

→ More replies (2)

6

u/inamestuff Aug 29 '24

Rust forces you to explain with types the complexity that you would normally hide behind countless and repeated if-statements in a C codebase. It’s not more complicated than writing equivalently safe C code, quite the opposite actually

7

u/RetoonHD Aug 29 '24

God forbid they learn a modern language with actual benefits over the ones they learned 50 years ago, oh the horror!

2

u/pachecoca Nov 27 '24

Yeah, sure, for any other job this makes sense, like idk making a web app or some shit, but here we're talking about kernel development... and file system related no less...

Learning a new language is not a problem. Becoming good at that language is a whole different story. If this was not a critical system, then it would make sense to learn the new language and just call it a day. Imagine trying to translate 50 years of C experience into the Rust equivalent in a month or two... all you're going to achieve with that for kernel development is making a big mistake. Specially when it's file system related. This is one of the most dangerous areas to make mistakes. Or do you just enjoy accidentally publishing a patch with some extremely rare edge case that will obliterate all of the files of millions of users across the globe?

I understand the C guy, he's being careful, and the points he makes make sense... and I'm surprised by the Rust community's reaction. For people who tout themselves to love safety, you people sure do love the idea of just jumping in blindly without any care in the world for actual safety.

If you want someone to write Rust code for a critical system that needs to be maintained on the daily, you need to get someone who is actually experienced with Rust and can actually write Rust code without making the Universe explode. Asking the C guys to magically transmute their 50 years of experience in C into Rust experience in like 2 nanoseconds is only going to cause issues down the line... and, ofc, if you do want to include Rust code, you can't just step all over the C code. Not because C is magical or some kind of mythical being that has to respected or some language religious bullshit. No, the reason is because there's decades worth of code there that can't be magically translated from one day to the other into Rust. If we could, we would. Sadly, we can't. I expect that even Rust devs can understand this to be a fact and not "non technical nonsesne"...

1

u/RetoonHD Nov 27 '24

This was like 2 months ago, but i appreciate your response.

We are talking about kernel development. If anything, that is the one place you should care about using rust as opposed to C. Change isn't easy, sure. Nobody is asking people to change in "2 nanoseconds", the guy spearheading it was working on it for 4 years. I also do not believe C developers with 50 years of experience are incapable of getting proficient with rust in a couple weeks. Hell, in 50 years of SWE you better be at least capable to pick up any language. These people are not amateurs.

I don't know why you mention "in a month or two". I'm not even making that claim. This is a long, incremental and time consuming process that will take years. The reason i made my comment is because of the way the maintainer(s) acted on the panel.

Honestly, i don't really care anymore. Maintainers will retire, new ones will take their place, yada yada.

Thanks for the converse!

1

u/pachecoca Nov 27 '24

In a month or two was mentioned because someone has to maintain the kernel... or do you expect them to just stop maintaining it while the devs are learning and getting proficient with Rust? again, as I said, learning a language overall is easy. Actually knowing how to use it properly takes time. And that time, someone has to be maintaining the kernel. Software doesn't magically write itself. You said it yourself, it's a long and incremental process that's going to take years, so I don't understand what is going on. It's like you understand the implications but at the same time the language fanatism is seeping through and making it impossible to make a rational statement.

And uhhh yeah, maintainers will retire, nobody said otherwise. That much is obvious... I mean, shit, look at the Rust guy who stepped down after such a small amount of pushback that literally just required renaming a function and making a compromise to maintain a compatible API to make eachother's lives (both the C and Rust programmers' lives, that is) easier when updating kernel systems written in C and in Rust... but I guess that's all a facade and you lot don't actually care about any of that in the end...

Anyway, thanks for the converse!

1

u/RetoonHD Dec 01 '24

You come over as vindictive and antagonizing. I'm not being a "fanatic", i just don't see the huge problem in getting a few maintainers ready before you introduce rust into the kernel. I never said they have to stop maintaining for a few months. You can do all the prep for that before you have to bear the load of maintenance. I'm not here to talk to trolls, if you want civil converse then stop implying everyone is a so irrational and fanatic for having a view different to yours. Change takes time.

-40

u/[deleted] Aug 29 '24

The guy sent his patches on a communication platform 8 months ago (zulip), no kernel developer knows about it - but on a kernel mailing list just the day before.

I dont think he understands how linux kernel development works!

Most of the time if you dont try to follow community guidelines you will just be ignored!

Also, if you ignore the questions and concerns from reviewers you will never get your code in.

Working with the Linux kernel community is hard if you have your own agenda and try to impose to others

19

u/gmes78 Aug 29 '24

Everything you said is nonsense.

-10

u/[deleted] Aug 29 '24

Nonsense for someone not familiar with the linux kernel development

-8

u/Locastor Aug 30 '24

Oh no an M$ trojan operative won’t be allowed a kernel commit bit any more!

-11

u/[deleted] Aug 29 '24

Holy shit, i spotted a butthurt C++ coder.

5

u/Booty_Bumping Aug 29 '24

Definitely not a C++ programmer... these types of developers usually dislike C++ even more than Rust, or hate them equally.

-15

u/[deleted] Aug 29 '24

[removed] — view removed comment

18

u/nickik Aug 29 '24

What utter and complete nonsense. The Linux kernel community has been elite at generating drama. The Rust core development community had if anything else of that.

-6

u/[deleted] Aug 29 '24

[removed] — view removed comment

2

u/AutoModerator Aug 29 '24

This comment has been removed due to receiving too many reports from users. The mods have been notified and will re-approve if this removal was inappropriate, or leave it removed.

This is most likely because:

  • Your post belongs in r/linuxquestions or r/linux4noobs

  • Your post belongs in r/linuxmemes

  • Your post is considered "fluff" - things like a Tux plushie or old Linux CDs are an example and, while they may be popular vote wise, they are not considered on topic

  • Your post is otherwise deemed not appropriate for the subreddit

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.