Loading video...

Video Failed to Load

Go Home

pov: you're a CPU waiting for Python to run a single line of code

47,926 views • 2 months ago •via X (Twitter)

22 Comments

avrl ☘'s profile picture
avrl ☘2 months ago

CPU waiting for rust code to get compiled

Roy's profile picture
Roy2 months ago

One day someone told me "Just don't use Python" and I've been a free man ever since.

mouth's profile picture
mouth2 months ago

do you understand what a CPU is? (it's the thing that runs python)

Mr Tomycj's profile picture
Mr Tomycj2 months ago

I don't understand, isn't the CPU busy running that python code? I imagine python is slow because it makes the CPU do lots of things, so the CPU is more busy than it should be for a given task.

(infinite-jes)'s profile picture
(infinite-jes)2 months ago

Python's like me. It likes to take its time.

Victor Garcia's profile picture
Victor Garcia2 months ago

The ruby code on Github's servers after getting 275m commits a week

🐔🇩🇴 kikirikii's profile picture
🐔🇩🇴 kikirikii2 months ago

Is this the real thing?

Valentin Ignatev's profile picture
Valentin Ignatev2 months ago

@polloimperial No community note means yes!

🐔🇩🇴 kikirikii's profile picture
🐔🇩🇴 kikirikii2 months ago

Hahahaha It would be funny if you got community noted by the python foundation

CapacitanceZ's profile picture
CapacitanceZ2 months ago

I think about this scene from Megamind often

Reece's profile picture
Reece2 months ago

Facts and also great movie

Tom Miller's profile picture
Tom Miller2 months ago

Game engines written in C++ struggle when you have more than a thousand NPCs on screen. Meanwhile Python can render 100,000 NPCs at the same time: At 120 fps. Maybe it's not the language, it's the skill that's the issue. 🤪

Wokensöldner's profile picture
Wokensöldner2 months ago

wrong if you add two numbers somewhere a C ffi is being called

Paths's profile picture
Paths2 months ago

the thing i hate the least about python is the speed/idea, its the packaging and bloat and all around out-doneness by a million other things

RH Fardin's profile picture
RH Fardin2 months ago

CPU entered retirement before that line finished

rusa's profile picture
rusa2 months ago

the funny part is how often the cpu is right to wait. most python lines are calling into c that's already fast. the slowness you feel is interpreter overhead between the fast parts, not the work itself. python is a great conductor and a terrible instrument.

fgei3gi's profile picture
fgei3gi2 months ago

Wouldn't it be running code the interpreter and other setup code until it rubs real code

Kamen's profile picture
Kamen2 months ago

CPU waiting for me to code something 🫡

DK's profile picture
DK2 months ago

Just put n_jobs=-1

Joaquin's profile picture
Joaquin2 months ago

Banger

azeke's profile picture
azeke2 months ago

it's actually CPU waiting for random memory 99% of its operating time

suresh314x's profile picture
suresh314x2 months ago

python deciding what to run also runs on cpu

Related Videos