4 ms·
People who write code in C++ are not doing this because it is fun or just because it is the latest buzzword. They do it in C++ because it is the language that s
by coliveira 11y ago
People who write code in C++ are not doing this because it is fun or just because it is the latest buzzword. They do it in C++ because it is the language that supports the billions of lines of code in their industry, while providing a path forward through new standards and libraries. In summary, code written in C++ will not move to other languages because there is no need for that. The best opportunity for competitors is to write their own new systems and replicate what C++ already has. Not even Java has been able to do that up to this moment. And while it is possible, it will take a long time.
- marcosdumay 11y agoJava is one of the least capable contenders at this point. All those thousands of lines of C++ code, you can easily use them in any language you choose, except for Java.
- GFK_of_xmaspast 11y agoIt's actually reasonably easy, you just write a shim that can be linked as 'extern "C" {}' and then use jni. (I find it much easier than, for example, cython)
- santaclaus 11y agoThis even works for Fortran.
- andresmanz 11y agoThese are some good and valid points. Well, I write code in C++ because it's fun. And because I don't know any other language yet(!) that offers so many features to express my intends in code. I'm _trying_ to learn Rust at the moment, but parts of the official book, as well as parts of Rust's standard library (function naming) have been horrible to read up to now.
- berkut 11y agoWell I still use it (and Python) for fun for my own high-performance stuff - there's no other language out there (yet, without having to install custom compilers) that allows speed, flexibility and encapsulation... Good points though - there are huge ecosystems out there in the games / graphics / VFX industries of C++ code and libraries, and I doubt any of it's going away any time soon.