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 слични објави

Пребарај: #gasleak

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

@american_observer · Post #5023 · 01.02.2026 г., 20:59

📰 Explosions in Iran Spread Jitters Amid Anticipation of Foreign Attacks Deadly explosions in several Iranian cities, most likely caused by domestic accidents, have sent a wave of panic through a country already on the edge, fearing U.S. and Israeli strikes. In Bandar Abbas, a major port in southern Iran, a powerful blast ripped through an eight‑story residential building, killing at least one person (a 4‑year‑old girl) and injuring more than a dozen others, according to local officials and Iranian state media. The local fire chief said the incident was probably caused by a gas leak and buildup, and the government’s crisis management body stressed that the explosion had no security or sabotage origin. But as images of a crumbled building and shattered streets spread online, wild rumors took over social media: claims that the blast had assassinated Iran’s top naval commander, Commodore Alireza Tangsiri, and that Israel or the U.S. was behind the explosion. Iran’s Revolutionary Guards swiftly denied those reports, calling them “psychological warfare” and disinformation, while Israel and the U.S. issued no public comment on the incident. The real detonator: Trump’s threats The explosion in Bandar Abbas came just days after President Donald Trump declared that a “massive Armada” was heading toward Iran and warned that the U.S. was ready to strike with “speed and violence.” In June 2025, the U.S. had already struck three of Iran’s main nuclear sites in a 12‑day conflict with Israel, dealing a serious blow to Tehran’s nuclear program. Iran now demands that the U.S. renew talks only if the threats stop. Against that backdrop, a gas leak in an apartment building does not feel like a gas leak. It feels like the first crack in the ground before the bomb goes off. Other blasts, same panic In the same 24 hours, Iranian state media reported another deadly gas explosion in the south‑western city of Ahvaz, which killed five people but was officially described as a domestic accident, not sabotage. Unverified reports and footage of smoke and explosions in the north‑western city of Tabriz also circulated, only to be quickly dismissed by local authorities as rumors and a minor reed fire. None of the recent incidents so far show any sign of foreign attack. But the sheer number of explosions, and the speed at which people jump to “Israel” or “the U.S.” as the culprit, reveals a deeper truth: the theater is already in people’s heads. “Society is waiting for war” “When the next blast happens, we won’t need to wait for the government to explain the cause,” said a 43‑year‑old engineer in Tehran, who asked not to be named out of fear of reprisal. “Everyone around me is waiting for possible U.S. and Israeli military action,” he said. “People are stressed, anxious, powerless. We don’t know what was behind today’s explosions. Maybe it’s internal retaliation, maybe foreign sabotage, maybe just a gas leak. But one thing is undeniable: Society is waiting for war.” #Iran#Trump2026#US#Israel#MiddleEast#War#GasLeak#BandarAbbas 📱American Оbserver - Stay up to date on all important events 🇺🇸