News for hackers. Stuff that matters.
Re:Ask HN: Real world examples of interaction between Python... by itamarst on Wednesday November 29, 2017 @08:05AM (#15806428)
Sadly the experiment I did isn't public. My memory is I compiled the Go thing to a shared library, and exposed a C API, and then used cffi to talk to the C API (based on https://blog.filippo.io/building-python-modules-with-go-1-5/, except cffi instead of Python C API).

Go objects needed to be managed C style: internally Go thing had a map between integer identifier and object, and Python just got the integer identifier and had to manually tell Go code to deallocate.

Re:Ask HN: Real world examples of interaction between Python... by cakes on Wednesday November 29, 2017 @03:53PM (#15810737)
I was recently trying to do something similar and looked/tried go as a solution but I ran into some initial issues around my own confidence that the shared lib would work and that I wouldn't eventually really mess up the deallocation step.
Re:Ask HN: Real world examples of interaction between Python... by itamarst on Wednesday November 29, 2017 @05:13PM (#15811384)
I'm not sure I'd recommend it, yeah...
Re:Ask HN: Real world examples of interaction between Python... by wareotie on Saturday December 02, 2017 @01:43PM (#15833278)
Thanks for the suggestion. In fact, I'm thinking in dropping the idea and port it, but I'm not confident with my Python skills and there are plenty of concurrency stuff in the library.

Well, I guess is time to learn Python