NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
▲C++ needs to catch up (vinniefalco.com)
teh 9 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 2 hours 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.

heresie-dabord 9 hours ago [-]
[flagged]
hmry 5 hours ago [-]
I think it's less about having to learn, and more about having to re-do the work for every project. It's not like you just master CMake once, and from then on adding any new dependency with proper cross-compilation, incremental linking, test suite integration, static analysis, etc. only takes 5 seconds.

(Also, let's not have "you just have to master the toolchain" and "every language has its flaws" stand in the way of making a better toolchain)

lenkite 2 hours 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.

gfaster 2 hours ago [-]
Allocators were stabilized in 1.100!

https://blog.rust-lang.org/2026/11/12/Rust-1.100.0/

SkiFire13 1 hours ago [-]
TBH however C++ has locales, time, random, regex, multi-dimensional array spans, simd and more.
lenkite 53 minutes ago [-]
std::chrono is genuinely good C++! Very well designed.

So is std::mdspan - another well-designed abstraction. (Just wish it did more like NumPy-style broadcasting or array expressions, but probably asking for too much)

std::locale has poor antiquated design (even when it was introduced!) and inadequate Unicode support. Nobody uses it.

std::random - very poor. No guaranteed cryptographically secure random-number generator. Outperformed by most implementations. And a bunch of other issues that I don't quite recall now. (seeding, etc))

std::regex - the biggest and saddest joke of the programming world, even when it came out! Beaten by the slowest, interpreted languages. A high-schooler could write a more performant library even without AI support. Feels like it got approved when someone was on a bender.

(std::simd - can't really comment, since I am yet to personally use the shiny C++ 26 feature. However, some people hate it https://lucisqr.substack.com/p/c26-shipped-a-simd-library-no...)

This is why C++ desperately needs a deprecation and "mythical-ABI break" release, where the only thing that happens is that legacy features are removed and fixes are made..

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

klodolph 3 hours ago [-]
Sounds like you’re reconstructing a snapshot of google3
Vaushite 2 hours ago [-]
cmake is just a wrapper that generates build commands. If it's not working for you, you can use something else
stackghost 35 minutes ago [-]
>If it's not working for you, you can use something else

That's the point of TFA: cmake sucks and is annoying, and every library seems to use it, so by and large people are choosing to use something else. The something else they're choosing, however, is a different programming language with better build and packaging ergonomics.

superxpro12 56 minutes ago [-]
ive gone to war with cmake to the point that i was convinced there was some deep temp cache file hidden on the pc that nobody knew about.

Ive had cmake problems that werent fixed by a clean and rebuild, or a nuke of the entire cmakecache, but instead by re-cloning the entire project. it make no sense.

dapperdrake 36 minutes ago [-]
Sounds like a way to subtly mess up CI.
dapperdrake 37 minutes ago [-]
Have you heard of C++ Frequently Questioned Answers [sic] and how exceptions from STL constructors can force you to leak memory? The C++ rabbit holes fold in on themselves.

Now Abseil is a kind of loopy rabbit hole, as well.

At least C++ will trap AGI. No way to escape.

vinniefalco 7 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 2 hours 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 9 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 9 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 8 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 8 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 7 hours ago [-]
bad mistake. would have been more productive to use that LLM to rectify your c++ instead.
fwsgonzo 6 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?
ChrisRR 8 hours ago [-]
I can't see it going anywhere soon. The amount of existing projects in C++ still need developers
neuwirth 8 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 8 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]

nitwit005 1 hours ago [-]
My father got a job at Lawrence Livermore National Laboratory, and they were still running and maintaining Fortran programs.

Atmospheric model that no one wanted to rebuild, due to the obvious complexity.

dheck 3 hours ago [-]
AFAIK Fortran is still heavily used in the physical sciences, from particle simulations to weather and climate models.
bena 3 hours 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 8 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 8 hours ago [-]
They've been saying C++ is dying for decades now but it's still here with (almost) all its problems :)
dmead 2 hours 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.

kstrauser 1 hours ago [-]
> If you want to write tight loops, rust is still slower on almost every benchmark.

I find that surprising, since ultimately Rust uses LLVM to emit machine code, same as a lot of C++. Do you have links to benchmarks? (Not asking to be a sea lion, just genuinely interested and I'd like to learn more about how or why that'd be.)

dmead 1 hours ago [-]
all of the tests I read on the debian language shootout agree with my experience on asking claude to switch my imaging pipeline to rust.

it's very close, but c++ still seems to have an edge.

