← Back to context

Comment by mort96

3 years ago

I have a lot of experience in C, a lot of experience in C++, and some experience with Rust (I have some projects which use it). My opinion is that it's true, and the other comments are good explanations of why. But I want to point out, in addition to those: There's a reason why Rust was adopted into Linux, while C++ wasn't. Getting C++ to work in the kernel would almost certainly have been way less work than getting Rust to work. But only Rust can give you the strong guarantees which makes you avoid lifetime-, memory- and concurrency-related mistakes.

You can't underestimate the amount of personal hatred that Linus and several other linux maintainers have for C++. I can't really say I blame them - C++ before C++11 was a bit of a nightmare in terms of performance and safety.