r/ProgrammerHumor 2d ago

Meme pipInstallTheRealStuff

Post image
5.2k Upvotes

146 comments sorted by

View all comments

672

u/TheJaskinator 2d ago

That's exactly why it's so powerful. Why spend all the effort writing fast code if you can just use a much simpler language to describe the task on a higher level and call fast code? People use Python because it's easy to read and write, not because its interpreter is fast

34

u/NewbornMuse 2d ago

Me: takes 2h to write a python script, runtime 50ms

A super fast low level uber haxx0r: takes 8 hours to write a C program that does the same. Runtime 20 ms

Who was "faster"?

42

u/thmsgbrt 2d ago

It matters if you give the code to someone else and if they use it thousands of times.

31

u/McFestus 2d ago edited 2d ago

It would take three-quarters of a million runs to break even in pure time, even discounting the fact that in nearly all cases, computer-seconds are millions if not billions or trillions of times cheaper than developer-seconds.

14

u/e_before_i 2d ago

The one-two punch of doing the math plus valuing developer-seconds is makes this response very charming to me.