bbkane 50 minutes ago [-]
You might enjoy reading about the Trifecta Tech Foundation : they're trying to speed Rust up for these use cases.

https://trifectatech.org/initiatives/codegen/

jibalt 9 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 6 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.
Guvante 25 minutes ago [-]
Porting code is basically impossible beyond extreme cases which is the entire reason C++ has been around for quite a while (once everyone else caught up on low level OS compatibility)

You can rewrite but that is very different

And yes I have seen the OS projects that did a port by having six developers spend triple their usual time on the project for a year...

hinkley 2 hours 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 3 hours ago [-]
At least C++ has an ABI and can produce dynamically linked executables and libraries.
lenkite 2 hours 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. A massive PITA, because so many wonderful papers are rejected or take years (even decades!) because of "will break ABI" - leaving their authors in tears as their work of years go up in smoke.

But, what ABI precisely ? There is nothing a consumer can truly depend on since it is never truly defined. All libraries which truly offer ABI compatibility as a contract just leverage the C ABI.

C++ committee should have permitted their "mythical C++ ABI that exists but not really" to break across odd standard releases (once every 6 years) so to fix severe and glaring deficiencies in the standard library. This was done so successfully in the past and compiler vendors had no issues doing so. But in the last decade, the C++ committee has sadly gotten ossified and even tyrannical.

MANY prominent developers and committee contributors have walked away from the C++ standardization process (WG21) or pivoted away from C++ altogether after their major proposals were rejected or stalled. Most of them have moved away from C++.

And Rust will now rule the roost while C++ slowly petrifies and dies.

"Rubigina in pace, C++"

spacechild1 27 minutes ago [-]
I think you are confusing two things:

1. ABI differences between compilers - or even compiler version - for the same functions or data structures.

This is not so much an issue on modern platforms. Unix platforms generally use the Itanium ABI. MSVC uses the x64 ABI. You only have a problem if you're mixing MSVC and GCC/Clang binaries on Windows. (It's possible, but you need to follow the COM guidelines.)

2. ABI differences between libraries or library versions.

std::string, for example, has different members or data layout in every C++ standard library (GCC's libstdc++, Clang's libc++, Microsoft STL, etc.) That's why they are not binary compatible, even if you would compile them with the same compiler.

If a library changes the members or layout of one of its library types, that would be an ABI break within the library. This has nothing to do with the C++ ABI.

---

When the C++ standard people talk about ABI breaks, they typically mean the second kind.

That being said, I generally agree with you! It's ridiculous that the layout of library types - which often dictates the implementation - shall be set in stone once and for all, with no possibilities for future improvements.

As you said, there have been ABI breaks in the past, most notably between C++98 and C++11. Some things just need to be fixed. We shouldn't be held hostage by people who are forced to use ancient prebuilt binaries where the source code has been lost or the vendor has gone bancrupt. If they can't rebuild their libraries, they can put them in a separate component, possible behind a C interface.

KerrAvon 9 minutes ago [-]
Those problems are related, though. The fragile class layout problem is solvable in theory in a standards compliant-way but unsolvable in practice because C++ doesn't standardize the ABI.
flohofwoe 2 hours 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 2 hours 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.

cocoto 53 minutes ago [-]
Completely false, I have recently compiled many C++ dependencies from an old Debian/gcc version and it works flawlessly when used as a dependency on the latest Debian with much more recent gcc version.
legobmw99 8 minutes ago [-]
The parent comment's point is that this is luck, not something the standard promises you
gambiting 9 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.
munificent 1 hours ago [-]
> It's still the most popular language for writing video games in

Do you have good data on that?

The game industry is huge and, yes, many tentpole AAA games are written in C++. But there are a lot of games written in Unity and C# or other languages. I would be very interested to see what the relative breakdown looks like of where gamer dollars are going into which games by programming language.

fwsgonzo 9 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 8 hours ago [-]
https://akaganite.com

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

jmyeet 2 hours 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.

nly 11 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 10 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).

BeeOnRope 3 hours 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?

Vaushite 2 hours ago [-]
C++ coroutines are always heap-allocated, precisely because their lifetime is so hard to predict.
nly 10 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 8 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 7 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.

ghosty141 8 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 2 hours 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 8 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 8 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.

55 minutes ago [-]
jayd16 3 hours 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 3 hours 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.

ActorNightly 4 minutes ago [-]
>There's no universal package manager for C. No standard library worth a damn.

There is, its called Linux kernel, along with whatever package manager used to download the headers and shared libraries.

bee_rider 3 hours 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 7 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 7 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.

