by teh · 1d ago · 0 comments
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.
What made me like C++, coming from Turbo Pascal, was the mix of Borland IDEs, the C++ frameworks, and how to have something closer to Smalltalk ideas, while having performance and being at home in UNIX environments without having to deal with the usual C issues.
Frameworks like OWL, CSet++, VCL, show how to have a .NET/Java like productivity, years before they were invented, while using C++.
However that isn't where the hardcode community wants to be, thus those of us that care find home elsewhere.
Additionally, AI agents make the desire to control every bit on application executable now seem out of place.
> 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.
It's a heavy burden. On the road to mastery, every apprentice developer must learn to manage the flaws of the tool chain and language.
(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)
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.
That's one of the points made by 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.
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.
I once couldn't get latest - 4 CMake to find OpenGL on Ubuntu latest - 2. Not latest stuff granted, but OpenGL's location on Linux is pretty clear-cut - I checked the CMake built-in stuff to find it and it all looked fine, but no luck, so I just hard-coded an extra path.
Incoming: Rust allocators, std::random, std::simd, ByteStr, ByteString, zerocopy (longer term)
Rust just moves far faster than C++ standardization.
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..
Inline namespaces mean all of those libraries could be replaced/improved in a binary compatible fashion.
I've got no confidence, though, that C++ can make such a change. It's leadership is just too fragmented and has a lot of old leaders that likely don't agree that any of this is a real problem.
Now Abseil is a kind of loopy rabbit hole, as well.
At least C++ will trap AGI. No way to escape.