Software-testing firm Tiobe, which maintains a monthly tracker of the popularity of the vast array of programming languages available to software developers, has picked C++ as its programming language of 2022.
Despite it being placed third in Tiobe's January 2023 index, the popularity of C++ rose faster than all other languages last year, up by 4.26% compared with January 2022, the company said.
Runners-up this year were C, the second most popular language, which grew in popularity by 3.82%, and Python, the top language, which grew by 2.78%. Having fallen from third, Java is now in fourth place, growing 1.55%.
"The reason for C++'s popularity is its excellent performance while being a high level object-oriented language. Because of this, it is possible to develop fast and vast software systems (over millions of lines of code) in C++ without necessarily ending up in a maintenance nightmare," says Tiobe CEO Paul Jensen.
He also attributes C++'s rise in popularity to the relatively recent C++20 update in December 2020. This is the latest version of C++ to be standardized by the International Organization for Standardization (ISO) and introduced interesting features, such as modules. C++ was created in 1985 by Danish computer scientist, Bjarne Stroustrup.
C++ is the main language used to build Chrome and has been a key language, along with C, for the Android Open Source Project. C++ is also popular in systems programming, the automotive industry, the finance sector, and games development.
In terms of the Tiobe index, Jensen notes C++ gained in popularity when the C++11 standard was published in 2011, marking its first major rise since 1998.
"The adoption of this new standard [C++11] took a few years because there were no C++ compilers available to support the new language definition. Because of C++11, C++ was slowly going uphill in the TIOBE index after having been in a constant decline since 2001. The second land mark is the recent C++20 publication," notes Jensen.
Jensen also notes that C++ rival Rust entered the top 20 again (being ranked at number 26 one year ago), but says that "this time it seems to be for real", suggesting it could now hold a stable position in the top 20.
Rust's profile shot up during the past year after it was officially adopted for the Linux kernel version 6.1, clearing its way for drivers to be written in Rust.
In many ways, C++ is an interesting choice for Tiobe's language of the year. Mark Russinovich, CTO of Microsoft Azure, said recently that developers should avoid using C or C++ in new projects and instead use Rust because of its memory safety benefits, even urging the industry to declare those languages deprecated.