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
😄Course
➖➖➖➖➖➖
A course often has a beginning and an end.
If you set or follow a course it’s about where you’re going.
🔜Let’s set a course for home.
🔜We’re on course to get there on time
🔘If you’re studying something – the journey that you’re on is a course.
🔜I’ve just started my English course.
🔜My course ends next year.
🔘If you’re in a car race or a horse race, or playing golf – then you’re going round a course.
🔜This is a really difficult course – there are lots of obstacles.
🔜She got to the end of the course really quickly.
🔘If you’ve having a meal, you might eat different courses between the beginning and the end.
🔜My favourite course is always dessert.
🔘Another way that we use course is in the expression of course – which means either obviously or yes.
🔜Of course, I’ll need your help – can you do it?
🔜Of course!
#Course👨🏫@America
➖➖➖➖➖➖➖➖➖➖➖➖
🆕 Crypto News @Money
😁 Crypto Game @Egame
🇺🇸 US News @America
🇯🇵 Japan News @Japan
🇦🇪 UAE News @Dubai
▶️ Popular Movies @Videos
😜 Best Funny Video @Funnys
И как бы прям в продолжении семинара сегодня анонс от команды Flower
In partnership with Andrew Ng and his wonderful team at DeepLearning.AI we have launch two courses on federated learning using Flower!
The two courses will cover both FL fundamentals, as well as how to federate LLMs and use them to safely include private, sensitive and regulated data.
https://www.deeplearning.ai/short-courses/intro-to-federated-learning/?utm_campaign=flower-launch&utm_content=301436194&utm_medium=social&utm_source=twitter&hss_channel=tw-992153930095251456
To support these courses we have made a new slack channel: #course-deeplearning-ai in which we will answer questions, discuss the content and provide additional materials. We will also host an AMA next Monday from this channel that will be also broadcast on our YouTube channel: 29 July 16:00 UTC (09:00 SF, 12:00 NY, 17:00 LON, 18:00 CET, 21:30 IST, 00:00 北京)
🌀Malayziyaning MRANTI va MATRADE tashkilotlari bilan innovatsiyalar sohasida hamkorlik
Joriy yilning 5-iyuli Biznes va tadbirkorlik oliy maktabi delegatsiyasining Malayziyaga tashrifi doirasida Malayziya texnologiya va innovatsiyalar tadqiqot akseleratori (MRANTI) vakillari bilan uchrashuvi bo‘lib o‘tdi.
🇺🇿O‘zb
🤔Cooperation in the field of innovation with Malaysia's MRANTI and MATRADE organizations
On July 5, 2024, within the framework of the working visit of the Graduate School of Business’s to Malaysia, a meeting was held with representatives from the Malaysian Research Accelerator for Technology and Innovation (MRANTI).
🇬🇧Eng
✍️Сотрудничество в сфере инноваций с малазийскими организациями MRANTI и MATRADE
5 июля т.г. в рамках пребывания делегации Высшей школы бизнеса и предпринимательства Узбекистана в Малайзии состоялась встреча с представителями Малазийского исследовательского акселератора технологий и инноваций (MRANTI).
🇷🇺Ru
#GraduateSchool#Course#Training
🌐Web-site | ✅Telegram | ✅Facebook |🌐Instagram
🇷🇺Environ 6.000 personnes ont participé à une compétition de ski de masse à Khimki, près de Moscou.
Les meilleurs ont été désignés dans quatre catégories principales sur une distance de 10 km. Des prix ont également été remis aux vainqueurs de la course costumée d’un kilomètre.
#russie#ski#course