3 ms·
GTK is a C library, which makes it much easier to make language bindings for compared to libraries written in C++.
by lockhouse 3y ago
GTK is a C library, which makes it much easier to make language bindings for compared to libraries written in C++.
- cozzyd 3y agoIt's amazing how "modern" languages don't bother having a stable ABI, relegating themselves to being silos.
- dragonwriter 3y agoLanguages generally don’t have ABIs. Including C. (A particular C implementation on a particular platform may have an ABI, and that may be stable, but that’s not a language feature.)
- badsectoracula 3y agoThat is pointless hairsplitting, in practice in every mainstream platform where programs can use shared libraries there is a C ABI. That it is not defined by the C standard doesn't mean it doesn't exist, it only means that the C standard cannot be relied on for the ABI - and that is all that it means wrt. to the C standard. But very few programs limit themselves only to what is defined by the C standard.
- deleted 3y ago[deleted]
- duped 3y agoA stable ABI ties you down in a lot of ways that compiler and language authors don't place a ton of value on early in the lifetime of a language. And to be honest, the necessity of one is a bit over played. Dynamically linked system libraries are going the way of the dodo.
- cozzyd 3y agoWell, there's a reason why GTK has bindings to every language and most other GUI frameworks don't.