News for hackers. Stuff that matters.
Re:Faster Python with Guido van Rossum by UnpossibleJim on Thursday October 07, 2021 @11:27AM (#28787583)
I'm curious, as you seem very versed in the Python ecosystem, where you stand on projects like Cython and integration of C libraries with Python using projects like Cython? Or would you consider that more of a stop-gap measure and not "real" Python (which would be valid)?
Re:Faster Python with Guido van Rossum by ctur on Thursday October 07, 2021 @11:37AM (#28787709)
Things like Cython are great until they aren't, so yes, I think of them as a stop gap (albeit a practical and useful one). Any time you change interpreters or the execution model, you risk compatibility challenges with third party libraries and native modules. You also risk getting painted into a corner by their limitations. They definitely can help with hot code paths when their trade-offs don't prevent it but it still ends up being a kluge working around fundamental language issues.

But when Cython fits, it's great, and a good tool to have in your toolbox if you're working with Python.