4 ms·
You forget that every language has its own ABI, and runtime quirks. Sending a string to a function works differently in C vs Java vs Python vs ... Sending obje
by amelius 8y ago
You forget that every language has its own ABI, and runtime quirks. Sending a string to a function works differently in C vs Java vs Python vs ...
Sending objects with references to other objects (which may need to be GC'ed) is even more difficult.
- elcritch 8y agoThe Truffle VM stuff takes an interesting approach by (afaik) executing the languages getter/setters and then having a common data format (I presume?). What if someone could make a LLVM version of that?
- mike_hearn 8y agoThey already did: https://github.com/oracle/graal/tree/master/sulong https://github.com/oracle/graal/tree/master/sulong It's a part of Graal itself now. It runs C, C++, Rust, etc.