If you want to avoid PyCall/PyJulia issues at all cost, you can use libjulia
through ctypes
(or cffi
) after compiling your Julia code using PyackageCompiler. Here is an example using ctypes
: AOT compiling using PackageCompiler - #8 by tkf
But I imagine it requires a lot of boilerplate code since you have to bridge two GC’ed languages manually and the values have to be passed around through C-compatible types (like int
, double
, pointers, etc.).