News for hackers. Stuff that matters.
Re:The Accelerating Adoption of Julia by ZephyrBlu on Tuesday October 20, 2020 @03:21PM (#24841349)
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.

Re:The Accelerating Adoption of Julia by adamnemecek on Tuesday October 20, 2020 @03:57PM (#24841736)
Magic of macros.
Re:The Accelerating Adoption of Julia by eigenspace on Tuesday October 20, 2020 @04:22PM (#24841974)
To be fair, there are no macros in that example. Just good ol polymorphism and exceptionaly hackable semantics.
Re:The Accelerating Adoption of Julia by adamnemecek on Tuesday October 20, 2020 @04:47PM (#24842225)
Pycall does rely on macros and so do essentially all the other interop packages.
Re:The Accelerating Adoption of Julia by eigenspace on Tuesday October 20, 2020 @04:52PM (#24842259)
Sure, 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.

Re:The Accelerating Adoption of Julia by adamnemecek on Tuesday October 20, 2020 @05:55PM (#24842738)
I'm pretty sure that macros are involved in the invocation of the python function.