Hacker News new | ask | show | jobs
by JohnnyLee 4258 days ago
My preference is to work in C directly. That being said, I may look into a Cython implementation for a future post.
1 comments

Cython lets you avoid a lot of C API boilerplate. The code to parse function arguments is quite distracting, and especially when it comes to managing reference counts it's error prone to do it manually.

With Cython you get to choose whether to work in a purely low-level style that maps directly to C code, or whether you want to mix in Python code. This lets you speed up existing code gradually.