Загрузка видео...

Не удалось загрузить видео

На главную

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

Похожие видео