Hacker News new | ask | show | jobs
by kdlafan 660 days ago
It seems like an axiom that no Python package can be written that does not depend on C/C++/Java doing the real work.
2 comments

Python is successful because everyone is aware that it has relatively terrible performance. As a result, anything remotely heavy is put into performant libraries that use not-python, leaving a nice glue language with fast libraries.

If you have something CPU bound, and it's python code hitting that ceiling, you're probably throwing away 10x performance [1]. That's ok, because anyone that cares about performance doesn't do that (or quickly learns).

[1] https://programming-language-benchmarks.vercel.app/cpp-vs-py...

Why would you rewrite something that already exists? It'd be a different story if the library evolved naturally starting with python, which it very much might if it was created today.