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

Probably Cython. Sometimes it helps, sometimes it doesn't work (doesn't like generator comprehensions iirc) but mostly it provides a "sliding scale" into C or C++ land -- after the first compile, you can start littering type declarations around the code and you can stop whenever you hit the speed you want. It has been a good solution for me in the past, but probably only because I started with a Python codebase. If I were starting afresh I wouldn't bother.



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

Search: