2 ms·
https://morioh.com/p/e58a77b1d33b https://morioh.com/p/e58a77b1d33b The talk shows how to use CGO to make Go code available as a C library and then to use Cyth
by tbrownaw 6y ago
https://morioh.com/p/e58a77b1d33b https://morioh.com/p/e58a77b1d33b
The talk shows how to use CGO to make Go code available as a C library and then to use Cython to make this library available as a Python extension module.
- closeparen 6y agoWe actually tried this. The Go runtime really does not like to be embedded in Python. When Python forks, as for example Celery likes to do, Go deadlocks. Also had serious troubles with provenance, versioning, and compatibility of the C artifacts. Somewhere along the line there were magic hex numbers. It was a nightmare. The project was scrapped in favor of a sidecar.