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
¡Ya es oficial! ✅
🔴 El #PlanB de reforma electoral contempla la reducción de salarios a funcionarios electorales 🇲🇽👏🏻👀
https://revistaelpolitico.com/nacional/publican-plan-b-reforma-electoral-dof/
Trader #PlanB expressed an interesting idea about how future large ETFs provide themselves with Bitcoins:
"ETFs, in my opinion, such as #BlackRock, are currently loading $BTC through miners, not through exchanges. Buying #BTC directly on exchanges will affect the price too much. An indirect purchase from miners will affect the hashrate, but not the price. This can explain the current hashrate explosion"
¡No más privilegios! ❌💰
🔴#Sheinbaum celebró que el #PlanB ya es constitucional enlistando los 6 logros de esta ley que sigue haciendo llorar a la oposición 🗳️👏🏻
Tsss… 😱
🔴 Luego de la postura en contra del #PlanB de Sheinbaum, los mexicanos disminuyeron su confianza en el #PT🔥‼️👇🏻
https://sinlineamx.com/voto-de-pt-contra-plan-b-representa-ruptura-con-morena/
¡Necios, pero necios! 🙄
🔴 A pesar de que muchos mostraron descontento por la decisión, el #PT sigue insistiendo en no hacer cambios a la iniciativa del #PlanB enviada desde el Senado 🤬🇲🇽🗳️
https://revistaelpolitico.com/nacional/pt-aprobara-plan-b-si
Lo bueno es que no querían perder votos 😅
🔴 ¿Cómo crees que le vaya al #PT en 2027 tras la polémica con el #PlanB? 🤔👇🏻
https://sinlineamx.com/tunden-pt-por-eliminar-revocacion-mandato-plan-b/
¿Se consumó una nueva traición? 🤔
🔴 El #PT jugó del lado del McPRIAN y tumbó la revocación de mandato con una reserva al #PlanB🙄 | Así se vivió la sesión 👇🏻
https://sinlineamx.com/revocacion-de-mandato-queda-fuera-plan-b-pt/
¡Y siguen! 🙄
🔴 Ahora resulta que el #PT solo posó para la foto y dio un falso respaldo al #PlanB de #Sheinbaum😡📄🔍
https://sinlineamx.com/pt-niega-acuerdo-definitivo-morena-sobre-plan-b/
Аналитик PlanB ожидает, что после халвинга курс биткоина достигнет $100 000 в 2024 году, а на пике в 2025 году — $300 000.
Он считает, что текущий цикл ничем не отличается от предыдущих и заявил, что лучшая стратегия — покупка биткоина за 6 месяцев до халвинга и продажа через 18 месяцев.
При таких прогнозах курс Крипто Индекса WBT может достигнуть цены в 5 usdt.
Сегодня самое время докупиться.
#халвинг#мнение#PlanB
PlanB Shifts Funds to Crypto ETFs
Crypto analyst PlanB has transitioned his capital from Bitcoin savings to spot ETFs based on digital gold, deeming it a rational progression towards Bitcoin adoption. His move sparked mixed reactions within the community, with some viewing it as a mistake. Meanwhile, BNB Chain's team is optimizing transaction processing for meme coins following updates aimed at increasing the validator's capacity to process transactions efficiently. Recent judicial developments involving Binance and the SEC may also be influencing market dynamics.
#Crypto#Bitcoin#ETF#BNBChain#SEC#MemeCoins#PlanB