Original Question: How can I utilize goroutines in Python code, while avoiding the need for a C layer?
In lieu of Cython for connecting C and Python, the objective is to leverage goroutines for implementing a highly parallelizable, but computationally expensive, portion of Python code. The question explores the feasibility of achieving this interconnection without reverting to a C layer.
Answer:
Update 2015: As of Go 1.5, the capability to construct .so objects and import them as Python modules has been introduced. This empowers the direct execution of Go code from within Python, eliminating the need for a C layer.
For further information, consult:
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3