News for hackers. Stuff that matters.
Re:Linux Rust Support by jldugger on Tuesday July 06, 2021 @01:15PM (#27751472)
I'm not surprised really. The C language is pretty old, and pretty much none of the features in C++ make writing correct kernel code easier. That's not a mark against C++, it's just landed on a different niche: a high perf userspace application language for expert software engineers. Other high profile languages like Golang and Swift have a similar 'application engineer' focus that offer no meaningful improvements for kernel authors.

So it's not surprising to me that Torvalds is critical of languages that don't cater to his use case. Nor why he's less vocal about Rust. The allure of Rust is inbuilt support for multithreading, protection against data races, and an efficient memory management system.

Re:Linux Rust Support by ncmncm on Tuesday July 06, 2021 @05:10PM (#27754280)
Fine, but it is completely false that C++ offers nothing useful for kernel coding. You can see, for example, SerenityOS kernel making good use of modern features.

Any feature useful for coding libraries is equally useful for kernel coding, because the overwhelming majority of kernel code is identical to what goes in libraries, and much of it is, explicitly, library code.

Re:Linux Rust Support by pjmlp on Wednesday July 07, 2021 @05:02AM (#27758953)
People keep forgeting that ARM, Microsoft, Apple and Google OSes use drivers written in C++.