Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Cython is a way of writing compiled code that links against Python in a way that's easier than than using the Python.h API directly.

There are two things you can do with this. The first is you can write your performance-sensitive code directly in Cython, in which case, yes, that's a direct competitor to PyPy. (So is writing your performance-sensitive code directly in C and using Python.h to expose it to Python as a native-code module.)

The second is that you can write bindings to existing C (or C-ABI-compatible, really) code in Cython, instead of using C and Python.h to write those bindings. In that case, it's not quite that you care about the performance of your C code, but that it already exists, and you just need to call into it somehow. Having PyPy be able to use these existing codebases is valuable.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: