News for hackers. Stuff that matters.
Re:Why Rust Isn't Killing C++ by pjmlp on Thursday May 02, 2024 @01:08PM (#40238604)
As C++ fan, that used to teach it as TA, spent time at CERN doing HPC in C++, I would assert C++ has gone beyond PL/I complexity level.

And just like 50 years ago with PL/I dialects, a reboot will eventually happen.

I expect C++26 to be the last relevant ISO C++ revision, for the use cases where C++ would still be the main supported language, like existing infrastructure.

I don't forsee post C++26 revisions to ever gain major industry relevance.

One issue with all wannabe replacements, is that C++ will never go away as long those replacements aren't bootstrapped, relying on GCC or LLVM for their toolchains.

Re:Why Rust Isn't Killing C++ by Expurple on Thursday May 02, 2024 @01:32PM (#40238953)
IMO, unless you have really serious reasons, it would be silly to turn "a decade of hard work" into two decades of hard work. With an even lower chance of your new language getting traction.

Nothing prevents you from launching a working language first and then replacing the backend later. That's what Zig folks are working on at the moment. And nightly Rust recently got experimental support for Cranelift backend.

Compiler frontends don't start out self-hosted either, anyway. Because it's literally impossible. The first implementation has to use something else that already exists

Re:Why Rust Isn't Killing C++ by pjmlp on Thursday May 02, 2024 @01:55PM (#40239239)
Fully agree, and is a complex matter, as apparently LLVM has Linux kernel level of contributions, not only due to companies, but also PhD/Masters being done on it.

And as such C++ will stay around for a long time, even if everything else on top would be another language.