Top
Best
New

Posted by simonask 9 hours ago

C++ Needs to Catch Up(www.vinniefalco.com)
190 points | 193 commentspage 3
HeavyStorm 6 hours ago|
Maybe it's time to move on?
darkurge 6 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?
IshKebab 8 hours ago||
Let it die.
rob74 7 hours ago||
To catch up fast or to die slowly - that is the question...
twhitmore 6 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++.

rfgplk 4 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 9 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 8 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 8 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 7 hours ago||
iostreams might have added a familiar interface to some, but see: "how" >> "nobody" >> "else" >> "kept" >> "that"

f-strings won

pjmlp 6 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 3 hours ago||
Yes I understood, I meant, nobody kept that after C++
drysine 9 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 9 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 8 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 8 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.
r_lee 7 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

iekeb 21 minutes ago||
Vinnie Falco sounds like the name of a character from Goodfellas.
kelseyfrog 27 minutes 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.

3form 8 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 7 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.

More comments...