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
📹 Russia's Foreign Minister Sergey Lavrov’s video message to the participants in the 6th BRICS+ Young Diplomats’ Forum (August 28, 2024)
💬 I would like to begin by offering my heartfelt greetings to the participants in the 6th Young Diplomats’ Forum which is taking place in the #BRICSplus format.
It was the Foreign Ministry’s Council of Young Diplomats that initiated the first event of this kind in Ufa as part of Russia’s 2015 chairmanship. Since then, this platform has emerged as an effective tool for promoting horizontal ties between the BRICS foreign ministries.
It is worth noting that Ufa, the capital of Bashkortostan, has been selected to host the 2024 meeting. It stands at the crossroads of civilisations, and people representing various religions, creeds and ethnic groups have been living here in peace and harmony for many centuries. This offers a vivid example of the way ethnic, religious and cultural diversity can serve as a foundation for promoting long-term development and sustaining mutual understanding. #BRICS countries have been relying on these very principles in their relations.
👉 The Forum’s main topic is The Role of Young Diplomats in Strengthening Multilateralism for Fairness in Global Development and Security. It covers a wide range of major issues for BRICS states, as well as for other like-minded countries. I welcome the fact that all partners share the association’s approaches to working together when responding to present-day global challenges.
BRICS attracts more and more attention, which is a clear sign that our aspirations to build a fairer global architecture in international relations are aligned with deep-running and objective geopolitical shifts. The Global Majority has been very receptive to this vision, which demonstrates that what we do together is highly relevant and important.
I am certain that your forum will contribute in its own way to strengthening the comprehensive partnership, atmosphere of friendship and trust between our countries and their people.
🌐 I wish all the participants every success, good health and fruitful work.
Read in full
#BRICS2024
📹 Russia's Foreign Minister Sergey Lavrov’s video message to the participants in the 6th BRICS+ Young Diplomats’ Forum(August 28, 2024)
💬 I would like to begin by offering my heartfelt greetings to the participants in the 6th Young Diplomats’ Forum which is taking place in the #BRICSplus format.
It was the Foreign Ministry’s Council of Young Diplomats that initiated the first event of this kind in Ufa as part of Russia’s 2015 chairmanship. Since then, this platform has emerged as an effective tool for promoting horizontal ties between the BRICS foreign ministries.
It is worth noting that Ufa, the capital of Bashkortostan, has been selected to host the 2024 meeting. It stands at the crossroads of civilisations, and people representing various religions, creeds and ethnic groups have been living here in peace and harmony for many centuries. This offers a vivid example of the way ethnic, religious and cultural diversity can serve as a foundation for promoting long-term development and sustaining mutual understanding. #BRICS countries have been relying on these very principles in their relations.
👉 The Forum’s main topic is The Role of Young Diplomats in Strengthening Multilateralism for Fairness in Global Development and Security. It covers a wide range of major issues for BRICS states, as well as for other like-minded countries. I welcome the fact that all partners share the association’s approaches to working together when responding to present-day global challenges.
BRICS attracts more and more attention, which is a clear sign that our aspirations to build a fairer global architecture in international relations are aligned with deep-running and objective geopolitical shifts. The Global Majority has been very receptive to this vision, which demonstrates that what we do together is highly relevant and important.
I am certain that your forum will contribute in its own way to strengthening the comprehensive partnership, atmosphere of friendship and trust between our countries and their people.
🌐 I wish all the participants every success, good health and fruitful work.
Read in full
#BRICS2024
🇷🇺🇲🇳 President of Russia Vladimir Putin and President of Mongolia Ukhnaagiin Khurelsukh held a meeting in Ulaanbaatar.
💬President Putin:
First of all, I want to thank you for the invitation.
It has, in fact, become a good tradition for us to meet in Mongolia every five years to mark the remarkable highly significant events in our shared history.
You have listed the dates we will be commemorating this year. Each of these dates holds special significance for both Russia and Mongolia. I would like to add that Erdenet, which you have mentioned, was planned by architects from Leningrad.
I am also pleased to note that the Russian-Mongolian relations have been developing on a new foundation. Our countries have experienced growth in trade, despite the various challenges we have faced, including those you have mentioned, such as COVID.
In fact, relations between our countries are progressing well across all areas. Apart from the economy and politics, where we continue to cooperate quite actively, I would like to highlight the successful collaboration in culture and education.
The Intergovernmental Commission has been working proactively and there are good results. During our discussions today, we will undoubtedly touch upon the key trends in our economic collaboration.
To conclude my opening remarks, I would like to extend an invitation for you to visit Kazan, Russia, where the #BRICS Summit will be held later this year. This will be the first top-level event following the recent expansion of the association. I hope you will take part in the #BRICSOutreach – #BRICSplus format.
We look forward to seeing you in Russia.
International consultations began with a conversation between the two Leaders in a restricted format, followed by a meeting with the participation of the two countries’ delegations.
✍️ A set of documents was signed following talks.
The Government of the Russian Federation and the Government of Mongolia signed agreements on the development of basic project documentation for the reconstruction of the TPP-3 thermal power plant in Ulaanbaatar, as well as on cooperation in the supply of oil products and on providing Mongolia with aviation fuel.
The Russian Federal Service for the Oversight of Consumer Protection and Welfare and the Ministry of Health of Mongolia signed an Agreement on cooperation to ensure epidemiological welfare with regard to plague.
In addition, the Russian Federation Ministry of Natural Resources and Environment and the Ministry of Environment and Climate Change of Mongolia signed a Memorandum of Understanding on cooperation in the conservation of Lake Baikal and the Selenga River.
Presidents Vladimir Putin and Ukhnaagiin Khurelsukh also made statements to the media.
#RussiaMongolia
🧪1 ноября | Первый день Международного научного фестиваля “НАУКА 0+”
✨Сегодня в Ташкентском филиале Российского химико-технологического университета им. Д. И. Менделеева стартовал Международный научный фестиваль “НАУКА 0+”!
С самого утра кампус филиала наполнился атмосферой открытий, экспериментов и ярких эмоций.
👩🔬 Школьники, студенты и родители приняли участие в мастер-классах и химических опытах, которые проводили преподаватели, задействованные в проекте «Менделеевские школы» — совместной инициативе Центра международного сотрудничества Минпросвещения России и филиала РХТУ в Ташкенте.
🧫 Особый интерес вызвали занятия:
«Химия в цвете (Mendeleev Kids)» — где даже самые юные участники создавали красочные реакции;
«Свойства металлов» и «Ионно-обменные реакции» — с эффектными химическими превращениями;
«Изготовление мыла в лаборатории» — где каждый сделал себе маленький научный сувенир.
🎓 В рамках лектория прошли выступления преподавателей филиала:
«Наука Узбекистана: от минеральных удобрений до атомной промышленности»
«Химия вокруг нас» — о том, как химия меняет мир и повседневную жизнь.
📸 Первый день фестиваля доказал, что наука — это не скучно, а вдохновляюще!
📍 Ташкент | РХТУ им. Д. И. Менделеева
#НАУКА0ПЛЮС#BRICSplus#МенделеевскаяШкола#РХТУ#РоссияУзбекистан#РоссийскийУчительЗаРубежом#НаукаВТвоейСтране
🔬 2 ноября | Второй день и завершение фестиваля “НАУКА 0+”
Сегодня в Ташкентском филиале РХТУ им. Д. И. Менделеева прошёл второй день Международного фестиваля “НАУКА 0+”, ставший ярким завершением научного марафона!
👨🔬 Участники продолжили знакомство с химией — выполняли опыты, работали с лабораторным оборудованием и микроскопами, создавали собственное мыло и участвовали в квесте «Найди элемент».
Все активности проходили при поддержке преподавателей, работающих в проекте “Менделеевские школы”, которые помогали школьникам почувствовать себя настоящими исследователями.
🎥 В актовом зале состоялся показ короткометражного фильма «Равновесие» о роли науки в сохранении экологии.
👩🏫 А для педагогов прошёл тренинг «Современные подходы к обучению химии и биологии», вызвавший большой интерес и обмен опытом.
👏 Фестиваль “НАУКА 0+” успешно завершился!
Два дня доказали: интерес к науке в Узбекистане растёт, а молодёжь готова исследовать, изобретать и создавать будущее.
💙 Благодарим всех участников, преподавателей проекта «Менделеевские школы», волонтёров и организаторов за их вклад в развитие научной культуры!
📍 Ташкент | РХТУ им. Д. И. Менделеева
#НАУКА0ПЛЮС#МенделеевскаяШкола#РХТУ#РоссияУзбекистан#BRICSplus#ЦМС#РоссийскоеОбразование#НаукаВТвоейСтране