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
🪙242.9K ETH withdrawn from CEXs this week#OnChain#Exchanges
Coinglass 數據顯示,過去 7 天共有約 24.29 萬枚 ETH 從中心化交易所流出,其中 Binance、Bitfinex、Coinbase Pro 均錄得顯著減少,顯示部分持幣者正從交易所轉往自託管或鏈上配置。
#Ethereum#DeFi#Markets#Crypto
⚡ 交易所庫存下降通常意味短線拋壓減弱,但後續能否轉為有效需求仍需觀察鏈上活躍度。
👍@Web3NewsInsight
🥲
🥲Follow for more Web3 News
🤣
Since the beginning of the financial markets, traders and investors have mostly paid attention to the price of their assets and hoped to see “green numbers”.
Indeed, the pricing of a stock or a cryptocurrency is one of the most important metrics of any investment.
But what if only a couple of people were trading such an asset providing neither volume nor liquidity?
Find out more about DWF Labs Market Making, OTC Liquidation and Venture Capital for #Web3#crypto projects.
#cryptocurrency#venturecapital#markets#projects#investment#trading#exchanges#blockchain
https://www.linkedin.com/pulse/how-avoid-dangers-crypto-death-spiral-dwf-labs/
🚀 North Korean Crypto Theft Funds Military Expenditures, Experts Warn
Security experts have highlighted that cryptocurrency theft is increasingly being used to finance North Korea's military activities. According to NS3.AI, researchers have observed a months-long infiltration targeting Drift Protocol, indicating a shift in North Korean operations. These activities have expanded beyond phishing to include attacks on exchanges, wallet services, and key permission holders of DeFi protocols.
#NorthKorea#CryptoTheft#MilitaryExpenditures#SecurityExperts#NS3AI#DriftProtocol#Phishing#Exchanges#WalletServices#DeFiProtocols
EU Tightens Crypto Regulations
🔵 EU crypto exchanges must delist $USDT by December 30 due to the Markets in Cryptoassets regulation. This ban aims to restrict cash usage but may push users towards DEX and other stablecoins. Centralized exchanges are in a race to comply by the deadline.
More details in the regulation here. Join the discussion on CryptoTwitter🦢
#EU#Regulation#Crypto#USDT#Exchanges#MarketsInCryptoassets#DEX#Stablecoins#Cash#Compliance#Ban#Deadline#Investment#Blockchain#Technology#DigitalAssets#Finance#MarketTrends
Melania Meme Token Debuts on Major Exchanges
Centralized exchanges like MEXC, BingX, Gate, and Bitget list Melania Meme (MELANIA) token. The token's economic model: 35% team share (30-day lock), 20% treasury, 20% community, 15% public offering, 10% liquidity. Major transaction: an address bought 3.8M MELANIA for 800k USDC, now with a profit of $38.6M.
Read more: Wu Blockchain News
#Crypto#MemeToken#MELANIA#TrumpProject#Dogecoin#Bitcoin#Profit#Exchanges#Trading#Finance#USDC#MarketAnalysis#Tokenomics#Investment#TradingStrategy#Speculation#ProfitableAddresses#MarketTrends#Blockchain#Web3#VC
OKX Settles Dispute with US DOJ
🕊OKX settles dispute with the US Department of Justice, admitting fault for operating without a license. The exchange will pay $84 million in fines and forfeit $421 million in commissions from US clients. This settlement marks a pivotal point for OKX, allowing continued collaboration with regulators to enhance solutions for clients and the crypto market. Details:OKX Announcement
🟠 In related news, $635 million in leveraged Bitcoin positions were liquidated within 24 hours.
#Crypto#Bitcoin#OKX#Regulations#Compliance
#OKX#Crypto#Bitcoin#Finance#Regulations#Compliance#Investment#Blockchain#US#Litigation#Trading#Market#Fines#Exchanges#Leveraged#Settlement#Lawsuits#Justice#USDOJ#CryptoMarket