Top
Best
New

Posted by simonask 9 hours ago

C++ Needs to Catch Up(www.vinniefalco.com)
185 points | 188 comments
teh 6 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.

heresie-dabord 6 hours ago||
[flagged]
hmry 2 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)

sufficientsoup 4 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 20 minutes ago||
Sounds like you’re reconstructing a snapshot of google3
vinniefalco 4 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.
nly 8 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 7 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 18 minutes ago|||
Well LLVM supports HALO optimization can remove frame allocations when the coroutine lifetimes are suitably nested, though you need to apply some specific annotations to assert this is safe in a given context before it will kick in.

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

Any details?

nly 7 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?

jayd16 31 minutes 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 23 minutes ago||
If you can swap out the implementation then that means you can't mess with the API.

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

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

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

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

silvestrov 5 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 4 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.

bee_rider 9 minutes 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 4 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 4 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.

zarzavat 6 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 6 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 5 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 5 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 4 hours ago|||
bad mistake. would have been more productive to use that LLM to rectify your c++ instead.
fwsgonzo 3 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 5 hours ago|||
I can't see it going anywhere soon. The amount of existing projects in C++ still need developers
neuwirth 5 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 5 hours ago||
What labs?

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

dheck 1 minute ago|||
AFAIK Fortran is still heavily used in the physical sciences, from particle simulations to weather and climate models.
bena 19 minutes 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 5 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 5 hours ago|||
They've been saying C++ is dying for decades now but it's still here with (almost) all its problems :)
jibalt 6 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 3 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.
teddyh 46 minutes ago|||
At least C++ has an ABI and can produce dynamically linked executables and libraries.
gambiting 6 hours ago||
It's still the most popular language for writing video games in, and it's an industry larger than films. C++ isn't going anywhere, unless Sony/Nintendo/Microsoft somehow provide SDKs for anything other than C++. But they can't even provide non-windows compilers for their toolchains, so I won't hold my breath.
fwsgonzo 6 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 5 hours ago|||
https://akaganite.com

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

giancarlostoro 23 minutes 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.

jcelerier 22 minutes 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 19 minutes 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 11 minutes ago||
This is every single C++ project.
filipdobro 8 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 8 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 7 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 7 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 7 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 7 hours ago||
Sure, it doesn't scale to your typical node.js project with thousands of dependencies. That's a good thing.
imtringued 58 minutes 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 25 minutes ago||||
Classic sour grapes.
mort96 9 minutes ago||
I find working with node.js projects with thousands of dependencies to be very uncomfortable, when I'm doing web stuff I go out of my way to try to avoid that for the most part but it feels like I'm fighting the ecosystem the whole way.

If that's sour grapes then so be it.

iamsaitam 6 hours ago|||
"it's not a bug, it's a feature"
fc417fc802 6 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 23 minutes ago||
Oh yea, it's the way every other popular language does it that is unsafe. Not C++.

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

mort96 6 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 5 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 5 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 4 hours ago||
Pious suffering is not a virtue.

We're trying to get thing done, here.

mort96 4 hours ago||
Where did I advocate for suffering and not getting things done
simonask 4 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 4 hours ago||
I disagree with your characterization. I have laid out my argument. Can you kindly either fuck off or explain which part you think is incorrect?
quietbritishjim 7 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 7 hours ago||
The "vc" in "vcpkg" stands for Visual C++.
pjmlp 6 hours ago||
Because that is where it was born, and the team that owns the project.
mort96 6 hours ago||
And it means it's completely uninteresting in my eyes.
pjmlp 5 hours ago||
Nowadays that will cut out plenty of open source projects, given Microsoft sponsorship.
mort96 5 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 5 hours ago||
Ah so Microsoft can sponsor whatever they feel like, just not prefix the name with vc.
mort96 5 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 5 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 5 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 57 minutes ago||||
The Conan package manager is cross-platform and just what the doctor ordered for C/C++.

https://conan.io/

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

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

Chaosvex 1 hour ago|||
Works perfectly fine on Linux. I use it on multiple platforms, no bother.
egorfine 1 hour ago||
You are the second person to tell me it's nice on linux.

Seems I should actually give it a try. Thanks!

luke5441 7 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 7 hours ago||
I do manage a build cluster for Windows/macOS/Linux and I have to manage a bunch of dependencies built in a plethora of different ways and configurations on all three platforms.

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

atemerev 7 hours ago|||
I use Spack, from my academic years.
pjmlp 8 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 6 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 7 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 7 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 7 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 6 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 7 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 4 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 3 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.

worried_individ 6 hours ago|||
what AI literally does is make unobservable language/code level differences between languages irrelevant.

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

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

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

pjmlp 6 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 5 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 3 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 2 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 1 hour ago||
Then you have not been reading enough "XYZ rewritten in Rust" blog posts and related comments.

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

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

oreally 4 hours ago||
It will last forever now that LLMs are around to detect and describe ways to fix c++ gotchas.
rbnafo 7 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 7 hours ago||
> you don't need ISO committees to produce good, maintainable programming languages.

Many would argue it even stands in the way.

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

gignico 7 hours ago||
Those are all the same reasons why I switched to Rust after 20 years of C++. Not the borrow checker, even though it’s fine to have. Pattern matching and ADTs would be also appreciated these days…
marsten 6 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 5 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.

semiinfinitely 11 minutes ago|
no, c++ needs to die (and fast)
More comments...