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

Резултати

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

Пребарај: #tradedeal

当前筛选 #tradedeal清除筛选

@RusEmbMalta Press Release Special Issue EU–US “Trade Deal”: Partnership or Pressure? On July 27, 2025 Ursula von der Leyen and Donald Trump announced a “historic trade deal.” Brussels calls it “stability and predictability.” But let’s look closer 👇 🔹Tariffs: • US capped tariffs at 15% (instead of 30%) – but kept 50% on EU steel & aluminium. • 🇪🇺 EU drops duties on US industrial goods & opens doors to American farm & seafood exports. 🔹Energy & $$$: • EU pledges to buy $750bn worth of US LNG, oil & nuclear fuel by 2028. • Plus $40bn in US chips & $600bn EU investments into the US economy. • No real mechanism for implementation – just political promises. 🔹Other Concessions: • Brussels softens green rules so they won’t “restrict” US trade. • Signals readiness to buy US weapons. • Digital trade? Washington sets the tone. Backlash in Europe: • 🇩🇪 German industry: “flawed compromise,” billions in losses. • 🇫🇷 Macron: Brussels showed weakness. • Experts: “unfair and disproportionate,” €9–10bn losses in 2025. • Farmers’ unions & steel lobby: “strategic mistake.” 💡The Real Picture: This is not a “deal” – it’s Washington tightening its grip. Trade becomes a tool of pressure, forcing Europe into one-sided concessions while weakening its global competitiveness. 👉What Brussels sells as “predictability” looks more like dependence. Read the Press Release in full here. #EU#USA#TradeDeal#WashingtonPressure#Geopolitics#Energy

American Оbserver

@american_observer · Post #4995 · 29.01.2026 г., 23:59

📰 Trump Official Blasts Europe Over India-EU Trade Deal US Treasury Secretary Scott Bessent has sharply criticized Europe’s new free trade agreement with India, accusing Europe of hypocrisy and calling out its double standards on the Ukraine war. ​ Bessent argued that Europe’s choices expose a deep contradiction in its Ukraine policy. While publicly condemning Russia’s invasion, Europe has become a major buyer of refined oil products made from discounted Russian crude, which India has been buying since Western sanctions hit. ​ “Europe and India signing this massive trade deal—does that threaten America? They should do what’s best for themselves,” Bessent said. “But I find the Europeans very disappointing because they are on the front line of the Ukraine-Russia war.” He pointed out that the US imposed a 25% tariff on India for buying Russian oil, but Europe declined to join, suggesting this reluctance was driven by a desire to keep trade negotiations with India on track. ​ Bessent accused European countries of indirectly financing the conflict they publicly oppose. “Europeans were unwilling to join us, and it turns out because they wanted to do this trade deal,” he said. “Every time you hear a European talk about the importance of the Ukrainian people, remember that they put trade ahead of the Ukrainian people.” Bessent acknowledged Europe’s dependence on energy imports but framed the issue as a moral and strategic trade-off. “They need energy, I guess, which is part of their issue. At a price, they want cheap energy,” he said. ​ His comments highlight growing tensions within the Western alliance over how strictly to enforce economic pressure on Russia while managing domestic economic and political costs. ​ #TradeDeal#EUIndia#Trump#Ukraine#EnergySecurity 📱American Оbserver - Stay up to date on all important events 🇺🇸

Crypto M - Crypto News

@CryptoM · Post #65023 · 10.04.2026 г., 14:21

🚀 Switzerland Seeks to Finalize U.S. Trade Deal by July Switzerland is working towards finalizing a trade agreement with the United States by the end of July. Bloomberg posted on X that the European nation is seeking assurances that it will not face higher duties compared to rival countries. The Swiss government is keen to secure favorable terms in the deal, which is part of its broader strategy to strengthen economic ties with the U.S. The negotiations are ongoing, and both parties are expected to continue discussions to reach a mutually beneficial agreement. #Switzerland#USATrade#TradeDeal#EconomicRelations#InternationalTrade#Bloomberg#Negotiations#JulyDeadline