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
🚨🇺🇸MICROSOFT AI INVESTMENTS TRIGGER MASSIVE TECH SELLOFF FEARS
🔹 MSFT crashes 15% YTD to $410 after revealing $37.5B AI capex spending — Wall Street panicking over return on investment timeline 💰📉
🔹 Tesla faces March 9 NHTSA compliance deadline for 2.88M FSD vehicles — potential $139M penalty sparks 2% pre-market drop to $388 🚗⚡
🔹 Software sector hemorrhages $800B as S&P Software Index plunges 13% in February — biggest tech rotation since 2002 dot-com crash 💸
Silicon Valley's AI gold rush hitting reality wall — investors fleeing to consumer staples as tech's worst quarter since 2008 unfolds 🤔💥
#TechStocks#USNews
@america
📈Volatility Log: Skew Says Tech Stocks and Europe Rates Aren't Done
Despite seemingly calm spot markets, the volatility log reveals persistent hedging demand driven by intertwining macro catalysts including key tech stocks and European inflation trends. We examine...
🔗Read Full Analysis
🎯 SPECIAL OFFER: 15% OFF
💸 Coupon Code: salenow15%
🚀 Upgrade to premium signals → https://markets.fxpremiere.com/en/signals?utm_source=telegram
📰 Stay ahead — get breaking financial news & analysis at https://markets.fxpremiere.com/en?utm_source=telegram
#Volatility#TechStocks#InterestRates
🚀 Hong Kong Stocks Open Lower as Tech Shares Decline
Hong Kong stocks opened lower today, with the Hang Seng Index dropping 0.71% and the Hang Seng Tech Index falling 0.69%. According to Jin10, technology stocks led the decline, with Baidu (09888.HK) down over 3% and NetEase-S (09999.HK) falling more than 2%.
#HongKongStocks#HangSengIndex#HangSengTechIndex#TechStocks#Baidu#NetEase
🚀 STOCKS | Hong Kong's Hang Seng Index Retreats After Previous Surge
On April 9, Hong Kong's Hang Seng Index experienced a pullback following a significant rise of nearly 800 points the previous day. According to Jin10, the index opened over 100 points lower in the morning and briefly fell more than 200 points to reach 25,653.63 points before recovering slightly. By midday, the Hang Seng Index closed down 0.35% at 25,803.12 points, while the Hang Seng Tech Index fell 1.26% to 4,861.39 points. The total market turnover for the Hang Seng Index reached HKD 126.652 billion.
In terms of sector performance, optical communication and computing infrastructure stocks led gains, while the innovative drug concept saw a brief surge in early trading. However, most technology stocks underwent a correction, with real estate and gold stocks experiencing notable declines. Among individual stocks, Yangtze Optical Fibre and Cable Joint Stock Limited Company (06869.HK) rose 3.2%, WuXi AppTec Co., Ltd. (02359.HK) increased by 3.53%, Kingdee International Software Group Company Limited (00268.HK) fell 5.49%, Kuaishou Technology (01024.HK) dropped 3.55%, and Longfor Group Holdings Limited (00960.HK) decreased by 4.07%.
#HangSengIndex#HongKongStocks#StockMarket#TechStocks#RealEstate#Gold#MarketPullback#Trading#Investment
🚀 Lumentum Holdings Sees 132% Return Amid Nvidia's $2 Billion Investment
Lumentum Holdings has experienced a remarkable 132% return this year, transforming a $1,000 investment in January into $2,320 by April. According to NS3.AI, this impressive rally is attributed to Nvidia's substantial $2 billion acquisition of ultra-high-power lasers and capacity rights for next-generation optical interconnects. The strategic move by Nvidia has significantly boosted investor confidence in Lumentum Holdings, driving its stock performance upward.
#LumentumHoldings#Nvidia#Investment#StockMarket#TechStocks#OpticalInterconnects#InvestorConfidence#HighReturn
Exodus Debuts on NYSE with 36% Gain
Exodus, a developer of non-custodial software, made its debut on the New York Stock Exchange (NYSE) under the ticker EXOD. In its first trading session, shares surged 36%, bringing the company's market capitalization to $1.4 billion. For more details, visit ForkLog.
#Exodus#NYSE#IPO#StockMarket#Investing#Growth#TechStocks#FinancialNews#Blockchain#Software#NonCustodial#MarketCapitalization#Trading#WallStreet
DeepSeek AI Disrupts Tech and Crypto Markets
DeepSeek, a Chinese AI startup, launched its DeepSeek-R1 model, rivaling OpenAI's offerings but at significantly lower costs. The buzz around DeepSeek has led to a $1 trillion drop in US tech stocks, with Nvidia shares tumbling nearly 10%. Experts caution against hasty conclusions regarding the market reaction. Amidst this, investment director Michael van de Poppe advises Ethereum investors to stick to long-term strategies, predicting positive growth for Ethereum and Solana in 2025 due to lower interest rates and geopolitical instability. Read more about the implications of DeepSeek's emergence on the tech landscape here.
#AI#DeepSeek#Crypto#Ethereum#Solana#TechStocks#Nvidia#MarketCrash#Investing#Finance#Web3#MachineLearning#ArtificialIntelligence#Startups#China#Innovation#Stocks#HedgeFund#DeFi#Trends#MarketTrends