ryandrake 1 hours ago [-]
Yea. I don't want a package manager for my programming languages. My OS has a perfectly good package manager, and when I use it to obtain software, I know I'm getting all dependencies and everything is integrated well into my existing system.

But then, if I want to develop something for Python, I need to reach for a totally different package manager that lives in its own universe and barely integrates with my existing package manager. Then, for Rust, same thing, totally different package manager, totally outside of my OS.

Having multiple package managers on a system is an anti-pattern as far as I'm concerned.

49 minutes ago [-]
skydhash 2 hours 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 11 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 11 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 10 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 10 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 10 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 10 hours ago [-]
Sure, it doesn't scale to your typical node.js project with thousands of dependencies. That's a good thing.
imtringued 4 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 3 hours ago [-]
Classic sour grapes.
mort96 3 hours 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.

asveikau 1 hours ago [-]
How about we talk about how much of the software engineering community, circa 10 years ago, became about bloating your project with tons of dependencies that you're completely unaware of, including "leftpad" packages and some that will be compromised with malware, and it becomes hard to say what "your" project is as opposed to this pile of libraries.

That was before the AI era. Now you have some who advocate not even bothering to look at what Claude did.

If C++ manages to avoid some of this by being more conservative, maybe it's good.

iamsaitam 9 hours ago [-]
"it's not a bug, it's a feature"
fc417fc802 9 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 3 hours 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.

fc417fc802 42 minutes ago [-]
I realize you're being sarcastic but I unironically agree. Code shouldn't constantly churn.

You can still scan for known issues. Rather than checking version strings in the case of full repos you can check branch names or commit hashes. In the case of individual files you can look at checksums. You can even scan your source tree for known snippets.

mort96 9 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 8 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 8 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 7 hours ago [-]
Pious suffering is not a virtue.

We're trying to get thing done, here.

mort96 7 hours ago [-]
Where did I advocate for suffering and not getting things done
simonask 7 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 7 hours ago [-]
[flagged]
quietbritishjim 10 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 10 hours ago [-]
The "vc" in "vcpkg" stands for Visual C++.
pjmlp 9 hours ago [-]
Because that is where it was born, and the team that owns the project.
mort96 9 hours ago [-]
And it means it's completely uninteresting in my eyes.
pjmlp 8 hours ago [-]
Nowadays that will cut out plenty of open source projects, given Microsoft sponsorship.
mort96 8 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 8 hours ago [-]
Ah so Microsoft can sponsor whatever they feel like, just not prefix the name with vc.
mort96 8 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 8 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 8 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 3 hours ago [-]
The Conan package manager is cross-platform and just what the doctor ordered for C/C++.

https://conan.io/

mort96 3 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 5 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 6 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 6 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 3 hours 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 10 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 10 hours ago [-]
Unfortunately, vcpkg is not (in practical sense) available for operating systems, it's a windows-only solution.
luke5441 10 hours ago [-]
Wrong. It works on all major OS, even for Android.
egorfine 10 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.

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

Chaosvex 4 hours ago [-]
Works perfectly fine on Linux. I use it on multiple platforms, no bother.
egorfine 4 hours ago [-]
You are the second person to tell me it's nice on linux.

Seems I should actually give it a try. Thanks!

atemerev 10 hours ago [-]
I use Spack, from my academic years.
pjmlp 11 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 9 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 10 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.
Eji1700 10 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 10 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 9 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 10 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 7 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 6 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 2 hours 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 9 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 .

oreally 7 hours ago [-]
It will last forever now that LLMs are around to detect and describe ways to fix c++ gotchas.
pjmlp 10 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 8 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 6 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 5 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 4 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.

simonask 2 hours ago [-]
> Then you have not been reading enough "XYZ rewritten in Rust" blog posts and related comments.

People writing about their Rust project counts as toxic evangelism now? I swear, some people seem to receive any mention of Rust as a personal attack.

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

You're referencing community drama from half a decade ago. A lot has been written about both of those situations, but I'm not sure how it's relevant today. For the record, I think we all agree that both situations were tragic and had an unacceptable human cost, regardless of any technical merit of the criticisms raised.

pjmlp 44 minutes ago [-]
The meme wasn't created out of thin air, and lets leave at it, unless you want to pursue the whole history behind it.
33 minutes ago [-]
giancarlostoro 3 hours 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 2 hours 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.

jcranmer 1 hours ago [-]
That's not actually adding support for features before they're approved.

