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
#Election2026: From political core to political contraction: #Amhara region’s shrinking electoral space and uncertain future
As #Ethiopia prepares for its seventh general election scheduled for June 2026, the Amhara region, one of the country's most politically influential and historically significant regions, appears once again at risk of drifting toward a de facto one-party political order.
This review, part of Addis Standard's ongoing reporting to shed light on high-stakes electoral developments ahead of the upcoming vote, examines the evolution of the Amhara region's electoral landscape since 1995. As one of Ethiopia's largest regional states and home to one of the country's biggest electorates, the Amhara region has long served as a critical barometer of Ethiopia's democratic trajectory.
The Pretoria Agreement, which brought an end to the devastating Tigray war in November 2022, offered a brief moment of hope for Ethiopia's broader political .…….
Read more: https://addisstandard.com/?p=56362
#Election2026 - #Oromia at a crossroads: electoral contests, shrinking political space, and the risk of a de facto one-party region once again
As #Ethiopia prepares for its seventh general election scheduled for June 2026, Oromia, the country’s largest and politically most consequential region, appears once again at risk of drifting toward a de facto one-party political order.
The trajectory unfolding in Oromia carries implications not only for regional governance, but also for Ethiopia’s broader democratic and federal future.
This review, part of Addis Standard’s ongoing reporting to shed light on high stakes electoral developments ahead of the upcoming vote, examines the evolution of Oromia’s electoral landscape since 1995.
As Ethiopia’s largest regional state and home to the country’s biggest electorate, Oromia has long served as a critical barometer of Ethiopia’s democratic trajectory.
A review of elections over the past three decades reveals a ……..
Read more: https://addisstandard.com/?p=56346
#Election2026 - #Tigray at a Crossroads: war, fragmentation, and the prospect of elections without participation, once again
As Addis Standard concludes its final in-depth assessment of electoral prospects in #Ethiopia’s three major regional states, the spotlight turns to Tigray, a region whose violent rupture from the Ethiopian federation continues to shape political discourse ahead of the 2026 general election.
At the center of the debate is a question the current federal political dispensation has yet to adequately answer: can Tigray participate in the election, and if so, under what conditions?
Tigray’s political landscape remains heavily influenced by the Tigray People's Liberation Front (#TPLF), once the dominant force in both regional and federal politics through its leadership of the Ethiopian People's Revolutionary Democratic Front (#EPRDF).
But the party’s absence from.....
Read Addis Standard’s full in-depth analysis for a closer look at what lies ahead. https://addisstandard.com/?p=56406
Given the current political landscape and the shifting momentum shown in recent projections, it is widely argued that Donald Trump has no path to victory and will find it impossible to succeed in the upcoming election.
#Trump_WillLose#Election2026#Politics
#USA
#trumpexposed
✈️https://t.me/No_king_No_King