4 ms·
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 nump
by hmaarrfk 3y 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.
- davidgrenier 3y agoBut isn't what makes numpy efficient written in C?
- btschaegg 3y agoWell, 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.
- kaba0 3y agoI mean.. threads are implemented by the OS, I don’t really see the equivalency here.
- phoe-krk 3y agoEverything 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.
- KingOfCoders 3y agoIf your web service runs with numpy, excellent.
- prirun 3y agoA 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.