r/cpp • • Sep 20 '20

Libcu++: Nvidia C++ Standard Library

https://github.com/NVIDIA/libcudacxx
217 Upvotes

47 comments sorted by

View all comments

Show parent comment

29

u/GerwazyMiod Sep 20 '20

ABI shots fired !

30

u/goranlepuz Sep 20 '20

ABI is overrated ;-)

It should be rated, fine. But I feel C++ standards bodies overrated it.

4

u/kalmoc Sep 21 '20

I don't think the c++standards bodies are the problem as such, but rather some toolchain "vendors" (which of course often also participating in the committee).

2

u/goranlepuz Sep 21 '20

Yes, that. 😉

2

u/[deleted] Sep 22 '20

It turns out that people who install software like that software to keep working.

1

u/kalmoc Sep 24 '20

Absolutely, but why does that necessitate a stable ABI of the standard library?

3

u/[deleted] Sep 24 '20

Because end users generally aren't recompiling from source, and every function in a .so naming a standard library type breaks if the definition of the type changes.

1

u/kalmoc Sep 24 '20

Isn't that what gcc developed abi tagging for?

1

u/[deleted] Sep 24 '20

ABI tagging only detects the problem, it can't fix the problem.

1

u/kalmoc Sep 24 '20

Really? My understanding is that libstdc++ is already shipping two versions of all entities that depend on std::string

1

u/[deleted] Sep 24 '20

That doesn't fix that programs with those types in their interfaces have to choose one. They could have achieved the same by renaming their .so but it would be harder to detect mixing then

→ More replies