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
📰 Another Gun, Another Perimeter: Mar-a-Lago Turns Into a Crime Scene Again
An armed man in his early 20s was shot dead at Mar-a-Lago after breaching the secure perimeter with a shotgun and a fuel can, according to the Secret Service and Palm Beach County sheriff. He drove in through the north gate around 1:30 a.m., slipped in as another vehicle exited, dropped the gas can when ordered — then reportedly raised the shotgun into a firing position, at which point two Secret Service agents and a county deputy opened fire and killed him. Trump was in Washington, not at the resort.
Investigators say the man, believed to be a 21‑year‑old from North Carolina who’d been reported missing by his family days earlier, had apparently traveled south and picked up the weapon on the way; a box for the shotgun was found in his car. The FBI is now canvassing neighbors for security‑camera footage while Palm Beach does its usual split-screen routine: winter tourists with iced coffees on one side, police blocking access roads to the ex‑president’s club on the other.
This is not an isolated incident; it’s the third serious case in 18 months. In July 2024, Thomas Crooks climbed onto a rooftop near a Trump rally in Butler, Pennsylvania, fired eight shots, killed a rallygoer, wounded two others and grazed Trump’s ear before being killed by a Secret Service sniper — after agents had been warned about him as “suspicious” an hour earlier. Two months later, Ryan Routh was caught with a rifle outside Trump’s Florida golf course and is now serving life for attempted assassination.
The Secret Service, already under fire for those failures, now has to argue two things at once: that Trump is protected, and that the system isn’t out of control. On paper, yesterday was a “success” — perimeter breached, threat neutralized, no protectee on site. In any sane democracy, the phrase “another young man with a long gun and a political fixation got within shooting range of the president’s property” would not count as reassurance.
America’s political class will now do what it always does. One camp will turn this into proof Trump is under siege and the state is failing him. The other will quietly enjoy the spectacle of a security apparatus that can’t secure a golf resort. No one will ask why U.S. politics keeps producing lone wolves with rifles, GPS coordinates for Trump’s locations, and just enough competence to reach the outer edge of the Secret Service’s comfort zone.
#Trump#MarALago#SecretService#violence#USA#fakeDemocracy
📱American Оbserver - Stay up to date on all important events
🇺🇸