teh 15 minutes 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.

  • heresie-dabord 4 minutes ago

    > c++ has the weight of history

    It's a heavy burden. On the road to mastery, every apprentice developer must learn to manage the flaws of the tool chain and language.

zarzavat 24 minutes 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.

  • gambiting 18 minutes 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 13 minutes 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.

  • fwsgonzo 17 minutes 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).

  • jibalt 3 minutes 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).

nly 2 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 1 hour 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).

    • nly 1 hour 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?

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

  • pjmlp 2 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.

  • mort96 2 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.

    • quietbritishjim 1 hour 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 1 hour ago

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

        • pjmlp 48 minutes ago

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

          • mort96 46 minutes ago

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

    • simonask 1 hour 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 1 hour 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 57 minutes 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 54 minutes ago

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

            • iamsaitam 45 minutes ago

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

              • fc417fc802 38 minutes 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.

              • mort96 35 minutes 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.

  • happyweasel 1 hour 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 1 hour ago

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

    • luke5441 1 hour ago

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

      • egorfine 1 hour 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.

        • luke5441 1 hour 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 58 minutes 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.

  • on_the_train 1 hour 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.

  • atemerev 1 hour ago

    I use Spack, from my academic years.

  • madduci 19 minutes ago

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

Eji1700 1 hour 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

  • DrBazza 54 minutes 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.

  • r_lee 51 minutes 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 46 minutes 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.

  • pjmlp 51 minutes 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.

  • worried_individ 41 minutes 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 .

naikon 24 minutes 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 1 hour 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…

rbnafo 1 hour 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 1 hour ago

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

    Many would argue it even stands in the way.

  • rob74 1 hour 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 39 minutes 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.

jillesvangurp 1 hour 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 55 minutes 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.

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

motbus3 1 hour 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.

im3w1l 2 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

  • arximboldi 2 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 1 hour 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 1 hour 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 1 hour 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

  • curt15 1 hour ago

    Does adopting nix also require subscribing to nixpkgs?

    • fc417fc802 27 minutes 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?

throw93933944 1 hour 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 1 hour ago

    code audits do not make code safe

    • throw93933944 1 hour 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 1 hour ago

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

    • fc417fc802 24 minutes ago

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

    • throw93933944 16 minutes 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!

topspin 42 minutes 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.

IshKebab 1 hour ago

Let it die.

  • rob74 1 hour ago

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

  • twhitmore 10 minutes 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++.

r_lee 1 hour 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

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

  • drysine 2 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 2 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 1 hour 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 1 hour 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.

  • raverbashing 2 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 1 hour 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 33 minutes ago

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

        f-strings won

feverzsj 15 minutes 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".

3form 1 hour 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 1 hour 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.

z3ratul163071 22 minutes 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!

dist-epoch 1 hour ago

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

  • pjmlp 43 minutes ago

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

tonyhart7 25 minutes ago

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

ok, this is sad

locknitpicker 1 hour 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 1 hour 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 51 minutes 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

attila-lendvai 2 hours ago

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

  • drysine 2 hours ago

    Nobody knows everything about C++

mk89 2 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 1 hour 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 55 minutes 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 2 hours ago

Or not? who cares about deprecated tech?

  • WelkinFolk 2 hours ago

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

    Strange POV to have towards anything.

    • rapsey 2 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 1 hour 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.

  • adev_ 2 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 1 hour ago

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

      It's pretty nice for dependency-less monorepos.

  • dwb 1 hour ago

    Deprecated by who?

    • antonvs 39 minutes ago

      Developers who’ve collectively left it behind.