3 ms·
The fact is that all these options are more complex than just using Nim. Cython is certainly great, but still Python objects and C structs differ, and you have
by pathsjs 11y ago
The fact is that all these options are more complex than just using Nim.
Cython is certainly great, but still Python objects and C structs differ, and you have to keep in mind the difference. Same for C functions and Python functions. And if you use the dynamic features of Python, you do not gain much in efficiency, because Cython does not have static dispatch, hence it has to rely on runtime checks.
In a way, Cython is its own language, and it is not a particularly powerful one. The help you get from types is limited, as many things will just have type object. At this point, I just prefer to use Nim, which is friendly enough, and has overloading, generics, macros and many other features.