Hello, I’m enchanted with the idea of bringing performant julia code into a python script through a shared library, especially if it as easy as PackageCompiler seems to imply. I am almost entirely unfamiliar with compiled languages, so much of this feels new to me.
I got a simple script to work, but now the problem I am having is with the following seemingly simple script:
test.jl Base.@ccallable function func0()::Cdouble return sum([1.34, .7]) end Base.@ccallable function func1()::Cdouble return (1.2 + .1) / 2.0 end
I compile the file to a shared library with
julia juliac.jl -vas test.jl
func1 from python works fine, but
func0 causes a segfault. I have this same problem calling any imported function, and I don’t understand why. I imagine I am misunderstanding something fundamental.
Thank you in advance!