正在加载视频...

视频加载失败

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

47,926 次观看 • 2 个月前 •via X (Twitter)

22 条评论

avrl ☘ 的头像
avrl ☘2 个月前

CPU waiting for rust code to get compiled

Roy 的头像
Roy2 个月前

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

mouth 的头像
mouth2 个月前

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

Mr Tomycj 的头像
Mr Tomycj2 个月前

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) 的头像
(infinite-jes)2 个月前

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

Victor Garcia 的头像
Victor Garcia2 个月前

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

🐔🇩🇴 kikirikii 的头像
🐔🇩🇴 kikirikii2 个月前

Is this the real thing?

Valentin Ignatev 的头像
Valentin Ignatev2 个月前

@polloimperial No community note means yes!

🐔🇩🇴 kikirikii 的头像
🐔🇩🇴 kikirikii2 个月前

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

CapacitanceZ 的头像
CapacitanceZ2 个月前

I think about this scene from Megamind often

Reece 的头像
Reece2 个月前

Facts and also great movie

Tom Miller 的头像
Tom Miller2 个月前

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 的头像
Wokensöldner2 个月前

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

Paths 的头像
Paths2 个月前

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 的头像
RH Fardin2 个月前

CPU entered retirement before that line finished

rusa 的头像
rusa2 个月前

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 的头像
fgei3gi2 个月前

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

Kamen 的头像
Kamen2 个月前

CPU waiting for me to code something 🫡

DK 的头像
DK2 个月前

Just put n_jobs=-1

Joaquin 的头像
Joaquin2 个月前

Banger

azeke 的头像
azeke2 个月前

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

suresh314x 的头像
suresh314x2 个月前

python deciding what to run also runs on cpu

相关视频