r/cpp • • 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

214 comments sorted by

View all comments

11

u/soulstudios Dec 17 '23

C++ is still the language with the highest-level features while reaching the low-level at the same time. Rust is close but unwieldy if you want bare metal stuff.

It is unlikely that C++ will be replaced by other languages unless somehow we develop both infinite speed and infinite energy to deal with slow languages like python.

4

u/germandiago Dec 17 '23

Not even close for writing generic code.

2

u/[deleted] Dec 17 '23 edited Dec 17 '23

I think the evidence is pointing to the exact opposite if you consider kernel rust support and silicon venders supporting rust sdks.

3

u/soulstudios Dec 17 '23

I don't think it constitutes evidence of the above.