3 ms·
you just gave me a great idea for a new language, Well actually a big library of ASM code that every other language could write wrappers to to get low level gai
by gonzo41 8y ago
you just gave me a great idea for a new language, Well actually a big library of ASM code that every other language could write wrappers to to get low level gains on all the boilerplate. Then we could all focus on making that really fast.
- amelius 8y agoYou 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.