3 ms·
Why is language interop not this simple for everything? It seems insane to me that it's this easy in Julia, yet most other languages are completely incompatibl
by ZephyrBlu 6y ago
Why is language interop not this simple for everything?
It seems insane to me that it's this easy in Julia, yet most other languages are completely incompatible without transpiling one into the other.
- adamnemecek 6y agoMagic of macros.
- eigenspace 6y agoTo be fair, there are no macros in that example. Just good ol polymorphism and exceptionaly hackable semantics.
- adamnemecek 6y agoPycall does rely on macros and so do essentially all the other interop packages.
- eigenspace 6y agoSure, they all provide nice macro interfaces, but nothing in the above example required those macros as far as I understand. This is not to say macros aren't awesome.
- adamnemecek 6y agoI'm pretty sure that macros are involved in the invocation of the python function.