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

View all comments

Show parent comments

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.

-8

u/nicman24 Aug 29 '24

memory safe rust in kernel is a meme.

→ More replies (1)

0

u/[deleted] Aug 29 '24

[deleted]

3

u/MooseBoys Aug 29 '24

acting like it’s an impossibility to reach out to RFL dev (to provide notice of breaking changes)

That’s the problem - how do you even know if you broke something? There’s zero in-tree unit testing in Linux. Automated testing just isn’t part of the kernel culture - instead, you’re expected to self-host, then community test, then merge to main. Using rust in linux is currently opt-in in kconfig, which means 99% of people won’t be providing coverage.

2

u/Chippiewall Aug 29 '24

This is a bit misleading. Yes, there's no centralised testing infrastructure. But the kernel does have two testing frameworks, kunit and kselftest. Additionally there are a few third parties like Intel that do large scale automated testing of the kernel.

It would be surprising if the Rust for Linux developers didn't add some kunit tests for their filesystem API bindings, and it would be even more surprising if it were overly onerous to ensure that those were automatically run for changes to the filesystem subsystem.

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)

1

u/teerre Aug 29 '24

And yet you can't see how you're the problem. Even more ironic.

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/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.

1

u/Pay08 Aug 29 '24

Rust and C++ are very similar at the end of the day. C is its own world and C programmers need the assurances that C provides. Specifically, that something won't generate random assembly for no reason.

1

u/teerre Aug 29 '24

Alright, that's a new one. People routinely refer to themselves as a C/C++ developer. It's trivial to find job posts with that description.

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.

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