top | item 41756242

(no title)

gghoop | 1 year ago

I'm interested in calling go from python, gopy generates python bindings to cgo. Maybe HPy<->cgo would have less overhead.

discuss

order

masklinn|1 year ago

Use IPC. Go wilfully set itself apart from and against the C ABI, it’s generally not worth fighting against that.

crabbone|1 year ago

It's a no-go at this point, if you want this on MS Windows. CGo on MS Windows uses MinGW, while CPython uses MSVC. It's very hard to make this work due to name mangling.

I.e. you can do this for Python from MSYS2, for example, but not for the one your users will likely have.