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
Dunyo reytingida 22-o'rinda turuvchi Buyuk Britaniyaning "University College London" (UCL) universiteti professori Marc-Olivier Coppensdan video murojaat.
"...Avvalgi konferensiya jarayonlari menda ajoyib xotiralar qoldirgan. Konferensiyaning to'rtinchi marta 2011-yil Nyu-Yorkdagi Rensselaer politexnika institutida o'tkazilshini o'zim tashkil qilganman va u Yevropadan tashqarida birinchi marta o'tkazilishi edi.
Konferensiyalar tobora xilma-xil va fanlararo bo'lib bormoqda, bu menga juda yoqadi, chunki bu fikr almashish, ijodkorlik hamda innovatsiyalar uchun juda muhimdir.
Shu bois, Diffuziya asoslari konferensiyasining Osiyoda birinchimarta Toshkent shahrida o'tkazilayotganidan juda mamnunman va o'zbekistonlik hamkasblarimga uni tashkil qilayotganliklari uchun minnatdorchilik bildiraman."
🔁English
➖➖➖➖➖➖➖➖➖➖➖➖➖➖
#speakers#conference#Diffusion_fundamentals
⬇️Biz ijtimoiy tarmoqlarda:
Veb-sayt | Telegram | Instagram | Facebook
Leipzigdagi Saksoniya fanlar va gumanitar fanlar akademiyasi prezidenti Hans Wiesmithdan video murojaat
🌐 Joriy yilning 6-8-sentyabr kunlari "Yangi O'zbekiston" universitetida o'tkaziladigan "Diffusion Fundamentals X" xalqaro ilmiy konferensiyasida asosiy ma'ruzachi sifatida ishtirok etuvchi Hans Wiesmith konferensiya ishtirokchilariga murojaat yo'lladi.
✅ Bunga ko'ra, olim o'zining tadqiqoti yashil iqtisodiyot yo'nalishda ekanligi, asosiy e'tiborni suvni tejash, iqlim o'zgarishi, sanoatda, ayniqsa to'qimachilikdachiqindilarni kamaytirishga e'tibor qaratishini ta'kidladi.
👍O‘zbekiston Respublikasi Prezidenti farmoni bilan 2019-2030-yillar davrida Respublikaning yashil iqtisodiyotga o‘tish strategiyasi tasdiqlandi. Men ushbu muhim mavzu bo'yicha o'zbekistonlik tadqiqotchilar bilan muloqotda bo'lishni intiqlik bilan kutyapman..."
🔁English
➖➖➖➖➖➖➖➖➖➖➖➖➖➖
#speakers#conference#Diffusion_fundamentals
⬇️Biz ijtimoiy tarmoqlarda:
Veb-sayt | Telegram | Instagram | Facebook
🎙 Call for Speakers: Microsoft Community Conf 2024 Uzbekistan
Are you passionate about technology and eager to share your expertise with a vibrant community of developers and tech enthusiasts? The Microsoft Developers Community in Uzbekistan is excited to announce a Call for Speakers for our upcoming conference on November 30, 2024!
🌟 We are looking for speakers who can:
Inspire with insightful talks on Microsoft technologies, AI/ML, software development, and emerging tech trends
Lead engaging workshops or hands-on sessions
Share real-world experiences and case studies
Discuss innovative solutions and industry best practices
📅 Event Date: November 30, 2024
👉 Apply Now: https://forms.office.com/r/0qrCmCiG26?origin=lprLink
Join us and inspire the next wave of tech talent in Uzbekistan!
#mdcconf2024#mdcuzbekistan#speakers#microsoft
@mdcuzbekistan
👉Strive to be the first to join the live event on Facebook, Instagram, Zoom at exactly 14:00, London Time, to win the $10.00 giveaway 🤩
👉Remember there is a condition for winning the money! 🚀
👉You must stay till the end of the ceremony at 17:10, London Time, otherwise you will be disqualified from winning 🚨
With the support
EXCOINCIAL Team
@excoincial
#DogData#EXCOINCIAL#EXCHANGE#2YEAR#Anniversary#Ceremony#speakers#Ask#Your#Questions#AMA
LISTENING & ASKING QUESTIONS AT EXCOINCIAL ANNIVERSARY ON 26TH JULY 2020!!!
Come and listen to our speakers. Every session of EXCOINCIAL anniversary event comes with a giveaway!
We have more than 10 confirmed speakers!
Get your questions prepared for our speakers. You are allowed to ask maxmum of two (2) maximum per person.
After the end of ceremony the 10 best publicly voted question wins 5 USD each.
Get in touch with us through private message to indicate your interest in participating in question session!
EXCOINCIAL Team.
#Dogdata#EXCOINCIAL#EXCHANGE#2YEAR#Anniversary#Ceremony#speakers#Ask#Your#Questions#AMA