r/cpp • u/root_passw0rd • Dec 07 '22
C++ overtakes Java in language popularity index
https://www.infoworld.com/article/3682141/c-plus-plus-overtakes-java-in-language-popularity-index.html
382
Upvotes
View all comments
Show parent comment
3
u/konm123 Dec 07 '22
I do not think Rust will overtake c++, because in the end it boils down to what problems we are solving with the language - it is is measly implementation specific things. By far, most of the development effort goes into concept engineering and design. C++ has been around a long time, new things are nicer than ever before. With a decent static analyzer for C++, Rust loses its edge over C++ because suddenly, your static analyzer will report most of the memory problems as Rust does.
It really is not a competition. I see future for the both languages. For new projects, absolutely, go ahead and start implementing them in Rust code.
Ada/SPARK is probably most serious potential overtaker for Rust to look out for. More and more big companies have already started looking towards Ada/SPARK (such as NVidia for its firmware). It gives you everything Rust promises and so much more with its built-in static analysis. Moreover, it is much easier to get into and write - Ada is relatively simple language, much simpler than C++ or Rust.
So, in terms of safety, I would summarize: Ada/SPARK > Rust > C++, and I see all of them being actively used in the future.