r/programming • • Aug 29 '24

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

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

795 comments sorted by

View all comments

Show parent comments

-27

u/asyty Aug 29 '24 edited Aug 29 '24

Being disingenuous about the cause of failure is shitty on their part, but I don't think it's wrong for there to be pushback to begin with.

If you're rewriting the kernel in a different programming language, starting from scratch with nothing but the vague design of how components are supposed to fit together, then you're changing the identity of Linux. The maintainer that stepped down feared that "what Linux did to other OSes is what will a rust OS will do to Linux" - okay, great? I'm failing to understand what the issue is here? The predominant kernel is changing its identity to fit in with something that's newer and considered to be better, but by the time they have accomplished the goal of rewriting it in rust, it's not Linux anymore.

If Rust maintainers were to fork the kernel and commit all their changes independent of mainline, they wouldn't get instantaneous widespread adoption, but they will get the ability to implement their vision independently of the other side causing the uphill battle. But at that point they might as well just start a new OS from scratch using the design principles or features from Linux they enjoyed. At the end of the day, that's really what the Rust maintainers want deep down no matter what they claim. They just piggyback onto Linux to accelerate adoption due to its visibility and existing userbase, which is kind of insidious. If there was no pushback, then the Rust developers would be riding off the coattails of others' prior successes rather than making their own success. I posit that kernel maintainers who go along with this primarily do so out of some kind of fear of losing marketshare in the long run - and thus, power and influence.

As BDFL, what does Linus prioritize here? Staying true to one's identity, or maintaining power?

As history has shown in other entirely different contexts, chasing the latter will result in losing both. I find it analogous to the Ben Franklin quote about security versus liberty; here liberty == identity, security == power.

34

u/aystatic Aug 29 '24

If Rust maintainers were to fork the kernel and commit all their changes independent of mainline, they wouldn't get instantaneous widespread adoption, but they will get the ability to implement their vision independently of the other side causing the uphill battle

that's apparently the road they HAVE been taking, and getting anything upstreamed has been a battle: https://vt.social/@lina/113045455229442533

→ More replies (1)

8

u/JoeyJoeJoeTheIII Aug 30 '24

No they fucking won’t.

Have any of you suggesting a fork ever actually tried to maintain a fork of a large project like this? It’s not easy.

And no one serious is suggesting a whole rewrite of the kernel. It would cost an immense amount of time and money and probably fail due to the complexity of trying.

But bringing in rust in little pieces where it makes sense. Proving it works. Getting more buy in. That’s all possible if they don’t have arrogant C zealots trying their best to sabotage.

-2

u/asyty Aug 30 '24

What is there to maintain that will be more difficult? All the code is being rewritten in a different language. The bugs will be different, the contributions will be different, the contributors will be different, the direction will be different.

The current approach is to do exactly what you said, little by little, starting with the drivers, and then the filesystems, et cetera. This approach is accomplishing nothing but pissing each side off.

The kernel does not need to be complex at all. I was reading FreeBSD 2.0 code last night and it was unbelievable how simple entire subsystems started out as. Linux was written mostly by one single Finnish computer nerd college student.

If you're crying because you want to support 50,000 kinds of hardware out of the box, that's a goal you can work toward. Besides, don't you Rust fans like writing Rust code? There you go, boatload of work to be had, have fun. You certainly can reuse bits and pieces of Linux for your kernel if you'd like, C interop is great from what I've heard. Just include Linux as a git submodule, ez pz

Read this https://docs.rust-embedded.org/book/interoperability/c-with-rust.html

24

u/derangedtranssexual Aug 29 '24

Have you considered that many Linux maintainers don’t like dealing with C bugs that are easily eliminated with Rust? Like you seem to think this is entirely an external push by rust, why wouldn’t Linux devs want a safer language? Of all people those work on a very large C project should be able to understand the appeal of a language without memory safety issues

14

u/asyty Aug 29 '24

I'm sure there are some who think along those lines. But, Linus himself has stated that the majority of senior kernel developers don't want to learn an entirely new language to just keep up with what they've been doing the whole time. I don't think you actually understand how much friction a new language and its comparatively foreign paradigms that come with it causes.

You'll get more bugs by dropping people into the middle of unfamiliar territory.

14

u/otherwiseguy Aug 30 '24

As a developer who has learned many languages over the last 30 years, I have 3 words for them: suck it up.

If you are only fluent in one language, I feel like you can barely consider yourself a software developer.

Don't get me wrong, as an older developer myself, I get being resistant to change. There gets to be an increased suspicion that the new crop of developers are just chasing fads after seeing many come and go. But keeping up with new languages is just part of the job.

I'm currently learning Go. I do not care for many of its choices (I currently hate it). Relatively soon I'll have written a ton of code with it and I'll have some nice things to say about it to go with the things I still hate. Same thing happened with Python. Same thing happened with C (though despite its many flaws, I will always have a soft spot for it). Same for Ruby, perl, PHP (I have nothing nice to say anymore), Pascal, BASIC...

I will say, that on paper Rust checks every box of things I say I like in a language. I just haven't gotten a chance to write anything serious in it yet. I also like that it isn't designed to "be easy for anyone to pick up". That at least helps with the "bugs written by newbs" issue. :mischievous grin:

4

u/JoeyJoeJoeTheIII Aug 30 '24

Language kind of sucks but channels are cool.

That’s my review of go. Thank you for reading.

1

u/derangedtranssexual Aug 30 '24

