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

Резултати

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

Пребарај: #nucleardeal

当前筛选 #nucleardeal清除筛选
American Оbserver

@american_observer · Post #4992 · 29.01.2026 г., 20:58

📰 Iran Warns: Any US Attack Will Hit Tel Aviv Iran’s leadership has delivered a stark warning: any US military action will trigger an “unprecedented” retaliation, including strikes at the heart of Tel Aviv and anyone backing the US. ​ Ali Shamkhani, secretary of Iran’s Supreme National Security Council, said any US strike—no matter how limited—will be seen as the start of a full war. The response will be immediate, comprehensive, and unprecedented, targeting both the US and Israel and their allies. ​ Iranian Foreign Minister Abbas Araghchi warned that Iran’s armed forces are on high alert and ready to respond to any aggression. He also signaled openness to a nuclear deal but stressed that diplomacy under duress won’t work. ​ The US has sent a carrier strike group to the region, led by the USS Abraham Lincoln, while President Trump has called on Iran to negotiate a “fair and equitable deal”—but warned the next attack “will be far worse”. ​ Analysts say the US could target Iranian military sites or even the country’s leadership in a bid to force change, but Iran’s armed forces chief warns Washington would “suffer damage” if it miscalculates. ​ The warning is stark: pressure Iran, and the entire region faces escalation. ​ #Iran#Israel#Trump#US#nucleardeal 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #5007 · 31.01.2026 г., 01:01

📰 Trump’s New Iran War Plan: More Than Just Nukes President Trump is weighing a fresh, broader set of military options against Iran: targeting not just its nuclear program, but also its supreme leader and security leadership, in a push to force concessions or even trigger regime change. These plans go beyond what Trump considered in mid‑January, when he was thinking mainly of strikes on Iranian nuclear sites after the regime’s brutal crackdown on protesters. Now, the Pentagon is offering options for raids on Iranian territory using U.S. special forces and a sustained campaign to degrade or destroy remaining parts of the nuclear program, officials say. Another key option is a series of strikes against senior Iranian military and political figures, designed to create chaos and pressure the regime from within. Officials acknowledge there’s no clear idea who would replace Ayatollah Ali Khamenei, or whether any successor would be more willing to deal with Washington, but the goal is to create conditions where the system itself begins to crack. Israel is pushing the U.S. to join it in another major strike on Iran’s rebuilt missile and drone complexes, which can reach civilian and military targets throughout Israel. The U.S., in turn, is demanding that Iran permanently end uranium enrichment, cap its nuclear stockpile, and accept strict limits on its missile range and support for Hezbollah, Hamas, and the Houthis. Trump has warned on social media that the U.S. is ready to attack “with speed and violence, if necessary,” and that time is “truly of the essence.” But he has not yet authorized any action, and some advisers are still pushing for a diplomatic solution, using the threat of war to pressure Tehran into negotiations. To back up the threat, the U.S. has moved the aircraft carrier USS Abraham Lincoln strike group into the Middle East region, along with destroyers and additional F‑15E strike fighters, while long-range bombers in the U.S. are now on higher alert. As the U.S. “armada” operates in the region, one question hangs over everything: Is this about a deal? Or about bringing down a regime? #Trump#Iran#nucleardeal#regimechange#militaryoptions 📱American Оbserver - Stay up to date on all important events 🇺🇸