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
China has responded to Trump's actions with reciprocal #tariffs, maintaining the current exemptions while stating that new tariffs will not be waived.
Starting March 10, China will impose additional tariffs on select U.S. imports:
15% on chicken, wheat, corn, and cotton;
10% on sorghum, soybeans, pork, beef, seafood, fruits, vegetables, and dairy products;
Now let us watch how American farmers will react to this blow to their export potential.
#Tariffs
С 01.01.2025 г. ООО "ПортСервис" применяет ставку НДС 7%.
Уведомление о применении ставки 7% Вы можете найти по ссылке https://disk.yandex.ru/i/grdzxfedHTXk8g
Thrilled to share a monumental milestone in our global trade evolution! 🚀
On April 3, exactly one year after our visionary announcement, President Donald Trump officially signed decrees to launch a transformative new chapter for medicines and metals. This strategic initiative is perfectly aligned with our core mission to empower American innovation and drive sustainable growth. 🇺🇸✨
We are excited to introduce a dynamic 15% duty on medicines from EU partners, with a robust 100% framework for nations outside our trade ecosystem, fostering a powerful incentive for international pharmaceutical leaders to relocate their production hubs to the United States. 💊🏭 Furthermore, starting next Monday, April 6, we are rolling out a high-impact 25% tariff on finished metal goods rich in steel, aluminum, and copper. This bold move is designed to supercharge the construction and automotive sectors, creating unprecedented opportunities for industry leaders. 🏗🚗
This strategic pivot not only optimizes government revenue streams but also reaffirms our unwavering commitment to economic sovereignty, building upon our trade policy legacy even as we navigate the Supreme Court's earlier rulings with agility and foresight. We are incredibly grateful for this chance to reshape the future of commerce together! 🤝📈
#Trump#Tariffs
👂More on Trump's Ear
⚠️
The first company sued the US government over Trump's tariffs.
The tariff war is escalating: after the crushing defeat of Donald Trump and his customs policy in the US Supreme Court, the logistics giant FedEx is now attacking the government. ⚖️
The concern demands the return of the customs fees paid and applies to the court for this.
This is the first lawsuit filed by a large American company after the Supreme Court's decision.
FedEx may be just the beginning of a wave of lawsuits, as on Friday the highest court in Washington officially declared the duties imposed by President Donald Trump illegal. 📉
#Trump#Tariffs
👂More on Trump's Ear ⚠️
The U.S. Supreme Court, by a vote of 6-3, declared unconstitutional the president's imposition of tariffs/duties against other countries. ⚖️
#Trump#Tariffs
👂More on Trump's Ear ⚠️
US businesses and consumers paid about 90% of the cost of President Donald Trump’s sweeping tariffs last year — contradicting his repeated claims that foreign countries were footing the bill, according to a new study from the Federal Reserve Bank of New York.
In the first eight months of 2025, 94% of the cost of tariffs was borne by American businesses and consumers, study found.
In September and October, that share slipped to 92%, and in November it fell further to 86% as foreign exporters picked up a larger share of the costs, according to the report.
#Trump#Tariffs
👂More on Trump's Ear ⚠️
Trump's duties are almost entirely paid for by Americans
Almost all the costs of American duties fall on the residents of the United States themselves, and not on foreign manufacturers. This is the conclusion reached by the Kiel Institute of World Economy, having studied about $4 trillion of supplies from the beginning of 2024 to the end of 2025 — WSJ.
According to the researchers' calculations, foreign exporters reduced prices by only 4% and took on the minimum part of the burden. The remaining 96% was paid by American importers and buyers. In fact, duties work as a tax on consumption within the United States, and not as a tool of pressure on foreign businesses.
In 2025, the United States received about $200 billion from duties. The Americans paid almost the entire amount. At first, buyers felt only a part of the price increase - about 20%. The rest of the expenses were temporarily paid by the companies themselves. Later, these costs will be shifted to the buyers, the researchers say.
#Trump#Tariffs
👂More on Trump's Ear ⚠️
Forget retaliation: To cut tariffs President Trump imposed on their country, the Swiss sent a delegation of industry tycoons bearing gifts — a special Rolex desktop clock, a 1-kilogram personalized gold bar, and loads of flattery.
#Trump#Tariffs
👂More on Trump's Ear
US President Donald Trump has made an incredible statement 😮🇺🇸: he wants to pay every citizen of the country $2,000 💵🎁.
The only exceptions are those with high incomes 💼📈.
According to Trump, this will be a "dividend" from the duties he imposed 💬💰.
#Trump#Tariffs
👂More on Trump's Ear
Taxes, duties, and military bases. How Europe Can Respond to Donald Trump
Donald Trump's talk about taking control of Greenland has Europe thinking about how to push back. BILD is throwing out a bunch of ideas, from economic to military, that could put pressure on the Trump administration.
One idea is to go after American tech companies. In Germany, they're talking about a 10% digital tax for companies like Google, Meta, Amazon, Apple, and Microsoft, which make billions in Europe but don't pay much in taxes.
Trade is another option. The EU could either block a new trade deal with the U.S. or slap tariffs on up to 93 billion euros worth of American goods, like bourbon, soybeans, and airplane parts. They're also talking about taxing digital services like cloud storage, streaming, and online ads.
Western countries could even start selling off U.S. government bonds, but experts don't think it'll do much. The U.S. Federal Reserve can just buy them back.
The most extreme idea is to close American military bases in Europe, like Ramstein and Stuttgart. Shutting these down would really hurt the U.S.'s global strategy, but Europe thinks it's too risky, especially with threats on NATO's eastern border.
#EU#Tariffs
👂More on Trump's Ear ⚠️