3 ms·
This is fine if all you care about is functions. Very little in Python is just functions though, and the same is true in C++. The issue with FFI is always adapt
by rkangel 5y ago
This is fine if all you care about is functions. Very little in Python is just functions though, and the same is true in C++. The issue with FFI is always adapting the different concepts from one language to another. I can't see how (or if they try) to unify other language's OOP with a functional language over the top.
I like the idea though - one functional language to rule them all is a great dream!
- remexre 5y agoYeah, I've thought a bunch about polyglot environments and the design I keep coming back to is a very generic object representation (almost definitely with a metaobject protocol), of which functions are just one kind of object. GraalVM does this with https://www.graalvm.org/truffle/javadoc/org/graalvm/polyglot/Value.html https://www.graalvm.org/truffle/javadoc/org/graalvm/polyglot...
- arendsee 5y agoAs the morloc developer, I can tell you OOP support is in the pipeline (and there is some support now). A proper reply to this comment would fill a very long blog post, and I'm currently on vacation, so I'll have to get back to you later.
- rkangel 5y agoIt's cool to know that there are plans for it. I look forward to hearing about them when you get there. Enjoy your vacation!