nearly a quarter-century later, why is c++ still so popular?

  • 29 Jul 2021
  • 61
nearly a quartercentury later why is c still so popular
Despite C++s downward trend on the TIOBE Programming Community index since 2001, the languages fall from the coveted top two slots in 2020, vociferous and persistent claims that C++ is dead like COBOL , and the inroads the Rust is making in developer circles C++ is still as viable, vital and relevant as ever. Theres no arguing with the languages ongoing popularity. The numbers are clear in the June 2021 TIOBE index C++ is the fourth most popular programming language on the planet, grabbing almost 7.5% on the index, and nipping at the heels of C, Java and Python. While its true that this is a drop from the languages TIOBE peak of nearly 18% in 2003, C++s popularity remains undeniable. How and why can a programming language standardized nearly a decade before the first iPhone was released remain relevant in the age of cloud and high-performance computing? Lets take a look Still popular, still relevant What are the core reasons behind C++s continuing mass-market relevance? Performance, speed, maturity, and more: Performance - C++ remains the gold standard for high-performance software. Adobe uses it, the Unreal Engine is based on it, and so are Chrome and Firefox. Speed At a time when processing speed remains a bottleneck, C++ is still used to create some of the fastest software on the market. Maturity Although this may seem obvious, the fact that C++ has been around for nearly 40 years means that most software problems have already been addressed. Ecosystem C++ is a core part of most programming curricula, and boasts a huge collection of dev tools, third party components, libraries, manuals, and more. Embedded Most embedded systems, not to mention IoT devices, are powered by firmware written in C/C++. Not just legacy Its true that there is also a strong element of legacy usage powering the continued relevance of C++. Many C++ projects that started decades ago (or projects that started in C++ precursors like C) are still running today. And were not talking about trivial stuff. For example, UNIX, Oracles MySQL, the Linux Kernel, Microsoft Office, Microsoft Visual Studio, and even some of Apples OS X all were written in C++. Yet beyond legacy projects, C++ dominates much of todays greenfields (new development projects), as well. C++ is the predominant language of gaming powering the Unreal Engine and many of todays biggest and most popular games. C++ also dominates IoT, defense software, and manufacturing applications pretty much everything thats considered real time is in C++. C++ is also still used for new development in performance-intensive workstation applications like CAD/CAM software or compute-intensive server-based applications like high-frequency trading. Its used for virtual machines, device drivers, runtime interpreters and tooling. C++ also does the heavy lifting in developments of AI-driven applications, and remains a core part of Googles Android OS. And the list goes on The bottom line C++ in its fourth decade is only gaining in popularity. Newer languages like C# and Java will continue to lead the market in the years to come, yet C++ will remain right alongside. C++ is a powerful and continuously-evolving language that helped and continues to help create the foundations of computing as we know it. With its next update set for 2023, a massive developer community, and huge knowledge base not to mention best practices, external libraries, components and tools that would take decades to mature in newer languages C++ is too entrenched in modern computing to fade away.