Hacker News new | ask | show | jobs
by gghoop 622 days ago
I'm interested in calling go from python, gopy generates python bindings to cgo. Maybe HPy<->cgo would have less overhead.
2 comments

Use IPC. Go wilfully set itself apart from and against the C ABI, it’s generally not worth fighting against that.
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.