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
🌍 Earth’s core is as hot as the surface of the Sun, reaching temperatures around 5,400°C. This intense heat drives movements deep inside the planet that power volcanoes and earthquakes. ✨
#planet⚡#core⚡#heat⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
Myth: Glass flows over time, making old windows thicker at the bottom.
Fact: Glass is an amorphous solid, meaning its atoms are arranged randomly, not in a pattern like crystals. It stays solid at all normal temperatures and only softens above 600°C (1112°F). Old windows are thicker at the bottom because of how they were made, not because glass moves. 🔥🌡️
[Read more]
@googlefactss
#GlassFacts#Science#MythBusted#Heat
🪐 The exoplanet Gliese 367 b, located about 31 light-years away in the constellation Vela, completes an orbit in just 7.7 hours and endures surface temperatures over 1,500°C—hot enough to melt iron. This "ultra-short period" planet is likely a dense, iron-rich world blasted by so much stellar radiation that any atmosphere or lighter materials have long since been stripped away, leaving behind a scorched metallic core. ✨
#exoplanets⚡#extremes⚡#heat⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space
👉subscribe Universe Mysteries
👉more Channels
🪐 Exoplanet Kepler-70b, found in the constellation Cygnus, endures some of the most extreme conditions in the galaxy—it’s so close to its star that surface temperatures reach about 7,000°C, hotter than most stars and easily hot enough to vaporize rock. This planet orbits its star in just 5.7 hours, making it one of the fastest-orbiting planets ever discovered and a true survivor in a scorching, hostile environment. ✨
#exoplanets⚡#extremes⚡#heat⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space
👉subscribe Universe Mysteries
🪐 Far from Earth, the exoplanet TOI-1431b (also known as MASCARA-5b) orbits so close to its star that its dayside temperature can reach about 2,700°C—hotter than molten lava. Even the nightside sizzles at a blistering 2,300°C, making TOI-1431b one of the hottest planets ever discovered and a true furnace world where no familiar material could survive. ✨
#exoplanets⚡#extremes⚡#heat⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space
👉subscribe Universe Mysteries
🪐 The exoplanet KELT-9b, orbiting a star about 670 light-years away in Cygnus, is one of the most extreme worlds ever found—its dayside temperatures soar above 4,000°C, hotter than some stars. Metal atoms like iron and titanium are vaporized in its atmosphere, creating a blistering, glowing layer of gas that defies what we imagine for planets outside our solar system. ✨
#exoplanet⚡#extremes⚡#heat⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space
👉subscribe Universe Mysteries
♨️🌡The heat is on: Moscow temperatures are breaking records
Meteorologists claim that July 2, 3 and 4 could be the hottest days of this month in the history of meteorological observations in the capital since 1879. The air will warm up to 33-35 degrees, which is 10 degrees higher than the July climate norm.
On Friday, July 5, things should return closer to normal. Thermometer readings will drop to 24–28 degrees during the day, and to 15–18 at night. This is also above the climatic norm, but by one or two degrees.
Subscribe:@nido_russia
https://t.me/nido_russia/1688
#heat#weather#forecast#hot#record#nidorussia
🎬📷 Атмосферные фото со съёмок фильма «Схватка».
В этот день ровно 30 лет назад шедевр Майкла Манна вышел на большие экраны.
#ВИДЕОТЕКА
#Heat
#Схватка
#RobertDeNiro
#РобертДеНиро
#AlPacino
#АльПачино
#ValKilmer
#ВэлКилмер
#MichaelMann
#МайклМанн
#AshleyJudd
#ЭшлиДжадд
#TomSizemore
#ТомСайзмор
#BehindTheScenes
«Когда мы снимали сцену в кафе в фильме «Схватка», мы практически не проводили репетиций. Специально. Обсудили только общие моменты и хронометраж. Просто прошлись по тексту, потому что работу актеров я хотел увидеть только при съемке. А снимал я сразу на несколько камер, потому что понимал, что с такими актерами, как Аль и Боб, важна каждая деталь. Если Аль делает движение рукой, то Боб автоматически реагирует и меняет позу. Это органичное взаимодействие невозможно предугадать. В каждом дубле появляется что-то новое. Вот почему я всегда делаю ставку на спонтанность. Кстати, вся эта сцена в «Схватке» в итоге снята одним дублем. Но, в конечном счете, фильм получается таким, как я хочу».
🎬📷Сегодня исполнилось 83 года великому режиссёру, продюсеру и сценаристу Майклу Манну.
#ВИДЕОТЕКА
#MichaelMann
#МайклМанн
#Thief
#Вор
#TheLastOfMohicans
#ПоследнийИзМогикан
#Heat
#Схватка
#Ali
#Али
#Collateral
#Соучастник
#MiamiVice
#ПолицияМайамиОтделНравов
#PublicEnemies
#Blackhat
#Ferrari
#Феррари
#BehindTheScenes
«Если Марти попросит меня о чем-то, я буду думать об этом всерьез — даже если это покажется мне неинтересным».
Сегодня Роберту Де Ниро исполнилось 82 года.
#ВИДЕОТЕКА
#RobertDeNiro
#РобертДеНиро
#TheGodfatherPartII
#КрестныйОтец2
#TheDeerHunter
#ОхотникНаОленей
#RagingBull
#БешеныйБык
#OnceUponATimeInAmerica
#ОднаждыВАмерике
#MidnightRun
#УспетьДоПолуночи
#Casino
#Казино
#Heat
#Схватка
#Ronin
#Ронин
#TheIntern
#Стажер
#TheIrishman
#Ирландец