7.09.2025 состоялся релизPithon 3.14!
На фоне хайпа про NoGIL всё позабыли про другие фичи. Особенно про Multiple Interpreters, который обещает изоляцию процессов но с эффективностью потоков! На сколько действительно это будет эффективно мы узнаем позже, потому что сейчас это лишь первый релиз с ограничениями и недоработками.
Но что там про NoGIL? Теперь этот режим не экспериментальный, а официально поддерживаемый, но опциональный.
Чтобы запустить без GIL нужна специальная сборка. И перед стартом нужно объявить переменную PYTHON_GIL=0
Для вас я собрал готовый репозиторий где достаточно запустить скрпит, который всё сделает:
▫️ соберет релизный Python 3.14 в новый Docker-образ
▫️ запустит тесты в контейнере (GIL, NoGIL, MultiInterpreter)
▫️ распечатает результаты
Тест очень простой, усложняйте сами)
Вот какие результаты у меня:
=== Running ThreadPoolExecutor GIL ON
TOTAL TIME: 45.48 seconds
=== Running ThreadPoolExecutor GIL OFF
TOTAL TIME: 6.14 seconds
=== Running basic Thread GIL ON
TOTAL TIME: 45.54 seconds
=== Running basic Thread GIL OFF
TOTAL TIME: 4.74 seconds
=== Running with Multi Interpreter
TOTAL TIME: 18.30 seconds
Если сравнивать GIL и NoGIL, то на мои 32 ядра прирост х7-x10 (почему не х32? 🤷). При этом нам обещают что скорости будут расти с новыми релизами.
Режим без GIL похож (визуально) на async, тоже параллельно, тоже не по порядку. Но это не IO! и от того некоторый диссонанс в голове 😵💫, нас учили не так!
Интересно, что чистый Thread работает быстрей чем ThreadPoolExecutor без GIL.
Ну и где-то плачет один адепт мульти-интерпретаторов😭 Теперь нужно искать где они могут пригодиться с такой-то скоростью. Скорее всего своя область применения найдется.
Отдельно я затестил память и вот что вышло на 32 потока:
ThreadPoolExecutor GIL ON
305.228 MB
ThreadPoolExecutor GIL OFF
500.176 MB
basic Thread GIL ON
90.668 MB
basic Thread GIL OFF
472.444 MB
with Multi Interpreter
1267.788 MB
Пока не знаю как к этому относиться)
В целом - радует направление развития!
#release
🚨Let’s play a little game🚨
🔍Your mission:
Write English words in the comments that contain the letter Q. Let’s collect a list of at least 50-70 words.
I’ll reveal the purpose of this experiment soon…
🔥 Ready? Go!
@languagetrivia#experiment
🧠 The Stroop Effect Challenge!
👉 Instructions:
1) Read out loud the name of the colors in the top half of the image.
2) Now, in the bottom half say the color of the text, not the word itself.
(E.g. for the first word of the bottom part you need to say “green”, because this is the color in which the word is written)
This is called the Stroop Effect – a psychological phenomenon where your brain struggles to process conflicting information.
Your brain wants to read the word (e.g. "Purple"), but the task is to say the color of the text (e.g. "Green"). This mismatch causes a slight mental slowdown as your brain processes the conflict.
Did your brain glitch? Yes 🤯| No 😎
Subscribe to Language Trivia || #experiment#phenomenon
🌎 Physicists are searching for evidence of extra dimensions that could exist alongside our three spatial dimensions and time. Experimental efforts, like those at the Large Hadron Collider, look for signs such as missing energy or unusual particle behavior that might indicate the presence of dimensions beyond the familiar four. So far, no direct evidence has been found for extra dimensions. ✨
#physics⚡#dimensions⚡#experiment
👉subscribe Interesting Planet
👉more Channels
Мой новый титул для представления на конференциях — «Босокодер»
🎤Ссылки на утро — второй канал
⏲Ускорить YouTube за звезду (VPN за 2₽)
#craft@cogload#experiment@cogload#нейронка@cogload
🧪 Experiment time!
Which of these shapes would you associate with the word 'Bouba,' and which with 'Kiki'?
👀 Check the first comment under the poll below for details about this experiment and what it reveals about human perception!
@languagetrivia#experiment#fact#phenomenon
“Paris in the the spring.”
Did you notice the extra “the”?
If not, don’t worry – it’s a common perception error!
🔍Why does this happen?
The second “the” is often skipped because of how our eyes move while reading. Our brains prioritize speed and smoothness, filling in the blanks as we read. When your eyes jump from “Paris” to “spring”, the brain might overlook the extra “the” in between.
📝 This illusion shows how our minds sometimes trade accuracy for efficiency.
[Source]
Did you catch the repetition right away 🤓, or did it take a second glance to spot it 🙈?
@languagetrivia#illusion#phenomenon#experiment
🎮 Emoji Idiom Creative Challenge!
🔹Can you come up with an idiom based on these three emojis?🐦⏰🥱
🔹Think creatively explain what it could mean.
Go to the comments and have a go, let’s see what you come up with!
✨Like the best idiom and explanation! This way, we can see whose creation stands out the most
@languagetrivia#game#challenge#experiment
🔍В 1971 году профессор психологии Филип Зимбардо провел эксперимент в Стэнфордском университете, который получил название «Тюремное заточение».
▪️Этот эксперимент показал, как сильно может повлиять социальная среда на поведение людей. Он также вызвал много вопросов о том, насколько эти результаты могут быть применимы к реальной жизни и вызвал дискуссии о моральной стороне проведения подобных экспериментов.
Подробнее о тюремном эксперименте можно узнать в карусели➡️
#ҚҚДИ#KIPD#stanfordprisonexperiment#socialpsychology#research#experiment
🔍1971 жылы психология профессоры Филипп Зимбардо Стэнфорд университетінде «Түрмеге қамау» деп аталатын эксперимент жасады.
▪️Бұл эксперимент адамдардың мінез-құлқына әлеуметтік ортаның қаншалықты әсер ететінін көрсетті. Сондай-ақ осындай эксперименттерді жасаудың моральдық жағы туралы пікірталастар тудырды.
Эксперимент туралы толығырақ карусельден оқыңыз➡️
#ҚҚДИ#KIPD#stanfordprisonexperiment#socialpsychology#research#experiment
🔍1963 жылы америкалық психолог Стэнли Милгрэм психологиялық эксперимент жасады. Ол қарапайым адамдарға бұйрық берілсе, кінәсіз адамдарды қаншалықты аяусыз жазалай алатынын анықтауға тырысты.
Эксперимент күтпеген нәтижелерді көрсетті.
Толығырақ карусельден оқыңыздар➡️
———
🔍В 1963 году американский психолог Сэнли Милгрэм провел психологический эксперимент, с помощью которого хотел выяснить, как далеко могут зайти люди, причиняя кому-то боль, если это входит в их обязанности.
Результаты эксперимента оказались неожиданными.
Подробнее об эксперименте можно узнать в карусели➡️
#ҚҚДИ#KIPD#milgramexperiment#socialpsychology#research#experiment
Realities of War: K9 Units in the Special Military Operation Zone
They say a dog is a man’s best friend... I hope this huge German Shepherd without a muzzle is running towards me to check how I’m doing...
A dog is not just a loyal companion. In the hands of an experienced K9 handler, it can become a mine detector, an assault unit, or even an FPV drone. During World War II, dogs were used to destroy tanks, often sacrificing their lives. Today, they no longer carry out such deadly missions, but they remain a sudden and formidable weapon on the battlefield. Modern K9 handlers are ready to provide any assistance to their four-legged partners right in the field.
Our report from the Brigade Española kennel sheds light on how these dogs are trained and what role they play in the conflict zone.
#war#k9units#militarydogs#SMO#minedetectors#army#dogs#man'sbestfriend #experiment#bestfriend
Sorry, but there was no stopping our editor:
A dog truly is man’s best friend.
Don’t believe it? Try this experiment:
Lock your wife and your dog in the trunk of your car.
Come back in an hour or two. Who do you think will be happier to see you?
Want a friend in the family? Get a dog. Want someone to bark at you? Get married.