4 ms·
> That said, I really wish proponents of other languages would get their > stuff together about creating libraries that can be used from other languages. > A li
by kthielen 8y ago
> That said, I really wish proponents of other languages would get their
> stuff together about creating libraries that can be used from other languages.
> A library written in C can be used by anyone else. Many other languages are
> avid consumers of this functionality, many advertise it as a key feature, but
> very few return the favor by producing reusable code.
I kind of agree with you on this. I have a bidirectional binding process in my hobbes project at Morgan Stanley (https://github.com/Morgan-Stanley/hobbes https://github.com/Morgan-Stanley/hobbes) such that C/C++ functions can be viewed as hobbes functions and hobbes functions can be viewed as C/C++ functions (without translation).
This works as far as C/C++ types are adequate for your programming language, which obviously does cover a huge space, but there are types that don't translate well and there are staging considerations that don't translate either (e.g. there is a logical type that can be decided, but it's not decided until what might be regarded as "run time").
There are interesting problems to be considered in this area though, happy to discuss further out of band if anyone is interested (discussions on hacker news tend to be short-lived and shallow IME).