5 ms·
I am not too experienced in Python as much as I am in C. In general, do you think Cython might be better middle ground, or am I completely amiss of the various
by eggy 10y ago
I am not too experienced in Python as much as I am in C. In general, do you think Cython might be better middle ground, or am I completely amiss of the various fits between cffi, ctypes and Cython?
End use is mainly DSP-like code, neural networks (Darknet in C), and OpenCV and CUDA.
- mivade 10y agoCython is intended for making Python extension modules. So if the end goal is to make something that you interact with only from Python, then Cython is a good choice. You can still use it to simply wrap some existing library, but ctypes or cffi might then be a bit simpler since it they don't require an added compilation step.