The -std=c++XY flags are added after the previous version is released and the new version's target date is known. The actual features are tracked in pages like https://clang.llvm.org/cxx_status.html, with the new features being added to the lists after they're voted into the standard. Implementation work only begins after standard inclusion, and this is a very deliberate choice (compiler vendors don't want to chase a moving target for implementation details).

Xirdus 12 minutes ago [-]
It was called C++0x literally because the date was unknown.

The status page you linked shows that a lot of C++26 features - which still isn't finalized to this day BTW - have been implemented in Clang 17, 18 and 19 released in 2023 and 2024.

nitwit005 47 minutes ago [-]
That is quite literally adding features before they're approved. Even in your link, a table has a heading "C++29 Proposal".
jcranmer 42 minutes ago [-]
Those are features that were voted into the C++29 standard two weeks ago or five months ago.
Xirdus 9 minutes ago [-]
P3733 isn't part of either 26 or 29 draft at the moment, correct? And it's already implemented in Clang 23.
22 minutes ago [-]
nitwit005 35 minutes ago [-]
Formal final approval for C++29 is, naturally, scheduled for 2029: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/p10...
jcranmer 26 minutes ago [-]
Approval into the working draft is the stage that compiler implementers actually care about; the ISO approval step is basically meaningless to them. Which is why it seems that all of the compiler implementers on the committee preferred the option of "cancel C++26" to the entire C++26-draft-ballot-failed debacle.
jcelerier 3 hours 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 3 hours 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 3 hours ago [-]
This is every single C++ project.
giancarlostoro 2 hours ago [-]
Yeah but this would be a standard backed by people presumably part of the official standard itself.
1 hours ago [-]
softwaredoug 24 minutes ago [-]
People have said this for 20 years.

I’m curious why? What happened? Why is C++ so dysfunctional when other languages (Python, JavaScript) make progress?

rbnafo 10 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 10 hours ago [-]
> you don't need ISO committees to produce good, maintainable programming languages.

Many would argue it even stands in the way.

rob74 10 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 9 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.

petters 1 hours ago [-]
The author cites articles like https://arxiv.org/abs/2505.04254 from one and a half year ago, using models like GPT 4o and Gemini 1.5 Flash. I think many of the points of the author just aren't true. Of course Opus 5.5 and Astra will be able to compile a C++ project!

The best research i know on the (admittedly understudied) subject is by Dan Luu: https://danluu.com/pl-tokens/ and subsequent articles.

ummonk 1 hours ago [-]
The flip side of this is that C++ projects are way less vulnerable to supply chain attacks as they lack the massive dependency trees that modern languages like Rust and JS with popular package managers tend to be vulnerable to.
superxpro12 55 minutes ago [-]
thats only a problem if you set your packages to "latest". working in an embedded shop, the very concept is horrifying.

i suppose you can replace existing packages, but presumably they have sha protections. if not, it would seem local caches of the dependency tree would solve this.

gignico 10 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…
naikon 9 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.

marsten 9 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 8 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.

superxpro12 53 minutes ago [-]
i dont know how anyone can look at "autoconf" and conclude that is the superior solution. it's screams "old guard" more than anything else.

c/c++ still has a niche in embedded systems where bits still matter.

and before someone screams 'but you can do rust!', yeah i know. its still not there yet. vendors arent supporting it, and its not trickling down. it's still very 'bleeding edge'.

rdong8 2 hours 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.

codemastercpp 3 hours ago [-]
as much as i love c++, i think this is its time to go to rest
lioeters 1 hours ago [-]
It's time to Rust.
Surac 7 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 10 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 10 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

roflcopter69 8 hours ago [-]
> Should be said he had a recent shift in stance w.r.t. LLM driven testing

Source please?

koube 2 hours ago [-]
I believe he's referring to Andrew's "State of the (Tagged) Union Address" talk here: https://youtu.be/zwi5b5xSsKA?t=1871
mike_hearn 6 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 8 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 7 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 :(

throw93933944 11 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 10 hours ago [-]
code audits do not make code safe
throw93933944 10 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.
adrianN 10 hours ago [-]
Godspeed
short_sells_poo 10 hours ago [-]
Then you are a non-developer and perhaps this is not for you.
fc417fc802 9 hours ago [-]
How many developers by your definition do you predict will exist 5 years from now?
throw93933944 9 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 8 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.

Kelteseth 32 minutes ago [-]
So slint?
im3w1l 11 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 8 hours ago [-]
Does it support pre-compiled binary packages?
neobrain 3 hours 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 8 hours ago [-]
I believe so. Ideally they should be prebuilt with nix in mind though.
curt15 10 hours ago [-]
Does adopting nix also require subscribing to nixpkgs?
15 minutes ago [-]
fc417fc802 9 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 11 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 11 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 10 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 10 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

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

HeavyStorm 8 hours ago [-]
Maybe it's time to move on?
darkurge 8 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?
semiinfinitely 3 hours ago [-]
no, c++ needs to die (and fast)
htfy96 3 hours ago [-]
Unfortunately this post was removed from r/cpp due to being marked as AI slop
timedude 17 minutes ago [-]
Nope vinnie is not very popular among the elite mods there.
simonask 1 hours ago [-]
I wonder if they just took the title of the blog literally, because it doesn't really read as slop to me, but maybe they got too good. Hard to tell.
steve1977 2 hours ago [-]
I mean it's literally in the title of his blog...

(do we still say blog?)

titzer 2 hours ago [-]
It's way past time. Technologies come and go. Let it go.
rfgplk 7 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.
pjmlp 11 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 11 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 10 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 9 hours ago [-]
iostreams might have added a familiar interface to some, but see: "how" >> "nobody" >> "else" >> "kept" >> "that"

f-strings won

pjmlp 8 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 6 hours ago [-]
Yes I understood, I meant, nobody kept that after C++
11 hours ago [-]
drysine 11 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 11 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 11 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 10 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 2 hours 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 10 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

cowlevel 1 hours ago [-]
Or maybe C++ has run its cycle. Things accumulate cruft over time then they die out and get replaced by one without cruft.
3 hours ago [-]
3form 10 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 10 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 9 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 8 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 2 hours ago [-]
Vinnie Falco sounds like the name of a character from Goodfellas.
fukaiall 3 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.
dist-epoch 10 hours ago [-]
C++ is the walking dead. Like COBOL, it will live forever, but nothing new will be developed in it.
pjmlp 9 hours ago [-]
Depends in what gets to replace CUDA, LLVM, GCC,...
kelseyfrog 3 hours 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.

locknitpicker 10 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 10 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 10 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

cenamus 1 hours ago [-]
So bad that Windows copied them after 25 years
z3ratul163071 9 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!
mac3n 6 hours ago [-]
s/Catch Up/Die/
attila-lendvai 11 hours ago [-]
i used to know everything about C++... what a waste!
drysine 11 hours ago [-]
Nobody knows everything about C++
attila-lendvai 10 hours ago [-]
fair enough. still a waste.
brettermeier 8 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 2 hours 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.

tonyhart7 9 hours ago [-]
"C++ is the language of AI because PyTorch, TensorRT-LLM, CUDA, and llama.cpp run underneath"

ok, this is sad

chuckadams 14 minutes ago [-]
Sad, but don't attribute that point to the article, because it goes on to refute it.
topspin 9 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.

10 hours ago [-]
karel-3d 2 hours ago [-]
Claude, write me a C++ package manager. Make no mistakes
IshKebab 10 hours ago [-]
Let it die.
rob74 10 hours ago [-]
To catch up fast or to die slowly - that is the question...
twhitmore 9 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++.

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

r2vcap 9 hours ago [-]
[dead]
qalmakka 2 hours ago [-]
[dead]
Jasonsf737 10 hours ago [-]
[dead]
qmplayveil 8 hours ago [-]
[dead]
Woshiwuja 11 hours ago [-]
[dead]
mk89 11 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 11 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 10 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 11 hours ago [-]
Or not? who cares about deprecated tech?
dwb 11 hours ago [-]
Deprecated by who?
antonvs 9 hours ago [-]
Developers who’ve collectively left it behind.
dwb 6 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.
antonvs 56 minutes ago [-]
They reduce the size of the community, which affects the language’s continued success.

Many new projects today have choices available to them that have benefits that C++ can’t match, as the OP article points out.

I moved on from C++ between 2000 and 2010. I used to use it for things like distributed Monte Carlo simulations and other large-scale analytics that needed the speed. I contributed to open source networking libraries and other projects. So the languages loses those kinds of contributions. The situation described in the OP is a kind of consequence of that.

adev_ 11 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 10 hours ago [-]
Also the Nintendo 3DS and Nintendo Switch 1 and 2.

It's pretty nice for dependency-less monorepos.

WelkinFolk 11 hours ago [-]
Tonnes of people do. Some, purely so because they love it.

Strange POV to have towards anything.

rapsey 11 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 11 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.
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 20:05:41 GMT+0000 (Coordinated Universal Time) with Vercel.