Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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

47,922 Aufrufe • vor 1 Monat •via X (Twitter)

22 Kommentare

Profilbild von avrl ☘
avrl ☘vor 1 Monat

CPU waiting for rust code to get compiled

Profilbild von Roy
Royvor 1 Monat

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

Profilbild von mouth
mouthvor 1 Monat

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

Profilbild von Mr Tomycj
Mr Tomycjvor 1 Monat

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.

Profilbild von (infinite-jes)
(infinite-jes)vor 1 Monat

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

Profilbild von Victor Garcia
Victor Garciavor 1 Monat

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

Profilbild von 🐔🇩🇴 kikirikii
🐔🇩🇴 kikirikiivor 1 Monat

Is this the real thing?

Profilbild von Valentin Ignatev
Valentin Ignatevvor 1 Monat

@polloimperial No community note means yes!

Profilbild von 🐔🇩🇴 kikirikii
🐔🇩🇴 kikirikiivor 1 Monat

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

Profilbild von CapacitanceZ
CapacitanceZvor 1 Monat

I think about this scene from Megamind often

Profilbild von Reece
Reecevor 1 Monat

Facts and also great movie

Profilbild von Tom Miller
Tom Millervor 1 Monat

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. 🤪

Profilbild von Wokensöldner
Wokensöldnervor 1 Monat

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

Profilbild von Paths
Pathsvor 1 Monat

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

Profilbild von RH Fardin
RH Fardinvor 1 Monat

CPU entered retirement before that line finished

Profilbild von rusa
rusavor 1 Monat

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.

Profilbild von fgei3gi
fgei3givor 1 Monat

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

Profilbild von Kamen
Kamenvor 1 Monat

CPU waiting for me to code something 🫡

Profilbild von DK
DKvor 1 Monat

Just put n_jobs=-1

Profilbild von Joaquin
Joaquinvor 1 Monat

Banger

Profilbild von azeke
azekevor 1 Monat

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

Profilbild von suresh314x
suresh314xvor 1 Monat

python deciding what to run also runs on cpu

Ähnliche Videos