Writing a Python extension in Go (Golang)

前端 未结 4 1660
一整个雨季
一整个雨季 2020-12-12 20:58

I currently use Cython to link C and Python, and get speedup in slow bits of python code. However, I\'d like to use goroutines to implement a really slow (and very paralleli

4条回答
  •  执笔经年
    2020-12-12 21:03

    Update 2015: possible as of Go 1.5 https://blog.filippo.io/building-python-modules-with-go-1-5/

    with Go 1.5 you can build .so objects and import them as Python modules, running Go code (instead of C) directly from Python.

提交回复
热议问题