3 ms·
> First, all the compilers already implement pretty much all of it. I'm not sure if by widespread you mean "included in a distribution" but you can use these fe
by wmu 10y ago
> First, all the compilers already implement pretty much all of it. I'm not sure if by widespread you mean "included in a distribution" but you can use these features today, if you want to install a compiler.
Of course, I can install any compiler, but my employer might not allow me to use it. Porting to a new compiler is not an easy task when a code base is large; we postponed porting due to lack of time.
> Second, C++ is popular by pretty much every measure I could think of. Whether you want to measure lines of code, or number of projects, or number of developers - it is very high on the list.
More interesting measure would be the number of new projects.
> It is true that is not popular with web developers and gets shouted down in those echo chambers, but the web entirely runs on C++ because all browsers are written in C++.
In web backend C++ is not used. You find there C#, Java, PHP, Python, maybe Go.
- pjmlp 10y agoC++ is surely used in the backend, but as library languague integrated into the languages that you mentioned. Every now and then, I integrate a native library into our Java and .NET projects.
- fnj 10y agoIf you have to "port" your code from one C++ compiler to a new C++ compiler, then they are not both true C++ compilers per standards, or your code is not pure standard C++.
- wmu 10y agoSometimes compilers have bugs or are not fully-compliant. For example MSVC two or three versions ago didn't understand =delete. Standard library also might have errors. Moreover, we use third-part libs that are not always up to date (for various reasons), we have some legacy parts, and so on and so forth. I wish switching compiler required only setting another CXX. :)
- rrdharan 10y agoExcept at Google, Microsoft and Amazon. As far as I know the three biggest public clouds are all implemented with C++ as one of if not the primary backend language.
- tmccrmck 10y agoDepends on the task ;) A significant amount of code for Google/Amazon is Java and Microsoft uses C# for a lot of infrastructure.