Paul Krill
Editor at Large

C++ language rises in Tiobe popularity index

news
Jun 10, 20243 mins

C++ takes second place in Tiobe index for June, despite White House warning, while C drops to third place. Go and Rust also rise.

shutterstock 561382627 C++ programming language source code syntax highlighting
Credit: iunewind

Developers apparently did not listen to a recent White House advisory to move away from C++ and C over memory safety concerns, as C++ has climbed to second place in the Tiobe index of programming language popularity, trailing only Python. The C language dropped to third place.

C++ is the number two language in the Tiobe Programming Community Index for June, while Cโ€™s third place ranking is its lowest position ever in the index. C++ was third last month while C was in second place.

โ€œThe main strengths of C++ are its performance and scalability,โ€ said Paul Jansen, CEO of software quality services company Tiobe Software, in a blog post about this monthโ€™s index. โ€œIts downside is its many ways to get things done, i.e. its rich idiom of features, which is caused by its long history and aim for backward compatibility.โ€ Elaborating on the downside, Jansen said C++ makes code much harder to understand and maintain if everybody does something else to accomplish the same thing. โ€œThrough the years many different idioms have been introduced without deprecating it,โ€ he said. โ€œThere are still some features in C++ that nobody should use but can be used.โ€

C++โ€™s rise to second place defies a White House Office of the National Cyber Director (ONCD) report in February that advised developers to stop using C and C++ because of what the report said was a lack of memory safety. The report was written to reduce the risk of cyberattacks. The report cited the Rust language as an example of a programming language the ONCD considered safe. Jansen panned the White House bulletin.

โ€œThe US White House advice was not well-thought-through in my opinion,โ€ Jansen said. โ€œHow can you recommend Rust while there are no tools and developers yet? Moreover, Rust is a [relatively] complex language to learn so definitely not something you want to leave to โ€˜government developers.โ€™ C++ can be run in a very safe way, but of course you need to know how.โ€

C++ is heavily used in embedded systems, game development, and financial trading software, to name just a few domains, Jansen said. The White House warning about C and C++ prompted a sharp response from C++ designer Bjarne Stroustrup, who emphasized the efforts of the C++ standards committee to make C++ safer.

Other highlights of the Tiobe index for June include the Go language snagging seventh place for the first time, Rust climbing to 17th place, also an all time high, and Fortran holding on to its top 10 position.

The Tiobe index ranks language popularity based on the number of skilled engineers worldwide, courses, and third-party vendors associated with each language, which are assessed using search engines including Google and Bing and other websites such as Amazon and Wikipedia.

The Tiobe index top 10 programming languages for June:

  1. Python, with a rating of 15.39%
  2. C++, 10.03%
  3. C, 9.23%
  4. Java, 8.4%
  5. C#, 6.65%
  6. JavaScript, 3.32%
  7. Go, 93%
  8. SQL, 1.75%
  9. Visual Basic, 1.66%
  10. Fortran, 1.53%

The rival Pypl Popularity of Programming Language index assesses language popularity based on how often languages are searched in Google. The Pypl top 10 languages for June:

  1. Python, with a share of 29.06%
  2. Java, 15.97%
  3. JavaScript, 8.7%
  4. C#, 6.73%
  5. C/C++, 6.4%
  6. R, 4.75%
  7. PHP, 4.57%
  8. TypeScript, 3.0%
  9. Swift, 2.76%
  10. Rust, 2.5%
Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorldโ€™s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorldโ€™s audience of software developers and other information technology professionals. Paul has won a โ€œBest Technology News Coverageโ€ award from IDG.

More from this author