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
#Italia
❗️BREAKING ANSA - Blitz della Presidente del Consiglio Giorgia #Meloni (#FdI|ECR) nel Golfo. La ‘premier’ è appena atterrata a Gedda e nei prossimi giorni incontrerà i principali leader della zona e visiterà #ArabiaSaudita, #Emirati e #Qatar.
Fonti di Palazzo Chigi sottolineano che la missione a sorpresa della premier mira, tra l'altro, al rafforzamento della sicurezza energetica nazionale.
Si tratta della prima visita nella regione da parte di un leader di Ue, G20 e Nato dall'inizio del conflitto. Il Golfo rappresenta infatti una fonte cruciale di petrolio e gas per l'Italia e ha un ruolo determinante nell'andamento dei prezzi energetici globali.
La missione punta anche a rafforzare le relazioni" con queste nazioni del Golfo e "ribadire il sostegno dell'Italia di fronte agli attacchi iraniani, consolidando al contempo un partenariato strategico sempre più solido.
@OsservatorioItaliano
News: #Somaliland leader departs for #UAE, seeks deeper ties as regional stakes rise
Somalia's northwestern breakaway region of Somaliland President Abdirahman Mohamed Abdullahi departed for the United Arab Emirates on Tuesday, leading a high-level delegation that includes cabinet ministers and senior advisers, his office said.
The trip follows a formal invitation from the UAE government, with President Abdirahman Mohamed expected to attend a conference focused on development and intergovernmental cooperation.
Officials said he is also scheduled to hold meetings in #Abu_Dhabi with senior #Emirati leaders to discuss strengthening bilateral relations.
Talks are expected to center on development projects and investment, areas where the UAE has played a significant role in Somaliland's economy. Emirati logistics firm #DP_World has invested about $442 million in the expansion and .....
https://web.facebook.com/AddisstandardEng/posts/pfbid02vruBZ8aULb9h5RjA2RsY29mzkbAHJ12PxaQznHBY1Zrsq9GGTQzzwa8qRMyK9tUal
What #Sudan can teach #Ethiopia as #Eritrea conflict looms
As African leaders gathered at the annual #African_Union summit in #Addis_Abeba last week under the seemingly non-urgent theme of “water sustainability,” there was only passing acknowledgement that “silencing the guns on our continent remains a challenge.”
Yet the cadence of conflict — and the threat of new war — hung low over the horizon. It never felt proximate enough, however, to darken the mood of the festivities.
Ethiopian Prime Minister Abiy Ahmed was keen to show off his clean and modern metropolis, financed and looking like a “mini-me” version of his #Emirati backers in #Dubai. As host of the three-day summit, Abiy’s heads of state guests showed deference by making no mention of his increasingly bellicose calls for sea access — and the indirect threat to Eritrea, its neighbor.
Nor was there talk of Asmara’s response…..
https://web.facebook.com/AddisstandardEng/posts/pfbid0obN5Kafo8UNTY59yKCGZdnA3LrbsDe5ztUgt28cTAUnTpDGbj4njfoj8yHH63sgnl
In un evento online organizzato da The New York Times parla #Netanyahu: "Non abbiamo finito con #Tehran" e #TomBarrack, Ambasciatore #USA in #Turchia parla negli #Emirati: "Abbiamo ancora da vedere in merito a ciò che potrebbe fare #Israele in #Iran".
I recenti attacchi alle raffinerie saudite hanno evidenziato una notevole vulnerabilità delle strutture saudite e posto interrogativi anche sull affidabilità dei sistemi antimissile Patriot – di produzione statunitense – a cui ne è stata affidata la difesa. In questo senso, l’attacco alle raffinerie saudite rappresenta un duro colpo alla credibilità degli Stati Uniti, segnando inoltre un punto di svolta nella guerra dello #Yemen: un conflitto in cui ormai da anni si fronteggiano le forze governative – sostenute da #Arabia Saudita, #Emirati Arabi e #StatiUniti – e i ribelli #Houti sostenuti dall’#Iran. Un conflitto rispetto al quale l’Arabia Saudita non ha, per il momento, ammorbidito la propria linea oltranzista, nonostante le oltre 70.000 vittime già prodotte dal conflitto, la più grave crisi umanitaria attualmente esistente sul pianeta – secondo l’ ONU –, ed un atteggiamento ormai quasi disfattista da parte degli Emirati Arabi. Il mio articolo per l'Atlante geopolitico di Treccani
http://www.treccani.it/magazine/atlante/geopolitica/Il_Vicino_Oriente_dopo_gli_attacchi_alle_raffinerie_saudite.html