4 ms·
Based on the few years I spent working in big C++ shops the obvious thing is that the popularity of C++ is largely based on previous popularity of C++ - interna
by fishnchips 11y ago
Based on the few years I spent working in big C++ shops the obvious thing is that the popularity of C++ is largely based on previous popularity of C++ - internal libraries, easily hired external developers etc. That, and the constant development of C++ - because the language is regularly getting new features (and cool features at that, I mean look at C++11) there is little incentive for folks to say "this language is dead, let's move somewhere else". With a large pre-existing C++ codebase you have a choice of writing SWIG wrappers, embarking on a quixotic task of rewriting core libraries natively in your language of choice or just going with the flow. The first thing destroys your soul and the second one is a career killer so I would expect C++ to have great many years ahead of it despite sometimes atrocious compilation times.
- AlexeyBrin 11y agoHopefully the compilation time will be drastically reduced in C++17 with the addition of modules to the language. Obviously, this won't be of much help if you work with an old codebase or old libraries.
- fishnchips 11y agoWhich is unfortunately the case for the places I've been. Modules could perhaps persuade some folks to start new codebases in C++ but these days you have less incentive to do so given a choice of decent systems programming languages. Surely I'm a sample of one but being a reasonably competent C++ coder I tend to start most of my new projects in Go.