News: 1726758429

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Torvalds weighs in on 'nasty' Rust vs C for Linux debate

(2024/09/19)


Linux is 33 years old. Its creator, Linus Torvalds, still enjoys an argument or two but is baffled why the debate over Rust has attracted so much heat.

"I'm not sure why Rust has been such a contentious area," Torvalds said during [1]an on-stage chat this week with Dirk Hohndel, Verizon's Head of Open Source.

"It reminds me of when I was young and people were arguing about vi versus Emacs," said the software engineer. Hohndel interjected, "They still are!"

[2]

[3]Youtube Video

[4]

[5]

Torvalds laughed, "Maybe they still are! But for some reason, the whole Rust versus C discussion has taken almost religious overtones."

The whole Rust versus C discussion has taken almost religious overtones.

Getting Rust into the Linux kernel has been a hot topic for some time. [6]In 2022 , developers were arguing over the language, with some calling the memory safety features of Rust an "insult" to some of the hard work that had gone into the kernel over the years. At the beginning of September, one of the maintainers of the Rust for Linux projects [7]stepped down , citing frustration with "nontechnical nonsense" as a reason for resignation.

During the conversation at the Linux Foundation's Open Source Summit in Vienna this week, Torvalds continued, "Clearly, there are people who just don't like the notion of Rust, and having Rust encroach on their area.

"People have even been talking about the Rust integration being a failure … We've been doing this for a couple of years now so it's way too early to even say that, but I also think that even if it were to become a failure – and I don't think it will – that's how you learn," he said.

[8]

"So I see the whole Rust thing as positive, even if the arguments are not necessarily always [so]."

Keen to pull those positives from the row, Torvalds added, "One of the nice parts about Rust has been how it's livened up discussions," before acknowledging, "some of the arguments get nasty, and people do actually - yes - decide 'this is not worth my time,' but at the same time it's kind of interesting, and I think it shows how much people care."

"C is, in the end, a very simple language. It's one of the reasons I enjoy C and why a lot of C programmers enjoy C, even if the other side of that picture is obviously that because it's simple it's also very easy to make mistakes," he argued.

[9]

"And Rust is not."

With impressive diplomacy, considering his [10]outbursts of years past, Torvalds went on, "There's a lot of people who are used to the C model, and they don't necessarily like the differences... and that's ok.

"Some people care about specific architectures, and some people like file systems, and that's how it should be. That's how I see Rust."

The arguments seem set to run a good while yet. Towards the end of the discussion, Hohndel joked that Torvalds had been the figurehead of the Linux project for the last 33 years but would be unlikely to perform the same role for another 33 years.

Hopefully, the arguments over Rust will have been settled by then.

Or maybe not. After all, vi and Emacs date back to the 1970s and discussions over editor preference remain ongoing. ®

Get our [11]Tech Resources



[1] https://youtu.be/OM_8UOPFpqE?feature=shared

[2] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2ZuxKpJ9tE5Fpir5r-4Zs6QAAABY&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0

[3] https://www.youtube.com/watch?v=OM_8UOPFpqE

[4] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44ZuxKpJ9tE5Fpir5r-4Zs6QAAABY&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[5] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33ZuxKpJ9tE5Fpir5r-4Zs6QAAABY&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0

[6] https://www.theregister.com/2022/09/16/rust_in_the_linux_kernel/

[7] https://www.theregister.com/2024/09/02/rust_for_linux_maintainer_steps_down/

[8] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44ZuxKpJ9tE5Fpir5r-4Zs6QAAABY&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[9] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33ZuxKpJ9tE5Fpir5r-4Zs6QAAABY&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0

[10] https://www.theregister.com/2018/09/17/linus_torvalds_linux_apology_break/

[11] https://whitepapers.theregister.com/



Gerhard den Hollander

VI ... always ... though it's the viom incarnation these days ....

RUST never sleeps

Hard truths

Anonymous Coward

Once all the old C programmers go to the great repository in the sky, and with a lack of new younger developers/contributors keen to take on old C code, Rust will inevitably triumph.

Re: Hard truths

GrumpenKraut

No, Emacs is better!

Re: Hard truths

heyrick

" keen to take on old C code, Rust will inevitably triumph. "

Didn't downvote, but by the time all us crusty C programmers have shuffled our way into retirement, it'll be "the hot new thing" designed to fix all that was wrong with Rust, and people will be arguing over that instead. Remember C++ was going to take over the world? Then... I don't remember the names - Swift? C-hash? Some others, and now Rust. It's a churn that slowly turns relentless and unending.

I say all this modern crap is far too inefficient and bloated. We ought to go back to basics and do the job properly and write stuff in assembler, because back then machines booted in seconds and didn't crash every five minutes. Mine's the one with the 6502 datasheets in the pocket.

My understanding...

cjcox

My understanding is that for "better" Rust support, some things have to change and that means the C devs have to accommodate. And I think that's the bigger issue. Having to make changes to code purely to aid in Rust support. There's a "don't fix what isn't broke" sort of mentality about it.... but since Rust dev has already come into the kernel and is "blessed", ultimately work will have to be put on the plate C wise to accommodate. So, the "war" (if we can call it that) is who is responsible for accommodating changes for Rust?

So... I think this "war" will continue for a bit. I think once enough changes are made to the C code on Rust behalf, the war will ultimately end.

Who knows, maybe someday, Linux becomes the successful all Rust OS (vs something like Redox)?

A Smith & Wesson beats four aces.