r/cpp • u/pavel_v • Dec 31 '25
Software taketh away faster than hardware giveth: Why C++ programmers keep growing fast despite competition, safety, and AI
https://herbsutter.com/2025/12/30/software-taketh-away-faster-than-hardware-giveth-why-c-programmers-keep-growing-fast-despite-competition-safety-and-ai/
380
Upvotes
66
u/ChuanqiXu9 Dec 31 '25
I'm curious about how the number of users for each programming language is measured.
68
u/pjmlp Dec 31 '25
He just forgot to mention we are one compiler short for C++26, and most of us either use C++17, or are now slowly moving into C++20.
Also that due to market pressure, NVidia now supports writing CUDA kernels directly in Python via the new MLIR JIT introduced at GTC 2025.
25
u/kronik85 Dec 31 '25
In college I remember only a few quotes.
One of them was our department head saying there will always be more jobs in software. A single electrical engineer can produce hardware that supplies a hundred software developers.
That day I decided to lean in hard on the programming.
Wish I kept my electrical skills sharp, but I don't regret focusing programming.
73
u/winterpeach355 Dec 31 '25
Modern C++ has really been getting complicated though.
33
u/misuo Dec 31 '25
+1. I’m sure Rust followers will phrase this a bit different. And why not push C++29 for being future ready rather than hold to allow for catch up?
14
u/all_is_love6667 Dec 31 '25
I am french, good C++ scores on senior tests, still out of a job
17
u/Kobzol Dec 31 '25
> Why are vulnerabilities increasingly not about language issues
Because most software these days gets written for the web - notice how many of the top CWE issues are related to web applications? And in that domain, memory safe languages prevail (JavaScript/TypeScript on the frontend and C#/Java/Kotlin/Python/JS/TS on the backend), so in absolute numbers the vulnerabilities that have nothing to do with memory safety win. If most frontend/backend web applications were written in C or C++, you can bet that OOB, use-after-free and similar would occupy the top vulnerability spots, easily.
Btw, I think that the SlashData statistics are not very useful nor accurate (even though they favor Rust, and I like Rust, but it's still good to acknowledge this). IIRC their numbers are gathered by sending some questionnaires over the e-mail and extrapolating heavily based from that. I wouldn't base many assumptions based on their numbers.
8
u/kronicum Dec 31 '25
Yay C++!
But also this feels like yet another EoY zusammenstellung blogpost.
15
u/Fract0id Dec 31 '25 edited Dec 31 '25
The continual downplaying of C++'s memory safety issues is a mistake imo.
Well, if only a small fraction of new code is written in memory-unsafe languages, having 30% of the most common CVEs still be due to memory unsafety seems bad no?
I'd say most of the reason for this shift is precisely because of the increased dominance memory safe languages. If all code was written in C or C++ we'd probably see a huge uptick in memory-related exploits.
This just isn't supported by the data. If we look past the one cherry-picked stat in the Mend.io article, they show a breakdown of the most common types of vulnerabilities attributed to each language. And what do you know, it shows that for C++ around 70% of the CVEs are attributed to memory unsafety. This is a number that has been corroborated by multiple large organizations.
This use of misleading stats just feels like more burying heads in sand to avoid the growing concerns of memory safety. If there's anything that can kill the language, it will be the refusal to engage with the empirical data and properly address this issue...
5
u/InitialNo7695 Dec 31 '25
Well said @herbsutter
4
u/zl0bster Dec 31 '25
too bad I do not live in global, in all countries that I would be interested to work in number of dev jobs is flat or stagnating
this is assuming those numbers are even correct, which I doubt
6
u/JuanAG Dec 31 '25
I wouldnt say C++ is growing fast precisely...
And we can even see for ourselves here, not so long ago, 3 or 4 years this place was full of life, normally you had to go to page 2 or even 3 in some days to read all the new content/threads, from day to day. Now the main page has post from almosth a week, i still miss that days...
Dev ecosystem is growing, i cant deny data, it is what it is but extrapolating that because the world wants more code means it also want more C++ code doesnt need to be true, could be but i dont think it is the case, unfortunetly
Also i dont know how to put in nice words but i will try, Microsoft, a really important company in the C++ world decide not so long ago to "let go" a top C++ developer, Herb itself, MS wouldnt do anything like that if they believe C++ will get more popular in the future, he knows first hand how things are going or turning
.
Not to mention that blaming C is not a good move, for 99.99% of people C++ is "C/C++" so the issues of C are also the issues of C++
3
u/Crierlon Dec 31 '25
Great article.
On the topic of Rust he brought up.
For me it’s more about cargo than memory safety as modern C++ solves most of the issues. Not as good as Rust but good enough to not justify a rewrite if you have a large codebase and the team doesn’t get a DX boost.
Cargo makes managing library’s and build systems a breeze. Unlike the whole CMake mess. There are attempts at this but none come close to Cargo IMO.
Both languages will coexist. I do rust and C++ when I need glue code.
3
u/[deleted] Jan 01 '26
Sometimes I feel that the "people of C++" are living in an alternative Universe :)
Sure, in a survey somebody will say that he/she is learning C++ but the truth of the matter is that, most companies that were heroes of the language are leaving the language behind (Google, Microsoft, Adobe, Nvidia, etc) and I think this is something we should all take very serious.
There's also the focus of "Reflection will dominate the next 20 years", "feature X is coming while feature Y is not well understood yet", etc... The reality is that, most C++ codebases are legacy and one should consider himself/herself lucky if him/her is even able to use C++17 on those codebases!
2
u/_a4z Dec 31 '25
These numbers are BS.
Why do I know?
Look at the job openings during 2024 and 2025 (e.g., here in this r/cpp but also other places)
They 'grew' exactly the opposite way, and that seems not possible if those numbers from the report are correct, or?
1
u/PoL0 Jan 02 '26
we've been short on developers for decades, and still are. and AI won't change that.
AI is the hype nowadays because of the money involved, so the discourse heavily shifted to AI (we get C-level parroting the acronym every two sentences). but that doesn't change the fact that developers are still needed.
1
u/GrabSpirited1056 Dec 31 '25
I’ve been Java and Go programmer for years. I got into C++ last year and loved it. I was sick of GC and wanted to have full control over memory. I can definitely see the argument against memory safety especially if programmers are reckless but if you know what you’re doing, I find it pretty manageable. I didn’t want to use Rust for mainly two reasons. Google Cloud which is the cloud provider we use, doesn’t have Rust client libraries and I didn’t like the idea of borrow checker. If I want to get rid of GC, I can manage my own memory and try to master the C++ and do not leave any gaps.
What I despise about C++ is package management. For example, I really just wanted to stick to CMake only but it’s almost impossible to build Google Cloud libraries from scratch. It has to many dependent libraries. I had to choose VCPKG + CMake path.
0
u/Beautiful_Vacation_7 Jan 01 '26
We tried C/C++ with AI. We laughed. AI ain’t replacing us anytime soon. We can keep writing our garbage code for a few more years.