3 ms·
I wish that when all these guys tried to create a better C/C++ they made it compatible such that I could create shared libraries usable from other languages. C
by ericfrederich 9y ago
I wish that when all these guys tried to create a better C/C++ they made it compatible such that I could create shared libraries usable from other languages.
C, not even C++, is still the only common denominator between languages. The fact that I cannot create a shared library in Golang or Python that is callable from the other is very disappointing.
- andrewmcwatters 9y agoI wonder if that has more to do with C++ undefined name mangling than anything else. C exports are beautifully simple to read. C++ exports on the other hand are some sort of alternate reality mind-bending shitstorm due to the language not defining a scheme for decorators. Maybe I'm wrong and hopefully someone can correct me; I don't have deep export knowledge outside of simply using C exports, but it seems this decision has had long-standing repercussions for people wanting to use FFIs outside of C.