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
#vlog
Forgot to share the vlog here! With exams approaching days are going even faster and tomorrow is already December!
While trying to study hard, I am also working on my skills and my side projects. Love college, love life, love my family and friends. And of course love you!
~ 🤓~
↬@jastm1🐰
#vlog
New week, new vlog🍎😁
Did u miss me? I was away during the weekends…
Courses are getting harder and it’s getting harder to film vlogs but I am trying to make them as good as possible 😬
~🐈~
↬@jastm1🌊
#vlog
✨ Another little glimpse into my day ✨
Yesterday was packed with challenges - from a dentist appointment to preparing for upcoming quizzes. It was long, it was busy, and yes, I ended the day completely exhausted. 💗
But here’s the thing: every busy day is also a step forward. Each challenge we push through is shaping us, teaching us resilience, and bringing us closer to our goals. 🎀
So if you’re also feeling tired from studying, working, or just managing life, remember, it’s all part of the journey. Keep going, because the effort you’re putting in today will turn into tomorrow’s growth. 🍵🤩
Let me know if you want more vlogs like this🤎
~🐈~
↬@jastm1🌊
#vlog
Yesterday was a very colorful, interesting, and tiring day. The first day of September turned out pretty productive! I woke up early and prepared for my classes (Algorithms, to be exact
😶). We had a very challenging Algorithms class — I could literally feel my brain frying 😀. Our professor is really funny though, with a Russian accent.
Then I had another class - a core course called Chance. Honestly, I’d call it “a chance for a good sleep.” We have a lovely French professor who’s over 70 and speaks very quietly and slowly
🥲. And since the class is at 2 p.m., you can imagine…
After that class, I was ready to go to my Jiu Jitsu training, but it got canceled. So instead, I helped out at the Student Fest, where all the clubs at our uni gathered to present themselves. Our Central Asian Student Association was there too, and it was so much fun! Everyone waited for somsa and chebureki... I got to meet many new freshmen, and they were super friendly. One of them even turned out to be subscribed to my channel - such an honor honestly
⭐.
So yeah, the day was so tiring it felt like Friday. My roommate and I couldn’t even wake up early today :)
~🐈~
↬@jastm1🌊
#vlog
I am back with another cute vlog 🥰
It was filmed like a week ago. Hope you will enjoy it.
These weeks are very busy and I am filming another long and funny vlog for you! Hopefully I will have time to edit it 🥲
#vlog
My daily routine at university. Everyday is the same :wake up -> eat ->study and that's on repeat.
Right now I am trying to learn and apply as much knowledge as I can, building the necessary foundation for the future internships (hopefully).
Also watching anime about pharmacy girl in ancient times, I LOVE IT 😊.
Yesterday I freaked out and had a good cry because of my cs assignment, but then managed to somehow finish it by 2 am. Now the most challenging part is left - DEBUGGING.
Alhamdullilah for such stability 🍵
~🍋~
↬@jastm1🌊