r/linux • u/unixbhaskar • 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-Down24
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
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...
→ More replies (3)7
u/Misicks0349 Aug 30 '24
im not surprised, the phoronix fourms always seem to attract a certain...crowd
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
→ More replies (3)8
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.
→ More replies (4)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.
42
92
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.
:(
→ More replies (4)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.)
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
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.
→ More replies (3)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
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.
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.
→ More replies (4)9
u/airodonack Aug 29 '24
You have it a bit switched around. The laugh was because of the dig at Java.
→ More replies (6)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.
→ More replies (1)14
→ 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)-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.
→ More replies (1)0
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)→ More replies (20)18
→ More replies (2)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.
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
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
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
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
1
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:
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.
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
-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
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)→ More replies (2)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
-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
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
→ More replies (2)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
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
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
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.
→ More replies (2)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.
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.
→ More replies (3)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.
→ More replies (1)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)-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.
→ More replies (2)0
u/SnooCompliments7914 Aug 29 '24
You might get a very different result trying it with senior C developers...
3
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
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
-8
-11
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
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
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.
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.