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

Резултати

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

Пребарај: #militarycrimes

当前筛选 #militarycrimes清除筛选
Россия в ОБСЕ

@RusMissionOSCE · Post #7167 · 12.07.2025 г., 16:07

⚡️On the human rights situation in the UK — Joint Report of Russia's and Belarus' MFAs Key points of the country segment ❌ The British authorities, are trying to position the country as a benchmark in human rights protection all the while silencing serious, deep-rooted problems in their human rights record, both domestically and in the international arena. They use this self-appointed (and undeserved) mantle to are disseminate criticism of "undesirable" States regarding this issue. At the same time, the UK faces serious, often overlooked challenges, including: 🔻Systemic racism, notably against people of African descent within law enforcement, the justice system, and penal institutions; 🔻 Widespread violations of the rights of Roma and Travellers; 🔻 A surge in hate crimes based on religion and ethnicity — including antisemitism and Islamophobia; 🔻 Growing popularity of neo-Nazi groups; 🔻Russophobia as a form of xenophobia; 🔻Forced deportation of asylum seekers to third countries (the “Rwanda scheme”). The legacy of the Northern Ireland conflict also remains largely unaddressed by international human rights mechanisms. The efforts of some NGOs and the media, which often come under pressure from the British authorities and under other forms of oppression for their activities, make the existing violations public. The case of Julian Assange, founder of WikiLeaks, became resonant in the context of human rights violations. Obviously, the substantive side of the process had clear signs of violation of freedom of expression and information, as well as persecution on political grounds. #Colonialism#Neocolonialism Despite attempts to turn over the shameful pages of its colonial past, the consequences of it are increasingly affecting Britain's international image. Although British officials condemn their country's colonial past, they have traditionally rejected the idea of paying compensations to the victims of colonialism. In 2015, when he was Prime Minister of Britain, this was mentioned by David Cameron, Foreign Secretary from 2023 to 2024, whose ancestors included many slave owners. The ex-head of the Cabinet, Rishi Sunak, refused to apologise at all for London's role in the slave trade. Against this background, it is noteworthy that the initiator of the export of labour in the 19th century – J. Gladstone was the father of the future Prime Minister William Gladstone. #MilitaryCrimes ❗️The focus of attention remains on the media reports with evidence and testimonies to the numerous killings by British Special Air Service (SAS) troops of unarmed people in Afghanistan between 2010 and 2013. The revelations of witnesses who directly or indirectly pointed to the facts of the crimes committed by the British military have caused a resonance in the media. According to one of them, a Special Forces unit codenamed UKSF1 used tactics to indiscriminately kill male Afghan civilians, including teenagers under the age of 16, during raids. In parallel, media outlets have been circulating criticism of the British authorities for numerous offences in Kenya. In particular, representatives of the British training unit BATUK have been accused of violence, sexual harassment, negligent handling and loss of ammunition, and the use of chemicals during training exercises. Read in full