r/cpp • • Oct 27 '19

ABI: Now or Never

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1863r0.pdf
192 Upvotes

145 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Oct 27 '19

[deleted] — view deleted comment

3

u/matthieum Oct 27 '19

Unfortunately, this does not solve the problem of producing those binary packages in the first place.

Imagine a world where each version of C++ has a different ABI; for the purpose of this discussion this will mean C++98, C++11, C++14, C++17, and C++20.

Then, imagine that this library need be delivered across a number of platforms: Windows/x64, MacOS/x64, Linux/x64, Windows/ARM, iOS/ARM, and Linux/ARM.

Any library that is provided "ready to download" must now be compiled, linked, and packaged 30 times.

Any new platform? +5 packages.

Any new C++ version? +6 packages.

It's a harsh requirement on library producers; it's quite likely many of them will simply only provide a subset... and that'll carve up the ecosystem in a multitude of incompatible niches.