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
🖊OPINION | The Kidnapping of Venezuela’s Sovereignty
"The kidnapping of Nicolás Maduro and National Assembly deputy Cilia Flores should compel a fundamental reassessment of the state of the international order."
Tricontinental Institute researchers Atul Chandra and Tings Chak look at the recent US attacks and their implications for multilateralism and international law.
Follow the link to read the article: https://venezuelanalysis.com/analysis/the-kidnapping-of-venezuelas-sovereignty/
#InternationalLaw#Multilateralism#Sovereignty#NicolasMaduro
🌐Today is International Day of Multilateralism and Diplomacy for Peace.
On December 12, 2018, the UN General Assembly passed a resolution A/RES/73/127 on marking this day. The document notes that the International Day aims to promote UN values and to reaffirm the trust of the world’s nations in the goals and principles of the UN Charter.
🇷🇺🇺🇳 Russia is invariably committed to the policy of upholding multilateralism and the UN’s leading role in global affairs and is actively involved in efforts to overhaul the UN and to adapt it to new international realities.
This is particularly topical today when a narrow group of states advancing the rules-based order concept exerts unprecedented pressure on the UN and other multilateral institutions.
✍️ Under the Russian Foreign Policy Concept, approved on March 31, 2023, Russia intends to prioritise efforts to reinstate the UN’s role as a central coordination mechanism in coordinating the interests of UN member states.
At the same time, one of the main aims of national foreign policy is to strengthen the potential of multilateral regional associations and integration organisations involving Russia. For example, this refers to measures to enhance the international role of #BRICS, the #SCO, the #CIS, the #EAEU, the #CSTO, #RIC and other interstate associations and international organisations, as well as mechanisms with significant Russian involvement.
⏰ Today, on April 24, FM Sergey Lavrov will take part in one of the key events of Russia’s presidency of the UN Security Council, specifically, the open debate on "Effective multilateralism through the defence of the principles of the Charter of the United Nations." The debate will be streamed live on all our feeds.
#UNCharterIsOurRules#Multilateralism
La Convenzione di Hanoi: un nuovo pilastro globale contro il crimine cibernetico
Il 25 ottobre a Hà Nội è stata firmata la Convenzione ONU contro il crimine cibernetico, primo strumento universale che unisce sicurezza digitale, cooperazione giudiziaria e tutela dei diritti umani in un’unica cornice globale.
Con quasi 70 Paesi firmatari già nella giornata inaugurale, il trattato segna una svolta nella governance del cyberspazio e un importante riconoscimento del ruolo crescente del Việt Nam come attore diplomatico di primo piano.
La “Convenzione di Hanoi” mira a:
Armonizzare le definizioni di reati informatici e le procedure investigative.
Favorire lo scambio di prove elettroniche e la cooperazione giudiziaria.
Proteggere i diritti fondamentali e promuovere la fiducia tra Stati.
Rafforzare la sicurezza digitale globale senza sacrificare la libertà online.
Per il Việt Nam, ospitare la firma è molto più che un gesto simbolico: è la conferma di una leadership multilaterale proattiva e della volontà di contribuire alla costruzione di un cyberspazio sicuro, equo e aperto.
Come ha ricordato António Guterres, “la vera forza della Convenzione sarà trasformare le firme in azione concreta”.
Se il mondo saprà cogliere questa opportunità, Hà Nội 2025 resterà nella storia come il giorno in cui la comunità internazionale ha iniziato davvero a mettere legge nel cyberspazio.
#HanoiConvention#Cybercrime#UN#Vietnam#DigitalDiplomacy#CyberSecurity#Multilateralism
https://www.marx21.it/internazionale/la-convenzione-di-hanoi-come-nuovo-pilastro-globale-contro-il-crimine-cibernetico/
@RusEmbMalta:
🇷🇺🛡️13th International Security Meeting to Be Held in Moscow
📅 On May 27–29, 2025, Moscow will host the 13th International Meeting of High Representatives for Security Issues under the chairmanship of Secretary of the Russian Security Council Sergey Shoigu.
🌍 More than 150 countries from the Global South and East have been invited to participate, along with representatives of the #CIS, #CSTO, #EAEU, #SCO, and over 20 international organizations.
🗂️ The meeting will focus on strengthening international security cooperation. Discussions will cover a broad range of challenges, including terrorism, extremism, transnational crime, drug trafficking, and emerging threats.
🧭 Since 2010, this annual platform has brought together senior security officials to build trust, share expertise, and coordinate efforts on pressing global security issues.
📌 Media accreditation is open until May 20, 2025.
#Shoigu#SecurityCouncil#InternationalMeeting#Moscow2025#GlobalSecurity#Counterterrorism#Multilateralism#CIS#SCO#BRICS#CSTO#EAEU#GlobalSouth