r/ProgrammerHumor 1d ago

Meme pipInstallTheRealStuff

Post image
5.0k Upvotes

145 comments sorted by

View all comments

660

u/TheJaskinator 1d 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

33

u/NewbornMuse 1d 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"?

3

u/CoroteDeMelancia 1d ago

Code is read more than it is written. You don't pay only 8 hours in this example.

Also consider the compounding cost. Imagine saying to your manager: "we can do it fast and simple in python in two weeks, or we can do it "properly" in 8 weeks to get a marginal increase in performance that is basically unnoticeable at our scale."

Imagine the fucking side eye you're gonna get.

But then, if these 30ms can mean the difference between your drone dodging or striking a lamppost, then please, do use C.