Hacker News new | ask | show | jobs
by davidgrenier 1073 days ago
But isn't what makes numpy efficient written in C?
2 comments

Everything that makes Python efficient is written in C or C++ or the like. Python in these situations is just a glue language (with an optional interactive layer) that makes using these libraries more feasible.
Well, the Java source uses threads. Guess how that's implemented.

FWIW if python provides an abstraction that keeps the code readable while keeping the efficiencies of C, I think that should count for python, not against it.

I mean.. threads are implemented by the OS, I don’t really see the equivalency here.