Re:How the CPython compiler works
by devxpy on Thursday September 24, 2020 @09:40AM
(#24578504)
You should look at numba. In some special cases, you can actually write for loops in pure python that are faster than C loops.
[ Parent
| on HN ]
Re:How the CPython compiler works
by JesseMeyer on Thursday September 24, 2020 @09:51AM
(#24578581)
Are you referring to Numba's ability to offload certain loops into a GPU kernel?
Otherwise, Clang has access to the same optimizations that Numba has as they both share LLVM as their optimizing compiler. Beyond that, I think a fairer comparison is C w/ OpenMP vs Numba for parallel processing if syntactic brevity is the metric.