Hacker News new | past | comments | ask | show | jobs | submit login

Cython is so great. The two easiest ways I know to speed up python are 1) can I write this arraywise with enough cleverness (it's much more frequently doable than I always expect, and often comes with clarity gains) and just use numpy, and 2) just use cython. If cython wasn't such a pain in the ass to debug, maybe we'd all be writing cython instead of python today.



That is exactly my experience with cython. It’s a huge pain in the ass to debug. I found pybind11 to be way less of a pain in the ass than cython.

In most cases figuring out how to do it with nutty numpy is the least time consuming and is fast enough.




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

Search: