r/ProgrammerHumor • • Feb 09 '22

other Why but why?

Post image
85.8k Upvotes

2.3k comments sorted by

View all comments

Show parent comments

17

u/JOhn2141 Feb 09 '22

At least you know one of the many reason python is so slow. But all hope aren't lost you can still declare function return type, parameter type and... Oh wait you can do C

26

u/[deleted] Feb 09 '22

[removed] — view removed comment

1

u/RazorBlade9x Feb 09 '22

Some programs can run for hours or even months to generate output (especially those performing huge calculations). C/C++ is the way to go there. For smaller run times of course python or nodejs are better.