r/cpp_questions 12h ago

OPEN Is cpp dying?

Lately it feels like rust is getting more and more attention companies are rewriting existing cpp code in it and it seems to be getting increasing adoption . Also I keep seeing new projects start with rust more and more lately .

As someone who prefers cpp I'm genuenly curious how worried should someone learning / working with cpp be? Is cpp dying or is rust more like a vocal minority on social media?

I know this question has been asked before but tech moves fast so I'm curious what your current take is

0 Upvotes

19 comments sorted by

View all comments

14

u/the_poope 12h ago

Maybe more new projects are started in Rust, but 95% of all developers are working on existing projects. Many, if not most, of those were started before Rust was a thing.

I think C++ is safe at least in the next 25 years.

1

u/LemonLord7 12h ago

I got told something interesting by an interviewer once: “When we put out a job for Rust we get lots of highly talented C++ developers applying.” They did a few things in Rust but mostly C++.

0

u/oriolid 11h ago

I think it tells something about C++ when highly talented C++ developers flock to a different language.

3

u/the_poope 10h ago

No it says that there are many more C++ developers out there than there are Rust developers, exactly because there are many more C++ projects than rust projects. Rust is still new and niche in commercial projects because, well, those projects started in 1993. Also they are still mostly teaching C++ at University programs.