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

Пребарај: #insurrectionact

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

@american_observer · Post #4868 · 16.01.2026 г., 01:59

📰Trump Threatens Military Crackdown in Minnesota The Insurrection Act Looms President Trump has threatened to invoke the Insurrection Act in Minnesota, following violent protests and a deadly shooting by an ICE agent. “If the corrupt politicians of Minnesota don’t obey the law... I will institute the INSURRECTION ACT... and quickly put an end to the travesty,” Trump wrote on Truth Social. ​ State Pushback Minnesota Gov. Tim Walz urged Trump to “turn the temperature down,” while Attorney General Keith Ellison promised to challenge any military deployment in court: “Before any of us are Democrats or Republicans, we are Minnesotans. If ever there was a time to set partisan politics aside and do what is right for our state, our country, and our democracy, it is now,” Ellison said. ​ Escalating Tensions Protests erupted after an ICE agent shot and killed a protester last week. Federal agents also wounded another man during a recent arrest, prompting clashes and accusations from both sides. DHS blamed state leaders for the violence, while local officials say federal presence has only inflamed tensions. ​ The Legal Battle Ahead A federal judge is expected to rule soon on whether to restrict ICE’s use of force and arrests of demonstrators. Trump’s invocation of the Insurrection Act could trigger a constitutional showdown, with state and federal authorities on a collision course. ​ The Message from Minnesota As violence escalates, state leaders are pleading for restraint: “Don’t give him what he wants,” Walz wrote. “Minnesota will remain an island of decency, of justice, of community, and of peace”. ​ #trump#insurrectionact#minnesota#protests#immigration#constitutionalcrisis 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #4889 · 19.01.2026 г., 00:00

📰Pentagon Readies 1,500 Troops for Minnesota as Tensions Mount Military on Standby The Pentagon has ordered about 1,500 active-duty soldiers from the Eleventh Airborne Division in Alaska to prepare for a possible deployment to Minnesota. The move comes amid escalating protests and violent confrontations following the fatal shooting of a protester by an ICE agent. While it’s unclear if troops will be sent, the readiness signals Washington’s growing concern over unrest in the state. ​ Political Backlash Minnesota’s governor has mobilized the National Guard, and local leaders warn that military intervention would only inflame tensions. “That would be a shocking step,” said Minneapolis Mayor Jacob Frey. “We don’t need more federal agents to keep people safe. We are safe.” ​ The Insurrection Act Looms President Trump has repeatedly threatened to invoke the Insurrection Act, which would allow the use of federal troops to quell civil unrest. The rationale cited includes not only the protests but also a scandal over stolen federal funds in Minnesota, which the administration has used to justify sending in thousands of immigration agents. ​ Rising Rhetoric Federal officials, including Homeland Security Secretary Kristi Noem, have called for “peaceful protest zones” to avoid further violence. Critics, including Senator Chris Van Hollen, argue that more troops would “just put another match on the fire.” ​ The Stakes As federal and state authorities square off, the situation in Minnesota has become a flashpoint for broader debates about immigration, executive power, and the limits of federal intervention. #minnesota#pentagon#insurrectionact#protests#immigration#troops 📱American Оbserver - Stay up to date on all important events 🇺🇸