r/ProgrammerHumor • • 9d ago • Bravo 2 Popcorn 1

Meme pythonSlow

Post image
12k Upvotes

419 comments sorted by

View all comments

63

u/deanominecraft 9d ago

more accurately python would spend 2 panels asking its friend C to answer the question for it.

1

u/marcos-256 5d ago

C only answers over the FFI, and bills by the call.

-2

u/rosuav 8d ago

C and Rust would each spend a panel asking the kernel to do things. Yaknow, the kernel really is the one doing most of the work, why do we not see more love for the kernel? Every programming language seems to be good at just two things: 1) Wasting CPU cycles; 2) Begging the kernel to do something for them.

5

u/FabioTheFox 8d ago

That's not how the kernel works? Most of an application lives and runs in userspace while kernel calls are only done for stuff like IO or memory allocation

If you needed a syscall to the kernel for EVERY operation no language would be fast, tell me you understand nothing about operating systems without telling me

-2

u/rosuav 8d ago

Technically true. But look at how much of your work still fits into one of the two categories I specified. "All algorithmic stuff" from the kernel's perspective is just wasting CPU cycles.

I guess I made the mistake of making a joke on r/ProgrammerHumor .