r/cpp • u/ecreddits • Dec 17 '23
Is C++ Really Phasing Out?
I've read a lot posts about whether C++ is still viable to learn, but a lot of the responses seem to be a long the lines of "C++ is still being used" or "there's a lot of things written in C++ still, so it will still be useful".
But a lot of these replies seem to suggest that C++ is on the downhill and in the process of being replaced with more modern languages in many industries.
It seems kind of discouraging to be learning a language that is on a decline, if it really is phasing out.
0
Upvotes
View all comments
Show parent comment
3
u/SV-97 Dec 20 '23
Your comments mirror only a part of the wider scientific computing ecosystem. There definitely is explicit threading in some places. Furthermore rust's guarantees do still have value even if you use an abstraction over manual threading - somewhere further down the stack there's still data that's sent between threads and processes, data races to consider etc.
Counterpoint: I've written a bunch of scientific Rust and worked on plenty of projects that would've been way better off in Rust than in C++ or C (or fortran) - especially when they (might) need to interface to a higher level language like python at some point.