Hacker News new | ask | show | jobs
by joelg236 3706 days ago
Be aware that python opencv uses c++ calls, it's only a wrapper. SciPy or numpy might be better examples.
2 comments

I was under the impression that Numpy also just calls BLAS underneath? Hence why doing element-wise calls in Numpy is far, far faster than simply doing nested for loops.

But I think this is the great strength of Python. It's a glue language. If you need speed, you can always write a wrapper around a C/C++ library.

Funny you should say C/C++, because BLAS is Fortran.
Actually, it's mostly assembly (depending on the particular implementation). Lapack is Fortran though.
> SciPy or numpy might be better examples.

Python comprises less than 50% of the code in both of those repositories, but they are certainly great for learning the CPython API.