News for hackers. Stuff that matters.
Re:Python extension language using accelerators by 6gvONxR4sf7o on Wednesday September 22, 2021 @05:41PM (#28622249)
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.
Re:Python extension language using accelerators by jkrubin on Wednesday September 22, 2021 @11:38PM (#28624976)
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.