3 ms·
> as well as any compiled language that can expose a compatible C ABI which includes Go I don't think that's true. Go only has a FFI to the platform's C ABI (c
by dom0 9y ago
> as well as any compiled language that can expose a compatible C ABI which includes Go
I don't think that's true. Go only has a FFI to the platform's C ABI (cgo).
- CogitoCogito 9y agoI'm not sure what you mean by this. Haven't you had the ability to specify as C ABI with the standard golang compiler since 1.5? I don't believe you need cgo. Maybe I misunderstood your comment? https://blog.filippo.io/building-python-modules-with-go-1-5/ https://blog.filippo.io/building-python-modules-with-go-1-5/ As long as you specify the correct interface, Python will happily load your modules.
- dom0 9y agoDidn't know that. Thanks!