3 ms·
These days Lisp works pretty well with C because C has a defined ABI. That was historically not the case for C++, so to call C++ functions you needed to first w
by dreamcompiler 11mo ago
These days Lisp works pretty well with C because C has a defined ABI. That was historically not the case for C++, so to call C++ functions you needed to first wrap them in C.
C++ might be easier now; I don't know.
- teunispeters 11mo ago"sort of". C++ is a lot more stable ABI these days, but linking still means looking into name mangling and data types. At least it no longer seems to be changing between compiler patches, as with - say - earlier GCC. (gcc 2 through 4 were not fun for this) From a look a little, it seems rust has this pretty reliably - probably helped by sharing link environments with LLVM. (I've only explored this a little from time to time). Mostly my work is all C and a bit of C++.
- bitwize 11mo agoI do a lot of work in Gambit, which integrates very well with C, C++, and Objective-C. But that's because it transpiles to C source. Gambit does a lot of other stuff these days, including x86 and even JavaScript compilation, but its roots as a scheme-to-C compiler are still in evidence.