r/cpp • • Oct 30 '25
Octoverse 2025 Github survey is out
https://octoverse.github.com/ 2025 survey is out. I was surprised at couple of things
- Typescript has over taken python as most used language in github.
- C++ is in top 5 used language in 80% of the NEW repositories.
Many in the industry discourage use of C++ for new projects, still C++ is in the top 5 languages used in the New repositories in 80% of the repositories in 2025.
My guess is this is mostly because of AI/ML anyone has any other theories why is this..
47
Upvotes
5
u/pjmlp Oct 30 '25
Because regardless of the warts and security issues, it is still much better than plain C code, and there is a whole infrastructure of compilers and language runtimes that isn't going to be rewritten any time soon.
Even if in many cases it is possible to bootstrap compilers, in many cases it is a path not taken as development resources are limited and language authors rather focus on the programming language ecosystem itself, than the bootstraping effort.
Additionally there are so many domains where it is still either C or C++ (and I rather use C++ in such scenarios), e.g. HFT, HPC, embedded, GPGPU, Khronos industry standards, POSIX, ....
Hence why alongside my use of managed languages, I would rather have a safer C++, than throwing away all this investment.
32
u/Seppeon Oct 30 '25
It's a versatile and expressive language. It is the backbone of a great many things and has reasonable tooling support with everything except packages(and I like conan) and build systems.
Things can be annoying to strap together but once working it's a fixed cost and the rest is history.
19
u/megayippie Oct 30 '25
Nice read. A bit shill for AI, but a nice tool is nice.
I want to recommend folks to read the glossary. I probably write 95% C++, 4% python, and 1% others. But most of my PRs use both C++ and python because I change some python as it is our scripting engine/integration tests. By the glossary, my code is equal parts python and C++.
2
u/aregtech Oct 31 '25
I think it’s simpler than it might seem.
The biggest problem isn't the language. C++ is well known for its power. Otherwise, no new language would be compared to it. The real challenge is human resources: finding devs who can keep up. C++ evolves so quickly that even experienced devs struggle to adopt all the new features, which naturally makes decision makers nervous.
Projects that were proud to be early adopters of modern C++ (C++11) now are outdated. You can't really compare C++11 with C++23. Read the docs and you'll even see things marked "removed since C++20/C++23". Projects started with C++17 already feel "old". This gives the impression that companies must rewrite code or even change the architecture every few years, which is simply impossible.
Developers also feel the pressure. Nobody wants to work on a project stuck in C++11, C++14, or even C++17 because it might make them less competitive. Devs want to try new features and understand modern standards. This may explain why C++ is used in 80% of new repos. Maybe they simply want to try new standards? Look around. Is your project using coroutines? No? Wouldn't you like to try them to have better experience?
What I want to say? Imagine a project that is frequently changing requirements. Result: no product. This reaction is normal. The market is healthy. Once C++ stabilizes and stops changing so radically, things will calm down. We are in a phase to pass through.
33
u/[deleted] Oct 30 '25
Because c++ is battle tested and UB and memory safety are not as big a concern in industry as people on here would have you believe. Nobody in management has ever breathed a word of it in the 10 years I've worked at my shop, if they even know what it is.
Rust is the only real alternative to C++, and while Rust may be better than C++ on paper, in reality very few people know or have heard of rust, comparatively, so finding people who can code in rust is a challenge. Ive seen one or two rust jobs in my area and 200 c++ jobs.
As with many things, the loudest people online are almost always the smallest minority in real life. Anyone who thinks C++ is going away is probably a hobbyist and doesn't have an actual job writing C++.
9
u/I_pretend_2_know Oct 30 '25 edited Oct 30 '25
I used to be a very big Rust fan (well, I still am).
But the reality is that C++ has a huge network effect over the competition. And, if you know anything about Betamax video, Dvorak keyboards, Esperanto and other "better but failed" technologies is that network effects are very, very hard to break.
The network effect translates to a self-enforcing cycle of dependence. Managers don't switch to Rust and Zig because few programmers know those languages. And programmers don't go to Rust/Zig because managers don't create jobs in those technologies.
And this is just the beginning of it. Because there is so much C++ code around, LLMs are better at generating C++ code than they are at competing languages. Therefore, you have more C++ being generated, which reinforces the cycle again.
I hope C++ evolves towards Rust; somehow. I still love Rust. But C++ gives me remote work that pays my bills, and I am grateful for that.
9
u/[deleted] Oct 30 '25
I love C++.
Use on Arduino and ESP32 (building an emulator for HP15C), old PCs, new PCs, clusters, Cuda and supercomputers. From micro hardware to macro hardware.
Use on Linux, Windows, Mac. Even on Android phones.
I make teaching examples using procedural, object-oriented and functional programming. Three different paradigms. Some examples mix everything up...
There are classes that focus on modeling, others on solving real engineering problems, others on small optimizations and even parallel processing.
We use examples in terminal. Text mode, basic and functional.
Examples with graphs, gnuplot, QCustomPlot.
Examples with dashboards and multiple windows with Qt.
One day I use nano, the next kate, the next vscode, but mainly emacs.
One day it compiles manually, the next a simple Makefile, the next cmake.
With git and without git.
With libraries and without libraries.
With csv, jason, XML.
It has a huge range of very complete and open engineering programs. Signal processing, image processing, 3D visualization, porous media, graphs, flow in porous media, vectors, matrices, algorithms, etc., etc.
There is no limit to the fun in C++.
Every 3 years new version, thousands of videos from super top programmers. New books every year. Super active ISO.
In short, an ecosystem that covers almost everything we really need. And the flaws have been resolved.
I think C++ will be around for decades to come.
Over the years, less safe practices will be gradually abandoned. Profiles will help.
4
u/Revolutionalredstone Oct 31 '25
People who discourage CPP can be safely fired 😉
I've replaced python/js/satanic rituals with proper native at many companies and there is always pushback and it always works out great.
You can't compete with numbers, when your 1 second CPP algo takes 2 mins in python the higher ups get-it 😉
1
u/jwezorek Oct 30 '25
I find it kind of surprising that Rust doesn't show up in this report anywhere.
-5
u/seanandyrush Oct 30 '25 edited Oct 30 '25
the result excites the reader of this sub but it does not make importance of the safety or rust irrelevant or it does not mean that c++ has a bright future. just because there are much fewer job postings for rust, doesn't mean we don't use it.
0
u/[deleted] Oct 30 '25
[deleted] — view deleted comment