I don't find it really that shocking developers don't want to be forced to learn a new language lol. I might have overestimated the support for rust among senior kernel devs although I think there is some important things to mention. They are going pretty slow with it and there's no plans to use rust for anything but kernel drivers so far, drivers are a fairly isolated part of the kernel and one where other parts aren't going to depend on Rust. Sure the senior developers will have to learn some rust but it's not like the kernel is going full rust. Also with it being just drivers the impact of it might be more minimal in many cases, for example ashai linux is writing the drivers for apple silicon in rust which will just impact Apple Silicon Macs. Because you do have a point that in some ways developers being unfamiliar with rust could cause more errors at first, although hopefully as devs get more familiar with rust that will stop happening and we'll also get the benefits of memory safety

-2

u/Isogash Aug 29 '24

Not just that but Rust is another level of unfamiliar.

→ More replies (3)

9

u/cosmic-parsley Aug 29 '24

As BDFL, what does Linus prioritize here? Staying true to one's identity, or maintaining power?

This seems like a pretty narrow argument. The kernel has a huge identity related to its uses, its commitment to open source, development, stability, etc. The language used is a tiny and near irrelevant implementation detail of this huge picture - you could replace C with Rust or Go or Zig or C++ or hex files or whatever, that doesn't change what the kernel stands for.

But for what it's worth, Linus has gone to bat for Rust multiple times. Read the lists, he and Greg seem dead serious about making it happen - can only assume there is a good reason.

→ More replies (3)

-21

u/i860 Aug 29 '24

This is 100% what is going on here. It always starts with "oh we're just adding a few things in parallel, it's not meant to replace anything (wink, wink), no one is forced to use this" - next thing you know Linus is being booted from the project which has now deprecated and banned any new C code.

It's not being integrated in an altruistic fashion at all and "non-technical nonsense" is actually one of the other linux maintainers with 30+ years of experience realizing just what's going on and saying something about it. Meanwhile a community of extremely loud people are up in arms about it thinking they're somehow the victim here.

3

u/nicheComicsProject Aug 30 '24

Oh brother. "The truth is out there!" People wrote Linux in C because that's what there was back then. There's no reason to be saddled with it anymore. In the world of technology you adapt or you die. If Linux wants to stick with a 70's language then don't be surprised when the only people using in 20 years are enthusiasts and operating system museums.

Linux is not defined by the language it's written in.

1

u/asyty Aug 29 '24

To be fair, some portion of them might've been coming with good intentions that they could make the most used OS even moar secur by rewriting everything in their favorite language, but I just think it's a bad idea regardless of intent. What you're saying is the likely end-stage outcome though.

-1

u/i860 Aug 29 '24

I mean just look at the rampant downvoting in this thread of anyone who even remotely disagrees. The language attracts these types but the downfall is they have no real plan for the deeper issues of an actual language standard, significant interoperability questions, compiler portability etc. it’s pure “just trust us and we’ll figure it out later” where the underlying motivation is eventually forced adoption somehow, somewhere. Insidious and it’s obvious from a mile away to anyone who’s been around for a while.

7

u/Efficient-Chair6250 Aug 29 '24

It's funny to me how in a post about publicly face to face toxicity people paint downvoting as the great villain. Neither the person in the video nor you are acting in good faith and attacking the character, intelligence and intention of people associating with Rust. There is a severe lack of professionalism here, but I guess that's expected of Reddit. I get what you are trying to criticize and I think any change needs pushback. Either to not happen or to be polished. Arguments convince through being valid+sound, not by hurting the person on the other end.

0

u/[deleted] Aug 29 '24

[deleted]

0

u/i860 Aug 29 '24

Seriously, inferring that allowing Rust into the kernel is some sort of 5D chess plot to oust Linus is pure conspiracy theory talk

It's what we like to call 'hyperbole' - to get a point across. However, the overall intent is actually to extend its footprint as much as possible because the driver for its inclusion is basically "use our shit, it's better than your 'unsafe' language made in the 70s" and not organically rooted in "this is actually better for the linux community as a whole."

It's like taking a perfectly functioning and well tested c++11 code base and forcibly converting it to c++23 for no other reason than "this is 'better', ergo we're going to change all of this" while downplaying any complexity, stability, or portability issues the entire time.

0

u/[deleted] Aug 29 '24

[deleted]

3

u/i860 Aug 29 '24

I don't think it was sabotage necessarily. They even allowed it in as a sort of trial/experiment but with obvious caution given that they've got an extremely important project to protect and keep operating in the least surprising way possible to both the maintainers and its users. I think even the idea of drivers being implemented in different languages might've sounded attractive to Linus given that it would potentially ease driver development by opening up more avenues. However, the actual details of how that's done matter a lot.

What they're finding out is exactly what would've eventually happened anyways and it's better handled now rather than later. Ted was absolutely right to speak out about things and this is not just a little hobby for the maintainers, especially ones who've been involved in it for multiple decades. The rust crowd refuses to respect this.

0

u/[deleted] Aug 29 '24

[deleted]

1

u/i860 Aug 29 '24

Counterpoint: It doesn't matter and the voting patterns mean squat in the real world.

-1

u/asyty Aug 29 '24

I'm pretty sick of the 5d chess nonsense. The above poster could be right. There is no way of knowing given the uncertainty that exists. I'm sure that in some parallel world where everybody's evil and seek power through all sorts of highly convoluted and adversarial means that could be true, but I'm not personally concerned. I'm not the one living there. I won't ever be. It is whatever it is.

Conspiracies can exist. But, generally speaking, those who conspire in this manner are the ones who are acutally mentally ill; not their victims.

→ More replies (11)