3 ms·
... but Cython is not Python, is it? The argument that "Python can do it, you just have to use something other than Python) is very weird to me. I began lookin
by jakobnissen 6y ago
... but Cython is not Python, is it? The argument that "Python can do it, you just have to use something other than Python) is very weird to me.
I began looking into Julia because I was forced into Cython during a project and I loathed having to add a separate, statically compiled section of my code that did not integrate well with the rest of Python (e.g. no stack traces through Cython), and kept breaking (because of some linker issues in Conda)
- mlthoughts2018 6y agoCython is a superset of Python. If it’s valid Python, it’s valid Cython. Cython supports the full range of Exceptions and Python stack traces, and you can annotate on a per-function basis whether you want this in Cython. Managing Cython implementations as separate extension modules is a feature, not a bug - it separates concerns and allows only spending any effort on type system constructs in the small amount of cases where those optimizations will help you. Cython is extremely easy to compile and standard Python packaging tools work easily with it out of the box, conda included.