TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #396 · 9 окт.

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

Hashtags

Резултати

Пронајдени 2 слични објави

Пребарај: #sergeylavrov

当前筛选 #sergeylavrov清除筛选

@RusEmbMalta Press Release 🇷🇺Interview of Russian Foreign Minister Sergey Lavrov with Turkish Media 📍Moscow, 29 January 2026 On 29 January 2026, Russian Foreign Minister Sergey Lavrov gave an interview to Turkish media, outlining Russia’s principled assessment of the situation around Ukraine, the role of the West, and the prospects for a sustainable security architecture. 🔹 Key points 🧭 Ukraine and the West Russia views the Ukrainian conflict as part of a broader confrontation with the West. Ukraine has been turned into a pawn – a tool used to build a military bulwark along Russia’s borders, creating direct threats to Russian security. 📜Breach of Ukraine’s founding principles Ukraine’s Declaration of Independence explicitly enshrined non-alignment, neutrality and renunciation of nuclear weapons. It was precisely these principles that formed the basis on which Russia – along with most countries worldwide – recognised Ukraine after the dissolution of the Soviet Union. 🔹A conflict prepared in advance The crisis in Ukraine was not spontaneous. It was carefully prepared and financed, including by the United States. As former US Deputy Secretary of State Victoria Nuland has acknowledged, around USD 5 billion was spent to engineer a coup and transform Ukraine into an “anti-Russia” project. ⚠️ A tragic repetition of history The Zelensky regime represents a grim repetition of history — not a farce, but a tragedy, given the immense human toll. Many lives have been sacrificed by the regime and its Western patrons. ⛔Ceasefire proposals Russia considers unacceptable the repeated calls by Zelensky for a ceasefire of 60 days or longer. Past experience shows that such pauses were consistently exploited to rearm Ukraine, mobilise new recruits by force, regroup troops and prolong the conflict. 🕊️Missed opportunity in Istanbul (April 2022) Concrete and honest security guarantees were formulated during negotiations in Istanbul, hosted by Türkiye. These included the absence of foreign military bases on Ukrainian territory and restrictions on military exercises involving external forces. Everything was agreed in detail – but the process was blocked after external political interference. 📄So-called “peace plans” Russia has not seen the “20-point plan” repeatedly referenced by Zelensky. As understood, it has since been reworked by Ukraine and certain European states and is now being promoted as an alternative “vision” of peace. 🌍Multipolar world Russia does not oppose states that firmly defend their national interests. On the contrary, a truly multipolar world can only emerge through self-respecting states guided by common sense — states that defend their own interests while respecting those of others. 🔗 Full text of the interview: 👉here. #RussiaTürkiye #SergeyLavrov #UkraineCrisis

ሰርጌይ ላቭሮቭ ለ130ኛው የዓድዋ ድል በዓል የእንኳን አደረሳችሁ መልዕክት አስተላለፉ ******************** የሩሲያ የውጭ ጉዳይ ሚኒስትር ሰርጌይ ላቭሮቭ ለኢፌዴሪ የውጭ ጉዳይ ሚኒስትር ጌድዮን ጢሞቴዎስ (ዶ/ር) እና ለመላው የኢትዮጵያ ሕዝብ ለ130ኛው የዓድዋ ድል በዓል የእንኳን አደረሳችሁ መልዕክት አስተላልፈዋል። የውጭ ጉዳይ ሚኒስትሩ በመልዕክታቸው፤ የዓድዋ ድል በአፍሪካ ታሪክ አንዲት ሀገር በቅኝ ገዥ ኃይል ላይ የተቀዳጀችው የመጀመሪያው ድል በመሆኑ በዓለም አቀፍ ደረጃ ከፍተኛ ተጽዕኖ የፈጠረ መሆኑን ገልጸዋል። ድሉ የኢትዮጵያውያንን የጽናት መንፈስ ከማረጋገጡ ባለፈ በመላው አፍሪካ ለሚካሄዱ የነፃነት ትግሎች መነሻ መሆኑንም አክለዋል። ሩሲያ እና ኢትዮጵያ ለረጅም ዘመናት የዘለቀ የወዳጅነት ታሪክ እንዳላቸው የጠቀሱት ሰርጌይ ላቭሮቭ፤ በየተለያዩ ዓለም አቀፍ ድርጅቶች በተለይም በተባበሩት መንግሥታት ድርጅት እና በብሪክስ ማዕቀፍ ውስጥ ፍትሃዊ የዓለም ሥርዓት እንዲኖር በጋራ እየሠሩ መሆኑን ጠቁመዋል። በተጨማሪም በሁለቱ ሀገራት መካከል በንግድ፣ በኢኮኖሚ፣ በሳይንስ እና በባህል ዘርፎች ትብብሮች እያደጉ መሆናቸውን መግለጻቸውን የሩሲያ የውጭ ጉዳይ ሚኒስቴር መረጃ አመልክቷል። በኢትዮጵያ የኒውክሌር ኃይል ማመንጫ ግንባታን ጨምሮ፣ የደጃዝማች ባልቻ ሆስፒታልን መልሶ መገንባት እና የጋራ ባዮሎጂካል ምርምር ማዕከል መመሥረት ዋና ዋናዎቹ የትብብር ፕሮጀክቶች መሆናቸውን ሚኒስትሩ በመልዕክታቸው ጠቅሰዋል። #EBC#Ethiopia#Russia#Adwa130#Diplomacy#SergeyLavrov#GedionTimotheos#BRICS