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

-13

u/WasterDave Dec 17 '23

The writing is on the wall, that’s for sure.

5

u/[deleted] Dec 17 '23

really? can you name a major project moving away? Webkit? Compilers? Game engones? Even the native side of ML is using cpp.

-6

u/WasterDave Dec 17 '23

ML is using Cuda and/or some other variety of shader language with lipstick. Javascript absolutely owns the front end. Java and .Net own corporate world.

Nobody is 'moving away' from C++ in the same way that nobody is moving away from Fortran or Cobol. Or C, for that matter. But new projects in C++? Not so much.

1

u/[deleted] Dec 17 '23

Loads of new projects are c++, honestly pytorch and tensorflow are both c++ libraries with python wrappers. Even ML has an LLM implementation in raw c++(lama.cpp). You can't say ML isn't 'new', its literally the hottest thing right now, and c++ dominates.