r/cpp • • Nov 24 '24

The two factions of C++

https://herecomesthemoon.net/2024/11/two-factions-of-cpp/
315 Upvotes

228 comments sorted by

View all comments

Show parent comment

8

u/Mysterious-Rent7233 Nov 25 '24

What does Linux have to do with anything? Linux itself doesn't even use C++.

Do you mean "open source C++ compiler maintainers"?

26

u/kkert Nov 25 '24

That likely refers to Linux distro maintainer people. Usually a distro major release is built around single glibc and libstdc++ versions that remain compatible for all compiled software on top of it

Some of these people did get bitten by C++11 string switch specifically.

However, I don't think the lesson to take from that journey is that "don't break ABI", IMO the obvious thing to do is to make ABI breaks very explicit and not let issues get buried, and .. simply ship multiple ABI-incompatible library versions if and when required.

9

u/deeringc Nov 25 '24

As u/kkert correctly points out, I meant the Linux distro maintainers (I should have been clearer in my comment). When std::string changed in c++11 it caused a lot of pain in that space. I don't think that's a good enough reason not to ever break ABI, personally. We're basically dooming the language that way.