Remix.run Logo
▲ pjmlp 3 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 3 hours ago | parent | next [-]

> 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 2 hours ago | parent [-]

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 an hour ago | parent [-]

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

f-strings won

▲pjmlp 16 minutes ago | parent [-]

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

▲ 3 hours ago | parent | prev | next [-]
[deleted]
▲drysine 3 hours ago | parent | prev [-]

>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 3 hours ago | parent [-]

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 3 hours ago | parent [-]

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 2 hours ago | parent [-]

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.