C++ needs to catch up

simonask 323 points 339 comments December 01, 2026
www.vinniefalco.com · View on Hacker News

Discussion Highlights (20 comments)

pjmlp

C++ had a sweet frameworks spot when I learnt, Turbo Vision, Object Windows Framework, MacApp, PowerPlant, CSet++, Motif++, Tools.h++, POET,... The ISO C++ group decided on a bare bones standard library for C++98, a thin layer on top of POSIX, with iostreams, and a last minute addition of Stepanov's HP STL on top, that only became developer friendly with C++11 lambdas instead of C++98 functor approach with operator() overloading. To this day people are fighting to add into the standard library, basic stuff already covered by those 1990's C++ compiler frameworks, like string handling, networking protocols, UI frameworks,.... If only we had some kind of package management systems that could sort it out instead, and we do, but since ISO C++ does not acknowledge their existence, neither do most C++ shops, each project keeps their own approach, thus library writers have to decide with bubble their want to sponsor, or neither of them, leaving the integration challenge to the users themselves. However, how much of this is still relevant when we have a tiny offshore team inside our graphics card, remains to be seen.

filipdobro

> Dependency friction in C++ is so punishing that authors advertise “header-only, zero dependencies!” This article kinda sums up all frustrations I have with C++. Vcpkg seemed like a good fix at the time, but it needs so much more improvement and adoption. A lot of good solutions to the raised issues in the article require us to rip the bandaid off, however I believe the community built around C++ has built their systems around the premise that it must remain stable and predictable.

im3w1l

One approach to consider for C++ would be for the community to adopt nix as the unofficial package manager. I think it could work very well for this. AI is like a gift from heavens for Nix, much more accessible now that you can ask for help with changing your config. And if you are a windows shop, maybe try wsl out its pretty good. > Wiring axum, reqwest, serde, jsonschema, and rmcp takes 300 lines of idiomatic glue and compiles before lunch; Ironically I have much higher expectations nowadays. When telling a model to make a hello world-tier project with some technology I expect it to add the dependencies compile and run in like 5 minutes tops

attila-lendvai

i used to know everything about C++... what a waste!

tontinton

Or not? who cares about deprecated tech?

nly

C has most of the same problems raised in the article. You'll notice there's no "C SDK" on all those third party SDK lists either. There's no universal package manager for C. No standard library worth a damn. My personal view is APIs and behaviours should be standardized, not libraries. In that respect C++s efforts to figure out universal async I/O is a noble one unmatched by other languages. And it's a hard problem. That's not to say it hasn't gone off the rails. The Sender-Receiver model has never 'clicked' for me. I think the ideas is alien and overly abstract and I've never seen anything elegant fall out of it on a single page. Coroutines on the other hand make sense. The C++ language implementation of them is elegant and versatile. std::execution is a verbose mess. At my employer pretty much all of our code is C++ and threads aren't used anywhere. As a result, I/O tends to go through our own APIs written to use an Linux ioring backend behind C++ coroutines, which yield to our own main event loop.

mk89

My experience with LLMs: by default they choose Rust (backends, clis, etc.), Javascript (front-end), or Python (scripts, etc). . It's hard to catch up when new software is vibecoded.

throw93933944

I tried Rust for GUI dev (mainly QT) and quickly gave up. With LLM there is no need to migrate from C++ or Python, I barely read code, and it is memory safe by code audits. I do not want to fight with half baked alpha quality libraries and bindings.

3form

Seeing the article title I was wondering, why do we need C++ to become another language like the others? After opening the article, to paraphrase: "we need it so that it's easier to write the code that doesn't need reading". I would say that if that's the premise, why would anyone need C++ to begin with? Just write the whole thing in Rust then like you did? There are many good changes mentioned and many I would like to see happen, but just because they are good changes, not because the language should work better with AI.

IshKebab

Let it die.

locknitpicker

As a long time professional C and C++ developer, I completely agree with the blogger's sentiment, particularly about Rust's value proposition. Contrary to the talking points parroted by the infamous Rust fanboy community, the borrow checker and vague notions of "security" are not Rust's key feature. What makes Rust stand out is it's improvements in developer experience. Part of this is Rust benefitting from decades of lessons learned in ergonomics and API design, part of it is providing a packaging system that is simple and just works. If you make people's lives easier, they will use you to solve their problems. There is no merit in making life difficult. The cliche is that the OS's package manager is C and C++'s packaging system. Whenever anyone wants a C++ library, they just run deb/apt/rpm/apk and they have it. But this sucks. Then there is Conan and the like, but they are far from dominant. So ultimately C amd C++ developers are faced with the prospects of having to distribute and consume their libraries as standalone source packages and build their own. This sucks. Where in Rust you'll just cargo your way into a dependency. Easy.

