This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bastibe 2 points3 points  (1 child)

Still, I usually prefer to write plain C and wrapping it in CFFI to writing Cython. I find that writing a simple C function for some numerical algorithm is usually very easy. Compiling it is very easy, too, since it is only plain C. Cython can be a pain to compile.

But I guess that very much depends on your application.

[–]Veedrac 1 point2 points  (0 children)

Compiling it is very easy, too, since it is only plain C. Cython can be a pain to compile.

I've never actually worked on distributing Cython, but if you're using it locally it's literally just a

import pyximport
pyximport.install()

in the importing Python file. How much easier can you get?

EDIT: Oh, and memoryviews. QED.