Hacker News new | ask | show | jobs
by hmaarrfk 1071 days ago
Thanks for this link.

They also seemed to have avoided libraries like numpy.

In my mind, python made it possible to hardware optimize with libraries like numpy quite easily. Avoiding it is a mistake. I'll try to see if I have time to play the game myself and throw my attempt in there.

2 comments

But isn't what makes numpy efficient written in C?
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.
If your web service runs with numpy, excellent.
A web service is not typically compute-bound, so it's doubtful a Python web app is going to use 38x more energy than a Java web app.