gignico

Those are all the same reasons why I switched to Rust after 20 years of C++. Not the borrow checker, even though it’s fine to have. Pattern matching and ADTs would be also appreciated these days…

rbnafo

One thing open source taught is that you don't need ISO committees to produce good, maintainable programming languages. C++ spent too much on bureaucracy and stopped being pragmatical. Nowadays only existing codebase prevents projects from moving to Rust.

r_lee

You can either wait for all this to be addressed by the 50 C++ ISO committees, where they all come together and start making massive changes in the next year or so as the landscape is moving so fast or you admit that this is a sinking ship, or rather a ship that no longer moves and you move onto the thing that actually is built from the ground up for modern practices, has a package manager, doesn't have a spec of CMake hell, just works, is heavily backed by the industry now, and overall probably has better ergonomics when taking into consideration the vast ecosystem I think it's naive to think that this stuff will come together in time, or to try to force it to work when clearly it's just a fundamental issue and a limitation due to how C++ was brought up C++ is now a niche language, and that's okay

Eji1700

> C++ still owns bare metal, low-latency trading, game engines, GPU inference kernels, and decade-spanning binary ABI stability I wonder how long many of these will last. AI is absolutely a predator to C++ not a benefit as the author notes, at least in my untrained eyes. Any language that gives you consistent “pythonic” standards and compile time “if it compiles it runs” guarantees (or tries to) seems to perform VASTLY better with AI than the ones that can’t. C++ has, as an outsider who’s talked to C/C++ coders and written less than 1000 lines, felt like it decided “yeah but if you want fast on bare metal you’ll put up with it” and left it there. Rust was designed to come for that lunch and it sure seems like that time is upon us. I’ve no doubt that the most performant code may still be theirs, but if it’s not on a rocket it’s probably going to be Rust not C++ sooner than later. With that in mind I’m extremely curious how much longer it’ll be the standard for games. Yes if you want cutting edge graphics and physics you’re going to be managing your memory and might as well go deep, but as more and more of my backlog looks like Probably Stolen or say more “demanding” Caves of Qud or Nuclear Option i wonder where that line starts to blur. Given the whole “shipping” goal I don’t see the next generation reaching for something so “hostile” when good enough and easy to work with get the job done and don’t have “must trade every nano second” needs

dist-epoch

C++ is the walking dead. Like COBOL, it will live forever, but nothing new will be developed in it.

jillesvangurp

I'm kind of curious to see if somebody will come up with new languages and tools that are optimized for LLM usage. Rust and Go accidentally go in the right direction (strong typing, good development tools, etc.) but they are still optimized for people writing code manually. If you let go of that, the requirements could change. It seems to me like a logical next step to start engineering tools and languages for a world where we don't have people tinkering with code bases anymore. What matters when working with LLMs is fast tools, strong typing and safety, etc. You want fast feedback loops that catches/pre-empts a lot of issues. The cliche of a Rust program that compiles probably working as intended is one of the big reasons it works so well with LLMs. But modern languages also have a lot of the syntactic sugar that makes things nice for people (sometimes at the cost of adding ambiguity) that is less relevant for LLMs.

motbus3

It is probably a skill issue, but it is much harder to learn c++ today. You can read Stroustroup book and still got no idea on lots of important features. I am not fond of this model to update the language every 2 years without providing resources to properly use it. If are a cpp veteran you probably can find your way, but if you are not, it seems to me that the language makes the path to become one much harder now.

topspin

I think an example of non-dysfunctional C++ that supports the arguments in this post has to be what Espressif has done with ESP-IDF. Much of the power of that platform is found in the working package management, endemic CMake, FreeRTOS batteries and uncompromising CLI tooling. These work together smoothly and much of the workflow that the post wishes existed for conventional C++ is found in ESP-IDF. AI absolutely thrives in ESP-IDF. It isn't flawless. Builds can take longer than one would wish, for one thing. But you can haul in a dependency with one line of CMake, use whatever FreeRTOS facilities you need to do whatever you need done, build, flash and it "just works." All I know is that if non-embedded C++ worked like that, C++ would be in a much better place.

tonyhart7

"C++ is the language of AI because PyTorch, TensorRT-LLM, CUDA, and llama.cpp run underneath" ok, this is sad

Semantic search powered by Rivestack pgvector
4,908 stories · 45,036 chunks indexed