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

reply
[flagged]
reply
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)

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

reply
Sounds like you’re reconstructing a snapshot of google3
reply
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.
reply