C++ Needs to Catch Up

(vinniefalco.com)

210 points | by simonask 10 hours ago ago

212 comments

  • teh 7 hours ago

    I feel almost every single point in this article. I spent the last 5 years of my life fighting c++ in a finance place. Something that should be a 20 minute job becomes 20 minutes & several hours of cmake because abseil in some deep dependency does c++ version detection and segfaults because std::string_view isn't compatible with its own version.

    What makes this worse in finance is that you sometimes only get a binary library to link against so you have to add another 2 days to run the library in a subprocess with some kind of rpc interface on top because it's not link compatible.

    I can't speak to the standardization saga but IMHO that really feels like they are arguing over areas that ultimately should be in libraries and where the exact details don't matter that much. There are interesting areas like verification (rust verus e.g.) where c++ contracts might help but by the time I'm getting value from that years will have passed when I can have 3 different tools right now in rust.

    c++ has the weight of history and many large projects like llvm etc I can really tell the dam finally broke. I am currently interviewing and number of companies now have or are starting rust teams to replace their internal c++.

    I think the author thinks it's possible for c++ to catch up but IMHO it's too late for that now. There are too many people like me who have burnt years on c++ and don't really want to go back.

    • oivey 42 minutes ago

      > Something that should be a 20 minute job becomes 20 minutes & several hours of cmake because abseil in some deep dependency does c++ version detection and segfaults because std::string_view isn't compatible with its own version.

      > I can't speak to the standardization saga but IMHO that really feels like they are arguing over areas that ultimately should be in libraries and where the exact details don't matter that much.

      The string_view issue is directly related to the lack of common functionality in the standard library. Holes like that deeply damage the ability for libraries to interoperate.

    • lenkite 6 minutes ago

      The funny thing is that after ALL that hoopla, C++ stdlib is actually smaller than Rust std. Rust has TCP networking, UDP networking, IP address manipulation, Child process management, Environment variables, Concurrent channels, Unicode-aware strings, proper Futures, limited Date and calendar operations, Lazy iterator pipelines.

      Incoming: Rust allocators, std::random, std::simd, ByteStr, ByteString, zerocopy (longer term)

      Rust just moves far faster than C++ standardization.

    • sufficientsoup 5 hours ago

      > several hours of cmake because abseil in some deep dependency

      The hours I've spent in CMake trying to get an instance of Abseil to play nice with an instance of Protobuf (which uses Abseil), an instance of gRPC (which uses Protobuf), and an instance of LibTorch (which uses Protobuf)... To this day, I don't know if my CMake was bad or if theirs was. Maybe both.

      • Vaushite 29 minutes ago

        cmake is just a wrapper that generates build commands. If it's not working for you, you can use something else

      • klodolph an hour ago

        Sounds like you’re reconstructing a snapshot of google3

    • vinniefalco 6 hours ago

      The Standardization Committee needs to get its priorities in line and solve problems that people actually have, instead of niche problems that corporations have. "Contracts" and "std::execution" are not going to help us build the tower of library abstractions.

      • hinkley 7 minutes ago

        The chances of the former happening after the latter has become common is pretty low. This is what regulatory capture looks like when it hits a standards body.

  • zarzavat 7 hours ago

    C++ is dying. The only thing keeping it going pre-AI was the large number of experienced C++ developers who had invested decades into learning the language, and I say this as one of those people.

    AI makes it easier to write new code in Rust, easier to rewrite old code from C++, and easier to exploit C++ code.

    There's no way back for the language, inertia will carry it for the next 10+ years but its eventual irrelevance is a certainty.

    • fwsgonzo 7 hours ago

      Indeed. I've converted one of my projects to Rust via LLMs and it was completely painless and ~same performance. LLMs found a swathe of issues that I ended up porting back as well. I still maintain the C++ library, but it's mostly for my own and existing usages now. I think newer projects will be looking for the Rust crate. I've also noticed that LLMs are doing better with Rust overall: Building, testing, formatting, linting and publishing is all standardized. As it should be.

      LLMs are quite good at hand-written assembly though, so my C++ library still has a large lead for platforms where that work is done. I can probably port that to Rust as well, but I did start out with forbid(unsafe).

      • roflcopter69 7 hours ago

        I remembered your username, hello libriscv guy, cool to see you posting here! I suppose you are talking about https://github.com/libriscv/libriscv-rs ? Cool to see it!

        • fwsgonzo 6 hours ago

          Yes, that's the one. Here's a benchmark I did on the performance: https://github.com/libriscv/libriscv/releases/download/v1.22...

          The Rust version is currently middle of the pack. But it's in my view a success. The trick to getting good performance with tailcall dispatch in Rust is keeping the argument list low enough to fit in the calling convention, on stable. For nightly the "become" keyword is faster as I can put a few things in the stack frame to speed things up even more.

          I'm not sure how to improve the Rust performance anymore than this, other than trying to go for cheap wins in the bytecodes themselves. The only big lever left is hand-written assembly, which I may have mentioned exists in the C++ version, hence the outrageous performance.

      • oreally 5 hours ago

        bad mistake. would have been more productive to use that LLM to rectify your c++ instead.

        • fwsgonzo 5 hours ago

          The emulator is fairly "complete" right now, I'm not aware of anything that needs rectifying in the sandboxed-supported paths. And the performance is already best in class. I don't think it needs constant changing unless there's a reason?

    • jmyeet 12 minutes ago

      This is my belief as well.

      We’ve seen recent examples of fairly rapid complete rewrites into other languages using AI. That’s only going to get better.

      Rust isn’t a panacea but it solves a class of critical problems around memory safety and concurrency. AI has made those factors even more important. At the same time AI makes Rust easier to write, which has always been an issue.

    • dmead 17 minutes ago

      Disagree. It was dead, but now C++ is now back on the table. If you want to write tight loops, rust is still slower on almost every benchmark. The ownership model is interesting, but it's also something you (kinda sorta maybe) can just do as part of a test process in c++.

      I just vibe coded a video processor in c++. it got really great performance compared to a commercially available thing in C#. I had hoped to be able to port it to rust for safety. No matter what I did it was always a 10-15% penalty. I settled on running TSAN and ASAN as part of the testing cycle.

      The surrounding UI can definitely be rust, but as far as the hot paths for moving frames around, no.

    • ChrisRR 7 hours ago

      I can't see it going anywhere soon. The amount of existing projects in C++ still need developers

      • neuwirth 6 hours ago

        We live in a world where the labs are still training on Fortran! If Fortran hasn't gone C++ won't either. So no, it isn't going anywhere soon, just by nature of being an incumbent.

        • tialaramex 6 hours ago

          What labs?

          We have some of our country's most powerful supercomputers, and the people supervising them don't know any Fortran. Last century's Fortran books from their predecessors are still here, but "My Fortran doesn't work" is going to get you the same odd stares as "Why can't I pay with farthings?" or other stuff that hasn't made sense for decades. [The farthing is about ÂŁ0.001 and thus it was already basically worthless when it was formally demonetized in 1961]

          • dheck an hour ago

            AFAIK Fortran is still heavily used in the physical sciences, from particle simulations to weather and climate models.

          • bena an hour ago

            R is partially implemented in Fortran.

            So while no one where I work knows Fortran either, we have people who know R and so are dependent on Fortran by association.

      • windward 6 hours ago

        What kind of existence? COBOL and Ada 'exist'.

        The machine already knows the CPP core guidelines better than any human, so you won't be able to drop in on a project as a consultant just from knowing the language well.

        There's a project I once worked on that would be unfeasible to rewrite because there is so much unwritten about how it should perform - there are too many features and targets to test exhaustively. But that company already did layoffs pre-AI, because it already didn't take many devs with domain knowledge to keep it ticking. That project won't demand much language support and an industry of these projects won't be desirable to work in.

      • trinix912 7 hours ago

        They've been saying C++ is dying for decades now but it's still here with (almost) all its problems :)

    • hinkley 4 minutes ago

      Unfortunately people have been saying that for three decades now and my popcorn has gotten stale and been replaced half a dozen times waiting for Stroustrop’s albatross to be buried.

      Anders has created or built four programming languages in less time than Bjarne has been Sunk Costing his one and I wonder sometimes where we would be if he had given up and started over.

    • teddyh 2 hours ago

      At least C++ has an ABI and can produce dynamically linked executables and libraries.

      • lenkite a minute ago

        C++ officially does not have a documented ABI. The ISO C++ standard intentionally omits an Application Binary Interface (ABI), leaving binary-level rules entirely to compiler vendors and operating systems.

      • flohofwoe 25 minutes ago

        ...I guess you're thinking of C? There is no standardized C++ ABI and most likely never will be (you can't take a DLL built with one C++ compiler and expect it to work with an executable built with another C++ compiler (or even a different version of the same C++ compiler, or even just different compile options), unless the DLL exposes a plain C API.

        • simonask 10 minutes ago

          C++ compiler vendors actually go to really great lengths to ensure that you can at least use the library if it was built with the same brand of compiler and the same standard library.

          This used to be a much bigger problem, but it really isn't today.

    • gambiting 7 hours ago

      It's still the most popular language for writing video games in, and it's an industry larger than films. C++ isn't going anywhere, unless Sony/Nintendo/Microsoft somehow provide SDKs for anything other than C++. But they can't even provide non-windows compilers for their toolchains, so I won't hold my breath.

      • fwsgonzo 7 hours ago

        And this is a problem why? As if an LLM couldn't make an SDK in < 1 day for any of these? Maybe I'm missing something, but I have a game project that publishes for homebrew Switch and PS5. Currently playing my game on my TV. The toolchains are nothing special, just the same old LLVM libc++ (maybe with musl for static) with some custom stubbing to "virtualize" filesystems and what not, since I did use std::filesystem for desktop clients. I have no idea why you couldn't do the same in Rust in less than a day, even without LLMs. Sure, you'd have to understand toolchains and some low-level library things, and BSD-isms (SIGSYS begone!).

        You can also mix things up. I had OpenGL for the login screen for a while, and Vulkan for in-game. No particular reason other than a transition.

      • roflcopter69 7 hours ago

        https://akaganite.com

        Just saying. C++ will soon have no moat in video games anymore.

    • jibalt 7 hours ago

      You seem to have missed a few things in TFA, as well as the amount of deployed C++ code and the number of installations, not just developer count (which is also massive).

      • zarzavat 5 hours ago

        The transition will take a very long time, but it's happening. Deployed code will get rewritten by AI, nobody wants to maintain an insecure C++ codebase in 2026, it's too much of a liability for anything not airgapped.

  • nly 9 hours ago

    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.

    • whizzter 9 hours ago

      Kinda disagree here about the "elegantness", superficially it's an elegant abstraction to unify generator-like coroutines and "tasks".

      In practice it's bad, a generator (co_yield) is often an encapsulated object that will have a non-deterministic lifetime, thus it cannot be put into a fifo.

      "Tasks" however (co_await / co_return) often live on a stack-fifo that could've been mixed with partial bump-allocators to allow pointer-stability for the stack-frame (there is kind of the machinery via the new overloading for the promise), but due to varying lifetimes it easily becomes a mess (Looked at some other task library that seemingly had low allocations like this but it feels like the entire machinery can easily break with "careless" usage).

      And I think that's a part of why std::execution feels like a mess, it tries to make coroutines in task settings more "usable" for those writing things around tasks, but it doesn't really decide on a coherent direction for tasks (since the language primitive was left too abstract/messy).

      • Vaushite 27 minutes ago

        C++ coroutines are always heap-allocated, precisely because their lifetime is so hard to predict.

      • BeeOnRope an hour ago

        Well LLVM supports HALO optimization can remove frame allocations when the coroutine lifetimes are suitably nested, though you need to apply some specific annotations to assert this is safe in a given context before it will kick in.

        > there is kind of the machinery via the new overloading for the promise

        Any details?

      • nly 9 hours ago

        I'm not too familiar with generators. I've never really had much use for them. I've used co_yield once successfully to interleave two separate tree recursions in lock-step and I don't remember any issues.

        It's also not at clear to me why you'd want to put a generator into a fifo. Any succinct code snippets that demonstrate the issue?

    • silvestrov 6 hours ago

      I think C and C++ always have suffered from wanting to support all kinds of weird architectures like 9 bit bytes and 80286 style segmented memory. So many people see this as a virtue rather than restricting the usefulness of C.

      So char always means "byte" and never a real character. I don't think many C programs will work well if char is a 32 bit type so it supports full unicode.

      int8_t came way too late and has a way too long name. It should be i8 or int8. There is a problem when C is more verbose than Java. Also: why did it take so long to get a boolean type and fix the "bools are ints" design mistake.

      Lack of standard libraries and module system is just another layer of not wanting to standardize things.

      • foldr 6 hours ago

        >I don't think many C programs will work well if char is a 32 bit type so it supports full unicode.

        That's not really how unicode support works. It can be useful to have a specific type for storing unicode code points (like Go's 'rune' type), but strings are generally UTF-8 encoded these days, so having a wide char type plays at most a marginal role in a language's unicode support.

    • jayd16 an hour ago

      I think you touched on the main issue but blew past it. There isn't a simple, universal package manager solution.

      You can have all the standardization in the world but if you can't trivially swap one implementation for another then what's the point?

      I also feel this is self fulfilling. If there's no simple way to pull in libraries then why worry about being compatible anyway? Every codebase has its own quirks and build setup and macros. Why not? There was no simple tool they broke by making those choices.

      • bluGill an hour ago

        If you can swap out the implementation then that means you can't mess with the API.

        I feel like this is really a commentary on how young rust is as a language that this issue hasn't been important yet. It takes a long time to realize an API is a mistake.

        Note that I said API not ABI above. ABI is a different category of problem.

    • ghosty141 6 hours ago

      > C has most of the same problems raised in the article

      Correct but I'd argue almost nobody builds desktop applications in C anymore and the places where C is the most common (embedded) they built full on frameworks including package managers around them.

      • Vaushite 26 minutes ago

        No one does it, but I did do it recently and it was like a breath of fresh air being outside all these frameworks. Of course it brings problems that you don't have in a framework, too.

      • banktops 6 hours ago

        The one I know about has stuck around for 30 years, no one has been able to replace it. Many have tried, all failed. It’s just too big to fail.

        • ghosty141 6 hours ago

          I don't disagree that C is here to stay, I'm saying that C is in a different position than C++ where its shortcomings don't matter as much.

          If you write any daemon that uses jsonrpc for example you immediately pull in 100k+ loc of dependencies just to get off the ground (json via nlohmann, a webserver, ser/de library possible etc) while for an embedded application a lot of projects itself are smaller than just the dependencies most C++ projects desktop have.

          C++ competes with Rust. C doesn't.

    • bee_rider an hour ago

      C shouldn’t suffer from these problems. It is just not a language to write massive projects with a ton of complex dependencies in.

      C will make this obvious by stepping on your toes. C++ will help you along until it has enough leverage to break ‘em.

    • vinniefalco 5 hours ago

      We have developed coroutine-native networking for C++20, and designed it to become a de-facto standard. It has no external dependencies. It does not require Boost. https://corosio.org

    • mschuster91 6 hours ago

      > There's no universal package manager for C. No standard library worth a damn.

      The package manager for C is whatever your distribution uses plus pkg-config. The standard library is the C standard stuff plus POSIX.

      • skydhash 32 minutes ago

        Yes. If you're going to be portable, wrap your code in a portable layer. Trying to fit everyone expectations is how you got a bloated environment.

        I rather love C, Perl, Python with how easy it is to fit them in any context by manipulating flags and environment variables. It's way better than Go which you have to coerce to not go online and Node.js/npm with its complicated mechanism. People talk about conflict between projects, but system packages works fine before, and you can always use containers and vms to isolate two infrastructures. Also such conflicts is always brought up by the libraries developers who break API contracts happily.

  • filipdobro 10 hours ago

    > 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.

    • mort96 9 hours ago

      I can not express how disinterested I am in using a Microsoft Visual C++ package manager. There will always be a large contingent of C++ users who won't touch vcpkg with a 10 foot pole.

      Anyway I don't understand the aversion to just using submodules. What we need is a decent standard build system, not a package manager. We have CMake which is wide-spread but garbage, and we have Meson which is pretty good but not as widely adopted. If every library had a meson.build file I'd be mostly happy with just having submodules to them in my subprojects/ dir.

      • simonask 8 hours ago

        > Anyway I don't understand the aversion to just using submodules.

        The reason is highlighted in the article: Submodules break down catastrophically for shared transitive dependencies, which means that you can't have shared "vocabulary" types outside of the standard library.

        • mort96 8 hours ago

          No they don't? You just add the shared transitive dependency as a submodule in the top-level project and express in the build system that it's a dependency in the library's meson.build.

          As a significant bonus, this makes the transitive dependencies very visible and provides ecosystem pressure for libraries to reduce their number of dependencies. This is a good thing. Other package management schemes make it a bit too easy to ignore transitive dependencies in my book.

          • simonask 8 hours ago

            I'm sure you can see how that doesn't scale without significant effort. Stuff like this is why dependency management in large C++ projects is extremely draining. And if you don't get it right, boom, ODR violation = UB.

            The end result is that many C++ projects spend a huge amount of time whenever a dependency is added or updated, so they tend to avoid it and lag behind, leaving performance and bugfixes on the table.

            Meanwhile, Cargo even supports linking multiple versions of the same dependency without issue in the same binary. It is lightyears ahead.

            • mort96 8 hours ago

              Sure, it doesn't scale to your typical node.js project with thousands of dependencies. That's a good thing.

              • imtringued 2 hours ago

                ffmpeg has 100+ transitive dependencies. I don't see what language or language package managers have to do with the number of transitive dependencies.

              • jayd16 an hour ago

                Classic sour grapes.

                • mort96 an hour ago

                  I find working with node.js projects with thousands of dependencies to be very uncomfortable, when I'm doing web stuff I go out of my way to try to avoid that for the most part but it feels like I'm fighting the ecosystem the whole way.

                  If that's sour grapes then so be it.

              • iamsaitam 8 hours ago

                "it's not a bug, it's a feature"

                • fc417fc802 8 hours ago

                  Exactly. Reading that entire exchange I just kept thinking things like "but why would you want that" and "but doesn't that lead to insecure software".

                  When I use languages that aren't C or C++ I actually audit my dependencies and I don't adopt libraries that would transitively add half a dozen to my project. The result is that I generally can't find acceptable candidates and I end up rolling my own. So I very strongly prefer to remain in the C++ ecosystem where I can check a header only solution into my source tree and just get on with life. (Related, eigen is a work of art.)

                  But if you really feel you need package management and you can't stomach cmake then consider an agnostic nix-alike or the one that your OS relies on rather than something language specific. Package management should be left to dedicated package managers. I shouldn't need half a dozen different managers pulling from their own centralized repositories.

                  • jayd16 an hour ago

                    Oh yea, it's the way every other popular language does it that is unsafe. Not C++.

                    Custom and out of date code we manually audit is better than packages that can be automatically scanned for known issues.

                • mort96 8 hours ago

                  Well yeah. When things become easier, people do it more, whether it's good or bad. Therefore, good things should be easy and bad things should be hard.

                  Having thousands of transitive dependencies in a super deep dependency graph is bad.

                  I really like Rust, but I think there's a convincing argument to be made that if you had to manually run 'cargo add' for every dependency, not just the direct ones, its ecosystem would be in a better state. Those transitive dependencies are part of your project. You should be aware of them and have a relationship with them and vet them.

                  • arendjr 7 hours ago

                    There’s lots of things we “should” do but don’t. I can agree with you that having lots and lots of transitive dependencies isn’t a good thing, but the thing is, it does remove a lot of day-to-day headaches for people and allows them to work at speeds they couldn’t before. That’s a good thing for them that they value at the expense of most other things.

                    People want results first, optimisation later. This gives them that.

                    There’s also a good argument to be made that you shouldn’t always give people what they want, but it’s easy to see why Cargo is so popular.

                    • mort96 7 hours ago

                      I agree with your premise and disagree with your conclusion.

                      There's a lot we "should" do but don't. That's exactly why I think incentives are so important. When I want to add a Cargo dependency, I should look through every dependency that was added after running 'cargo add' and vet it. But I don't, because it's so easy to not do that.

                      If I had to run 'cargo add' for each transitive dependency manually, there would be two positive effects:

                      1. I would be forced to at least be aware of which transitive dependencies I'm adding, I can't just ignore them anymore. This is at least a part of the vetting I should be doing today but don't.

                      2. It would incentivise libraries to use fewer dependencies, because each one would add extra work for the user. The C++ ecosystem has a ton of those "dependency-free header-only" libraries because both being header-only and being dependency-free makes adoption easier in C++. A similar (though lesser) phenomenon would affect Rust if Cargo made you manually add each transitive dependency.

                      • simonask 6 hours ago

                        Pious suffering is not a virtue.

                        We're trying to get thing done, here.

                        • mort96 5 hours ago

                          Where did I advocate for suffering and not getting things done

                          • simonask 5 hours ago

                            In your entire comment?

                            You're taking the baffling position that managing dependencies should be hard, tiresome, high-friction.

                            You're free to suffer on your own, but the rest of us will absolutely move on.

                            • mort96 5 hours ago

                              I disagree with your characterization. I have laid out my argument. Can you kindly either fuck off or explain which part you think is incorrect?

      • quietbritishjim 8 hours ago

        > Microsoft Visual C++ package manager

        vcpkg is certainly created and maintained by Microsoft.

        But it is not for Visual C++. Visual Studio build tools is supported, and it's the default (but not only option) on Windows. But it supports other platforms and build tools too.

        • mort96 8 hours ago

          The "vc" in "vcpkg" stands for Visual C++.

          • pjmlp 8 hours ago

            Because that is where it was born, and the team that owns the project.

            • mort96 8 hours ago

              And it means it's completely uninteresting in my eyes.

              • pjmlp 7 hours ago

                Nowadays that will cut out plenty of open source projects, given Microsoft sponsorship.

                • mort96 7 hours ago

                  Which other interesting projects are called Microsoft Visual C++ anything? I'm not sure I've seen any that piqued my interest

                  • pjmlp 7 hours ago

                    Ah so Microsoft can sponsor whatever they feel like, just not prefix the name with vc.

                    • mort96 7 hours ago

                      Why do you think I would care about a project receiving money from Microsoft? I don't love Microsoft-owned projects and I especially don't like Microsoft Visual C++ but if Microsoft just wants to give a project some money, why would I care

                      • pjmlp 6 hours ago

                        Because usually we get this attitude, "And it means it's completely uninteresting in my eyes.", while at the same time it gets invalidated by using other technology exactly from the same company.

                        • mort96 6 hours ago

                          By "from the same company", do you mean "projects run by Microsoft" or "projects which Microsoft sometimes gives money to"? I avoid the former as much as is reasonably possible, while I truly couldn't give a damn about the latter as long as it doesn't result in undue control.

                          If I wanted a package manager, I'd have to pick between the Microsoft Visual C++ package manager, and Conan. There's no world where I pick the Microsoft Visual C++ one over Conan.

                          But it happens to be the case that I haven't felt the need for a C++ package manager. I'm happy using a combination of system packages, vendored dependencies, submodules, meson subprojects and meson wrap files.

                          I do sometimes use Typescript because there's no reasonable alternative and the advantage of having type-checked JavaScript outweighs the downside of using a Microsoft language. So there's that. Every choice has trade-offs.

      • classified 2 hours ago

        The Conan package manager is cross-platform and just what the doctor ordered for C/C++.

        https://conan.io/

        • mort96 2 hours ago

          I still don't see why I would want it. Any project which includes a meson.build is super easy to just add as a submodule.

      • mirmor23 4 hours ago

        > We have CMake which is wide-spread but garbage, and we have Meson which is pretty good but not as widely adopted

        If it works for you use it. Just because meson looks very usable to you, it does not mean others have to adopt its opinionated bullshit and irrelevant approach.

        Meson and Cmake are both there to solve user's problem, not expose users to all their dirty laundry dressed up as 'design approach'. Since both have their bullshit buckets full, it just depends on user's familiarity and personal preferences.

        I dislike Cmake, and many years ago I watched videos of Pakkanen about build system design, and was impressed on what the video was conveying meson could do. Then I tried to implement meson on a firmware project. The project was still evolving, and the kind of babysitting and project reorg I had to do to pacify meson was more than the language bullshit that I had to deal with cmake. cmake has generator expressions and interfaces, so one could easily build for say stm32 and posix target with the same project tree. meson, if i remember, does not allow such config.

        Long story short, went back to cmake, and with llm it is not even an issue. meson would be a non issue with llm too, but what surprised me the most was the theory of the videos by Pakkanen and the impl bullshit one had to deal with Meson on twisting the project into meson's well-of-wisdom. That might be one of the reasons why nobody adopts meson.

      • duped 4 hours ago

        > what we need is a decent standard build system, not a package manager

        These are the same thing and the more you reject it the more you suffer

        • mort96 4 hours ago

          Well they're not. Maybe they should be but they're not.

          In JavaScript, NPM is a package manager. Build systems (Vite, Webpack, Browserify, ...) are separate.

          In C++, we have vcpkg and Conan. Both are package managers, neither are build systems. I haven't used vcpkg but at least Conan integrates with Meson, CMake and other build systems.

          A good build system (i.e not Make) has a clean concept of what a "package" is and how the dependencies between "packages" work. But a build system does not need to know how to download packages, it just needs to know what to do about them once it's pointed at a package. The problem with Conan is that it has to support a bunch of different build systems, so the definition of what a "package" is gets muddied.

          • duped an hour ago

            This is "the more you reject it the more you suffer" part

            CMake and Meson both support package management. Conan also is a build system as much as a package manager. NPM is a build system, too. The degrees to which they try to pass off responsibility to other tools is why they suck.

            > a clean concept of what a "package" is

            First mistake: assuming you can define this. Good build systems/package managers don't define this at all, nor should they. It's natural for software developers to want to put limits here and try and box things in but it just makes life harder for everyone.

            A build system orders individual operations that take inputs and yield outputs. That's it. This is what Make got right.

            Package management is just an extension of that.

            > a build system does not need to know how to download packages

            Downloading is trivial. The actual package management part is checking hashes, version unification, and handling updates.

            There's just no argument to me that these need to be separate tools, when bad tools wind up doing the same work poorly.

    • happyweasel 9 hours ago

      Vcpkg solved most of my problems in a windows env - vs+msbuild+vcpkg in manifest mode. It is also not really intrusive, just one json file. Auto link is very useful. I am very happy when I see a dependency is available via vcpkg.

    • egorfine 9 hours ago

      Unfortunately, vcpkg is not (in practical sense) available for operating systems, it's a windows-only solution.

      • luke5441 9 hours ago

        Wrong. It works on all major OS, even for Android.

        • egorfine 8 hours ago

          I stand corrected.

          Having said that, homebrew also works on Linux, etc. It doesn't make it a solution even remotely. Like, using homebrew on Linux or vcpkg on non-windows sounds like a winning combination of flaws conveniently packaged.

          • Chaosvex 2 hours ago

            Works perfectly fine on Linux. I use it on multiple platforms, no bother.

            • egorfine 2 hours ago

              You are the second person to tell me it's nice on linux.

              Seems I should actually give it a try. Thanks!

          • luke5441 8 hours ago

            I'd claim it works better on Linux. But depends on what kind of packages you use, I guess.

            And it was a separate installation from Visual Studio for a long time as well.

            • egorfine 8 hours ago

              I do manage a build cluster for Windows/macOS/Linux and I have to manage a bunch of dependencies built in a plethora of different ways and configurations on all three platforms.

              It's still hell. And vcpkg is definitely not the hottest place in it.

    • atemerev 8 hours ago

      I use Spack, from my academic years.

    • pjmlp 9 hours ago

      My only pain point with vcpkg is the team's reluctance, or lack of resources (in a 4 trillion valued company(!)), to make the experience at least as nice as using NuGET, across VS and VSCode.

      Note that Clion does exactly this for vcpkg.

    • madduci 7 hours ago

      Yeah, and where are all these zero dependencies libraries that implement TLS, JWT handling, Database Connection? Are here with us?

    • on_the_train 9 hours ago

      Vcpkg was really hurt by skipping a release, without any communication, even ignoring tickets. We thought that our single source of dependencies was silently killed.

  • giancarlostoro an hour ago

    I'm surprised nobody's made an "experimental" standards committee for C++ where they can approve features that are being considered for C++ but not fully approved, orgs that build compilers could target approved experimental features, and we can all see what it functions like and looks like ahead of time, once proven, the official committee approves it.

    I remember that for a long time a lot of Rust projects required the nightly compiler, and it put me off Rust for a long time, but a lot of those features came into the fold and now Rust is very well defined.

    • Xirdus an hour ago

      GCC routinely adds support for C++ features before they're fully approved. -std=c++0x was added 2 years before C++11 was published, and initially included some features that were ultimately removed. -std=c++26 is available since 2024 and -std=c++29 is going to be added soon in GCC 17.

      Similar story with Clang, though CBA to find exact dates/versions.

    • jcelerier an hour ago

      > orgs that build compilers could target approved experimental features,

      there's no law that clang, gcc, msvc must only implement official released C++ standard feature

      • giancarlostoro an hour ago

        Agree, I almost suggested those key people that are frustrated with the current standard should consider making their own C++ standard, but splitting up C++ would not really help, having an experimental standards body might be the better move. something like C++/EX27 or w/e

    • jayd16 an hour ago

      This is every single C++ project.

      • giancarlostoro 41 minutes ago

        Yeah but this would be a standard backed by people presumably part of the official standard itself.

  • Eji1700 8 hours ago

    > 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

    • r_lee 8 hours ago

      I think C++ very likely might still be the choice for GPU stuff or trading or any kind of number crunching, maybe also game engines

      but it really doesn't matter since it's such a niche area. Rust doesn't need to take these over, there's really no any need to

      but the vast majority of old C++ was simply general purpose stuff like web servers/backends/databases etc. and now it's more of a liability to use it, especially for a backend with untrusted clients interacting with it

      for games, probably it'll be hidden behind FFI, like a lot of it already is like in the ML space

      • pjmlp 8 hours ago

        Unless they turn around, even Epic is downgrading their C++ support with Unreal 6, all gameplay code will be a mix of Verse and AI, Blueprints and C++ are out.

    • DrBazza 8 hours ago

      For low latency trading, C++ templates and constexpr are the significant unique selling points. If Rust gets at least equivalent or better functionality, then there's not much reason to continue using C++. Other opinions may differ.

    • elcritch 5 hours ago

      > 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.

      So Nim?! ;) At least my AI agents seem to be able to build very quickly with Nim. The performance is generally on par with c++/rust. Though Nim sits much closer to the if it compiles it runs side of things.

      I had Claude literally one shot a GUI demo app in Nim the other day. It compiled and ran like a charm first try! I was pretty happy with that.

      Theres advantages that C++ has over rust still with const exprs and template specialization, which Nim shares as well. IMHO, thats the sweet spot. Rust might get there one day.

      • Eji1700 4 hours ago

        I mean to be fair I use F# and after the initial "It has no idea how this language works because its not JS/Python" phase about a year ago it's been wonderful.

        Pretty much anything that fits the pattern though seems to do quite well and I suspect AI will help these languages.

        Of course that's before crushing them because "why in the hell would i use <niche lang>" when the AI can just pick something from the common toolkit like rust/TS/python.

        I am curious if someone is going to use an LLM to take 2 something at assembly level and get as close to bare metal as possible but still with guarantees, or something like that.

        Then again I'm the moron who figured I'd do AoC this year in Uiua so you know, grain of salt.

        • elcritch 21 minutes ago

          > Of course that's before crushing them because "why in the hell would i use <niche lang>" when the AI can just pick something from the common toolkit like rust/TS/python.

          That does seem to be a common thought for many folks. :/

          For myself it reinforces my rationale for <nice lang>, in particular Nim, based on the properties it brings to the equation.

          Whereas sticking to rust/TS/python or whatnot constrains the properties of the resulting software. To a degree at least.

          As in TS/Python might be fast to iterate on, but you also need many more tests and the performance is going to be limited. Rust will be fast generally, but dealing with lifetimes and its type system limitations will be more work for the agents.

          I want the properties of the language I'm using to match the properties I want in my software! E.g. readable, fast, flexible, correct, etc.

          > I am curious if someone is going to use an LLM to take 2 something at assembly level and get as close to bare metal as possible but still with guarantees, or something like that.

          Wasn't there a project that used Claude to make a whole OS in assembly lol? Sill I doubt it'll be popular.

          Incidental complexity adds up. Hiding things like the details of what instructions need working around or perform best, etc. Better to use suitable specific languages at each level IMO. Languages at that level are a form of crystalized intelligence.

    • worried_individ 8 hours ago

      what AI literally does is make unobservable language/code level differences between languages irrelevant.

      compile times, code/codebase size, and obviously the observables in the final product (memory usage and runtime performance, security) will matter. but the actual code is next to irrelevant, assuming that AI can work with any language at about the same level.

      rust still loses on all of these except security. it doesnt matter if in practice rust only loses by 0.5% on perf because the core libraries everyone uses just aren't optimized enough - as long as that changes, certain applications (e.g. those that dont care about the built in compile time security and are happy to fix it up in cpp with AI loops), those projects wont switch to rust.

      compile times are especially horrendous btw. hard to think someone came up with a language that takes even longer to compile and iterate on than cpp .

    • pjmlp 8 hours ago

      Rust still has the issue that its reference compilers depend on C++ tooling.

      Until it is fully bootstraped, it can't fully replace it.

      Note that LLVM and GCC are the few projects that have a similar level of contributions as the Linux kernel.

      • simonask 6 hours ago

        Why would you think this is an issue? Replacing LLVM with something written in Rust is immaterial to Rust's success for developing any other project than LLVM.

        • pjmlp 5 hours ago

          Because that is the usual hype from Rust Evangelism Strike Force of 100% C++ and C replacement, while forgetting the small detail regarding the compiler itself.

          As user of managed languges whose runtimes have enough C++ under the hood, I am perfectly aware that as much as I would like them to be fully bootstraped it will never going to happen for various kinds of reasons, not really technical ones, rather economic, human, historical baggage kind of stuff.

          Which doesn't seem to be the case every time we get those RIR advocacy posts, and that gets tiresome on the audience.

          • simonask 4 hours ago

            So it's an imaginary problem that an imaginary person has.

            Still looking forward to meeting this mythical Rust Evangelism Strike Force. I keep hearing about how prolific and intrusive they are, yet somehow they seem to have left the room just before anyone sees them, every time. It's curious.

            • pjmlp 2 hours ago

              Then you have not been reading enough "XYZ rewritten in Rust" blog posts and related comments.

              Or how they managed to push ThePhd and Actix-Web original author away from the community.

              The WG14 and C has a lot to thank for having ThePhd refocus on C.

    • oreally 5 hours ago

      It will last forever now that LLMs are around to detect and describe ways to fix c++ gotchas.

  • rbnafo 8 hours ago

    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.

    • simonask 8 hours ago

      > you don't need ISO committees to produce good, maintainable programming languages.

      Many would argue it even stands in the way.

    • rob74 8 hours ago

      Well, if you only have one implementation, you don't need an ISO standard. C++ is from a time where several companies would implement their own (gasp!) closed-source compilers and try to make money selling them. So a standard was needed for interoperability. Of course, having several implementations also makes it more difficult for a package manager and "standard" packages to establish themself.

      • harry8 8 hours ago

        And with c++ no two compilers were compatible. When gcc became standard compliant and also good things changed.

        The standard is also very difficult to understand.

        Standardisation didn’t work as might have been hoped.

  • rdong8 an hour ago

    all the build system/package manager related complaints here are addressed with Bazel, which among other things:

    - Supports C++20 modules - Makes it easy to use the newest compiler - Basically just works because of hermeticity - Makes build script surgery easy if you actually have to do it - Comes with a built in package manager and registry - Supports distributed caching and remote builds, which CMake is now trying to do: https://www.kitware.com/cmake-fastbuild-distributed-cached-a... - Was made from the start to be modular and programming language-agnostic other programming languages, unlike CMake, which is now trying to add Rust support: https://gitlab.kitware.com/cmake/cmake/-/blob/master/Help/de...) - Most importantly, is already well adopted outside of C++ rather than being one more specialized tool you have to learn

    Unfortunately CMake and its workarounds (header only, submodules, etc.) have been incredibly destructive and are a big contributor to the fear of changing/upgrading things we see with C++ users.

  • naikon 7 hours ago

    I agree completely.

    Memory safety is low on the totem pole for usability. I mean sure, it would be nice to have, but it doesn't reduce development friction in a meaningful way.

    Standardization around the distribution of libraries and build process would be a game changer for C++.

    My preferred stack right now is cmake/vcpkg/Qt + vendored in libraries for anything else, in which I am super productive, once scaffolding is set up. This is not a "plug and play" solution at all.

    In my experience, as C++ projects become bigger, less and less of the standard library is used. In that sense, some of the largest projects I work on basically just use the C standard library, concepts, smart pointers, vector, algorithms and not much else. No std::threads, no coroutines, no std::(unordered_)map, etc, etc. Why? Because I need extension points in almost all of these, and the standard library is very hard to customize mainly because it is not build as part of the project.

    What if the standard library (the non-compiler dependent part) was just another library on github? Then we could split it up, make it composable, and VERSION IT. Put the interface behind std::v1, std::v2 or whatever to prevent source conflicts and we're off to the races. No more locked-in useless regex, std::list etc.

  • gignico 9 hours ago

    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…

  • marsten 7 hours ago

    C++ long ago decided not to touch the packaging problem, and seems intent on sticking with that choice. No doubt they wanted to avoid controversy.

    In my "what if?" file of hypotheticals, I wonder what would have happened if C++ had gone all in on a Cargo-like dependency manager. Ruffled feathers, pissed people off. As the blogger points out, a lot of committee time spent on `std::` additions could have been avoided if dependency management was easy.

    The long-term risk for C++ is becoming a maintenance language like Fortran. That happens when it's no longer a viable choice for big, new projects. I think C++ is getting close to that line, and has crossed it in several domains. Unfortunately the people making those greenfield decisions – new programmers, startups, entrepreneurs – are not at the table in C++ decisions so they tend to be forgotten.

    • daemin 7 hours ago

      If they did go down that route it would have been mired in standardisation hell and probably turned out as good as modules.

      The other problem with trying to standardise a whole package management system in C++ is that there are multiple compilers, build systems, and implementations of the standard library - which all affect the ABI.

      It might be easier to standardise the things around a package manager such a universal package specification format to make it easier to distribute libraries, or a new standard library core library with just enough vocabulary types and concepts to provide a consistent ABI for compiled libraries. Then let vendors provide the package managers so that each one can find their own niche.

  • codemastercpp an hour ago

    as much as i love c++, i think this is its time to go to rest

  • Surac 6 hours ago

    The try to put everything and the kitchen sink into C++ in a most confusing syntax has made me flee to ansi c for performance and c# for luxury. C++ is not needed in my way of coding. Also most c++ are compiler specific and cmake makes everything even more complex

  • jillesvangurp 8 hours ago

    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.

    • audunw 8 hours ago

      Ironically (considering Andrew’s negative attitude to LLMs), I think Zig will be great for AIs once the language is stable.

      LLMs will probably keep getting faster, meaning the compiler might be holding the LLM back. Zigs focus on blazing fast compilation speeds and hot swapping could become a big advantage.

      I think Rusts borrow checker will become a mistake. The right solution is to be able to plug into the compiler and add all kinds of static analysis depending on your needs. There is already a project to add memory lifetime checking which is more powerful than Rust in Zig. Limiting us to checking what can be declared in a function/type signature is a mistake.

      The LLM can probably reliably figure out which kinds of static analysis needs to be done for a particular commit.

      I think the focus Zig has on having a straightforward and explicit mapping from the code you see to the results/instructions you get can be an advantage for LLMs too.

      Should be said he had a recent shift in stance w.r.t. LLM driven testing

    • mike_hearn 5 hours ago

      That's basically a language like Java or Kotlin. Fast compiles and turnaround times, for Kotlin a pretty strong type system. I don't think Rust is meaningfully more "if it compiles it works", that's a meme and not a real comparison versus the alternatives.

  • mirmor23 6 hours ago

    (Ignoring legacy codebases); Even today, for a new project, C++ is likely the only cross-platform option if a rich desktop GUI is critical (EDA/CAD/GIS/Video etc).

    Slint is still not professional grade (tried it over a year ago, and also its lack of widget variety and graphics toolkit is a big hole).

    Avalonia might work if performance and footprint is acceptable to the app, and I'm not sure about the breadth of their native OS hooks, and window manager quirks.

    • sandos 5 hours ago

      I was surprised when my LLM managed to make a very nice Avalonia app supporting 1M lines of scrollback without any issues.

      Its faster than our old legacy win32 application, even if that might not mean much. We did have to implement our own bitmapped font rendering though :(

  • im3w1l 10 hours ago

    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

    • daemin 6 hours ago

      Does it support pre-compiled binary packages?

      • neobrain an hour ago

        Yes, this is supported and actively used in nixpkgs for proprietary programs and for things where maintaining source-builds would be unfeasible.

        `patchelf` is the keyword that makes them fit into the nix store system.

      • im3w1l 6 hours ago

        I believe so. Ideally they should be prebuilt with nix in mind though.

    • curt15 8 hours ago

      Does adopting nix also require subscribing to nixpkgs?

      • fc417fc802 8 hours ago

        Theoretically no, but if you don't you will have to package and build the entire world (ie your full toolchain) yourself. So ... actually now that we have AI I guess no, it isn't required. You could realistically turn a model loose to package everything for you and throw it all at CI.

        Or you could just use nixpkgs. Is there any particular reason you don't like it?

    • arximboldi 9 hours ago

      dunno why you were downvoted, I agree with you and really wish this happened.

      but to he fair, the Windows story would really need to improve for this to be realistic---one would need to be able to build Windows native packages, not just WSL. even the OpenGL story is unsatisfactory when developing graphical apps to be distributed as binaries on Linux. these are sadly not easy to fix and it would require a company to really believe in the vision and drive these investments.

      • im3w1l 9 hours ago

        You could cross compile I guess. I haven't actually tried that though, so I can't speak for how smooth the experience would be.

        • Gibbon1 8 hours ago

          Small data point. One time needing a dll for windows. Faced with a build system for that dll that used auto tools. I punted and compiled gcc as a cross compiler to build the windows dll under linux and it worked.

          My impression cross compiling C/C++ works fairly well.

    • whizzter 8 hours ago

      The core we've always fought with is that most *nix tools (both package managers and build tools) cares about "building for home on my machine" (nix does seem to have some separation at least) whilst many developers target crossplatform or multi-targets.

      C/C++ has many Windows (where Release / Debug are different build profiles for better or worse), Embedded and Console developers. All of the latter require not only platform support (Nix on Windows is recommended via WSL) and more or less support for programs/libraries to multi-target.

      An local developer here in Stockholm did a deep dive with package managers a few years back and it was a depressing watch since only VcPkg seemed to particularly care about the multi-targeting (No idea if Nix handles this well? but it was eliminated due to not even supporting Windows) and a package manager looking to be even unofficial will have a hard time "winning" without filling both parts.

      And I do recognize that while vc-pkg was best on paper in many ways, the GNU community would never adopt it.... and here we are still years later.

      Personally at this point I think we should maybe just put a thin shim to make compilers/tools recognize git submodules officially and let those become packages because people won't agree on anything anyhow.

      (Package managers video) https://www.youtube.com/watch?v=C1m-Uy4nuQA

  • titzer 36 minutes ago

    It's way past time. Technologies come and go. Let it go.

  • motbus3 8 hours ago

    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.

  • semiinfinitely an hour ago

    no, c++ needs to die (and fast)

  • throw93933944 9 hours ago

    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.

    • adrianN 9 hours ago

      code audits do not make code safe

      • throw93933944 9 hours ago

        I replaced borrow checker in rust with small markdown file, code annotations, python script, and LLM pass. It costs $5 per build on 200k lines. I will leave it there.

    • short_sells_poo 8 hours ago

      Then you are a non-developer and perhaps this is not for you.

      • fc417fc802 7 hours ago

        How many developers by your definition do you predict will exist 5 years from now?

      • throw93933944 7 hours ago

        Whatever, I maintain old apps within constraints and budget.

        Rewriting old apps into typescript, and downloading executables from random people on internet On every build, does not work for everyone.

        > a strict TypeScript UI

        Even article agrees Rust sucks in several cases, including GUI!

    • arendjr 7 hours ago

      I tried Rust with Qt too and quickly gave up as well. By that I mean I quickly gave up on Qt, and am using different UI tools with Rust instead.

      I had fond memories of Qt from back in my C++ days, but its Rust bindings are indeed poor alpha quality, and I suspect it will feel out-of-place forever. If they built a true QML engine natively in Rust I might check it out again, but juggling QML/JS <-> C++ <-> Rust will never become a happy flow, I’m afraid.

  • HeavyStorm 7 hours ago

    Maybe it's time to move on?

  • darkurge 7 hours ago

    I do not understand all the fuss to "save" a programming language. If a programming language is not "good" enough will not survive and another will come. What's the problem with that?

  • htfy96 an hour ago

    Unfortunately this post was removed from r/cpp due to being marked as AI slop

    • steve1977 an hour ago

      I mean it's literally in the title of his blog...

      (do we still say blog?)

  • rfgplk 5 hours ago

    How long until people realize that a) most of these languages are effectively wrappers around LLVM IR b) you can direct LLMs to write directly in LLVM IR, bypassing the frontend parsing stage and c) writing your own custom language/compiler frontend is easier than ever.

  • IshKebab 9 hours ago

    Let it die.

    • rob74 8 hours ago

      To catch up fast or to die slowly - that is the question...

    • twhitmore 7 hours ago

      Agreed. After 25+ years the ISO committee still hasn't delivered package management, a coherent standard library, socket networking, memory safety, or sane handling of undefined behavior, and nothing suggests it will before everyone has moved to Rust.

      To me C++ is an obsolete coal-fired steamboat where every plank and bolt is crafted by hand. The parts you need were never standardized, the parts that were standardized aren't the ones you need, and nothing fits together.

      It's clearly past the tipping point, and the committee is rearranging the deckchairs. Nobody is building their future in C++.

  • brettermeier 7 hours ago

    I'm glad that C++ always seemed too complex and old-fashioned to me, which is why I never really got into it. People used to think you'd be shooting yourself in the foot by not knowing it, since C++ was the mother of all programming languages. I think it's a good thing that turned out to be not true, and it is nice that no one has to use this outdated stuff for modern projects anymore.

    • flohofwoe 18 minutes ago

      > People used to think you'd be shooting yourself in the foot by not knowing it, since C++ was the mother of all programming languages.

      Absolutely nobody ever thought or said that though ;) And C++ arrived much too late to be the "mother" of anything (the programming language zoo was pretty much already fully shaped in the 1990s). The value proposition was that the maasive C++ foot cannon was the compromise you had to accept for enabling a high abstraction level while getting pretty good runtime performance.

  • pjmlp 10 hours ago

    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.

    • raverbashing 9 hours ago

      > a thin layer on top of POSIX, with iostreams

      Honestly iostreams was the writing on the wall on how C++ would fail

      That thing is horrendous

      Yes the proprietary libs were done (mostly) ok, and Borland outshone there (no wonder Anders went to work on C# later)

      • pjmlp 9 hours ago

        iostreams are great, especially when coming from Smalltalk or Object Pascal background, not everyone hates them.

        Anders went on to work on J++, folks forget C# only came to be after Sun's lawsuit, the .NET research project (Ext-VOS) used J++ as its main language.

        • raverbashing 8 hours ago

          iostreams might have added a familiar interface to some, but see: "how" >> "nobody" >> "else" >> "kept" >> "that"

          f-strings won

          • pjmlp 7 hours ago

            Actually they have kept it, hence the "when coming from Smalltalk or Object Pascal background", but I guess OOP is not fashionable.

            • raverbashing 4 hours ago

              Yes I understood, I meant, nobody kept that after C++

    • drysine 10 hours ago

      >To this day people are fighting to add into the standard library

      Why would anyone want to fossilize libraries they use by codifying them in the standard?

      • pjmlp 10 hours ago

        Because in many companies that is the only way around procurement for third party dependencies, there is no cowboy programming "something install".

        And in C++ case, due to how package managers have grown up between OS package managers, conan, vcpkg, CMake find package,.... it adds yet another set of variables besides legal, IT, availability on Artifactory/Nexus/....

        Also fossilised libraries are better than having none at all.

        • tialaramex 9 hours ago

          Not just companies. FreeBSD takes C++ in base, and so if you can cram your Rubik's Cube solver into the C++ standard library, maybe just by issuing a new paper proposing the same Rubik's Cube solver for every. single. WG21. meet-up until they relent and add it to the library, now every single FreeBSD install has your Rubik's Cube solver as a core feature. Hilarious.

          • pjmlp 9 hours ago

            It works well enough for Python, Go, Java and .NET, batteries included alongside package managers, the problem with C++ is how WG21 happens to be.

            • tialaramex 13 minutes ago

              I'm intrigued by what you thought your point was here. Is .NET part of the BSD core? Python? Java? No.

              For a while FreeBSD tried to have Perl in its core, and what they discovered (as they would with all of the options you suggested) is that "just Perl" wasn't what people wanted - Perl programmers want to be able to add stuff and the whole point of FreeBSD core is that you can't do that, this is all you get. Ironically the result of "No, you can't add a kitchen sink" is that people add the kitchen sink to the C++ stdlib so that they can have a kitchen sink...

  • r_lee 8 hours ago

    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

  • 3form 9 hours ago

    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.

    • curt15 8 hours ago

      That doesn't seem a fair appraisal of

      > Adding a library still means forty lines of CMake across three operating systems...

      No one wants to struggle with dependency management.

  • feverzsj 7 hours ago

    Yet, C++ is still the core language behind every AI/ML framework/system. Musk even said they rewrote Grok with full C++ stack, because "Real men manage their own memory".

    • roflcopter69 6 hours ago

      > Musk even said they rewrote Grok with full C++ stack, because "Real men manage their own memory"

      RAII and std::shared_ptr left the chat

      So real men use C and not C++, right ;) ?

      (Gosh this is dumb)

  • iekeb an hour ago

    Vinnie Falco sounds like the name of a character from Goodfellas.

  • kelseyfrog an hour ago

    It not possible. C++ selects for very opinionated developers. It has to; being picky and choosy about the correct way to write C++ is how C++ devs survive in an environment that is at times actively hostile.

    Strong opinions are a beneficial adaptation for the individual dev, but it results in very low group cohesion. No two devs agree, they're quick to point out flaws, and unwilling to accept things that are mostly good enough.

    This is a disaster for a build system where judgement, tastefullness, and preference are even less clear than core language design. The trait that enabled developers to survive is actively working against their ability to collaborate as a group. You can see it here where 'this worked for me,' stories are met with hostility of, 'thats DOA.'

    I don't see a way to turn that ship. It's a culture problem, not a technical one and solving social problems as if they are technical problems misdiagnosis the ailment.

  • dist-epoch 8 hours ago

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

    • pjmlp 8 hours ago

      Depends in what gets to replace CUDA, LLVM, GCC,...

  • fukaiall 2 hours ago

    Yeah lots of high-skilled C++ folks don’t really give a shit about borrow checker or RAII in Rust because they are already familiar with it in C++. It’s the ecosystem and package management part. If those Rust fanboys shut their fuck up then it is the most productive language now.

  • locknitpicker 9 hours ago

    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.

    • gjvc 8 hours ago

      > If you make people's lives easier, they will use you to solve their problems. There is no merit in making life difficult.

      The best (most far-reaching) lessons are the simplest ones, like this.

    • TuxSH 8 hours ago

      > 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.

      Almost as if OS/distro package managers were a bad idea in general

  • mac3n 5 hours ago

    s/Catch Up/Die/

  • karel-3d 42 minutes ago

    Claude, write me a C++ package manager. Make no mistakes

  • z3ratul163071 7 hours ago

    it will, the committee is asap scheduling to schedule the next meeting as early as summer of 2027. from there on it is smooth sailing with the new standard already ready as early as 2035!

  • attila-lendvai 10 hours ago

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

  • tonyhart7 7 hours ago

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

    ok, this is sad

  • topspin 8 hours ago

    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.

  • rramadass 6 hours ago

    The article only states that the author doesn't like std::execution, thinks coroutines are the bees knees, the tool ecosystem around C++ is not unified (like for Rust) and hence some trouble to setup, some criticisms of the standards committee (everybody has an opinion) and that's it.

    And yet people are reading what they want into it.

    There are tons more code in C/C++ than most other languages and given its origins there is bound to be some difficulties since it started out with different assumptions i.e. the onus is on the programmer to put together everything. Since it is already being modernized (albeit slowly) i really don't see the hoopla around gloom and doom.

    AI workflow is being optimized around tooling which is certainly better for other modern languages but in no way is it a hard limiting factor i.e. C++ will soon be made "AI-friendly" even though not standardized. If there is one thing i can say for the standards committee they do understand current sentiments/needs and do work towards making C++ better to fit in.

  • mk89 9 hours ago

    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.

    • unglaublich 9 hours ago

      And why wouldn't they? All these languages have quite good error-reporting, linting and static analysis, debugging and runtime introspection features.

      With C++, you first have to resolve your linker and crypting template compilation errors, wait forever to build an app, get a debug build, attach a debugger, and navigate even more cryptic symbols and stacktraces.

      The core language requirement for agentic software development is that the iterative loop is fast and informative. Apply small delta; feedback; loop. The loop in C++ is too involved, slow, and uninformative.

      • samiv 8 hours ago

        You're right about the compile time. What helps a lot though is (and what I personally do) continuously build while I keep on editing the code. Keep the edits unsaved in the editor buffer as long as the build is still running.

        Having small unit test apps that you can build quicker and debug quicker than the "main app" also helps.

  • tontinton 10 hours ago

    Or not? who cares about deprecated tech?

    • dwb 9 hours ago

      Deprecated by who?

      • antonvs 8 hours ago

        Developers who’ve collectively left it behind.

        • dwb 5 hours ago

          And what authority or weight do they have? C++ is far from a niche language, however much anyone might want it to be.

    • adev_ 9 hours ago

      > who cares about deprecated tech?

      The "deprecated tech" is probably powering multiple devices with you in your room right now. Multiple airplane passing ion top of your head right now and the cars in front of your street.

      There is tremendous incentive to modernize and support C++ for the next 20y.

      The world is more complex than "Judt rewrite in Rust".

      • TuxSH 9 hours ago

        Also the Nintendo 3DS and Nintendo Switch 1 and 2.

        It's pretty nice for dependency-less monorepos.

    • WelkinFolk 9 hours ago

      Tonnes of people do. Some, purely so because they love it.

      Strange POV to have towards anything.

      • rapsey 9 hours ago

        I think most are bitter for developing skills over decades that have been made irrelevant in Rust based codebases that are becoming ever more popular.

        • hnav 9 hours ago

          Knowing C++ is a huge leg up when picking up Rust since you already understand memory ownership. There's also a problem in the Rust community in the sense that a lot of it is dilettantes from the ruby-on-rails world.