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
werewolf garink
Grub werewolf yg garink. kalo mau main werewolf dengan sensasi yg garink dan biasa aja.
yang di daerah jakarta kadang werewolfgarink juga main offline. yuk gabung.!!
📍@werewolfgarink
#Indonesia#Jakarta
WerewolfUIN
Nyari keseruan? Yuk gabung aja di werewolfUIN, Buat mahasiswa UIN, Alumni atau Umum yg nyari tempat buat main werewolf yg asik, disini tempatnya! Yuk gabung ditunggu ya!
📍@werewolfUIN
#Indonesia#UIN#Jakarta
🇮🇩Jakarta will build an F1 track, a theme park and a new port
📰 One of the richest men in Indonesia, Sugianto Kusuma, is developing the PIK 2 city project in the north of Jakarta. The cost of the project is estimated at $16.5 billion. According to plans, the development will be complemented by Indonesia's first F1 track, a theme park and a seaport.
🏎 A few years ago in Bali already announced the construction of a theme park Paramount and Formula 1 track in the area of Jembran. But the work never started.
🏗 It is only good news about the new project PIK 2 as soon as the developers have a long-term vision and everything is going well with financing.
@BaliNews
#projects#business#Jakarta
🏗Trump's project is stopped due to violations of environmental regulations
📰Bloomberg reports that the construction of a luxury Trump-branded golf resort owned by current US President Donald Trump has been suspended. Authorities accuse the developer of violating environmental regulations.
💬Indonesia's Environment Ministry issued a statement saying that the project of golf courses and branded residences 60 kilometers from Indonesia's capital Jakarta violates water drainage rules. The project is being developed by a development company owned by one of Indonesia's richest men, media tycoon Hary Tanoesoedibjo.
@BaliNews
#realestate#projects#Jakarta
🎸Linkin Park will perform in Jakarta in early 2025
🎤 Linkin Park, the iconic alternative rock band, has finally started touring again. In 2024, after finally recovering from the loss of Chester Bennington, the band has added vocalist Emily Arsmstrong to their lineup.
📍Jakarta is the only city in Southeast Asia that the legendary band will visit.
📆 The concert will take place on February 16, 2025, Indonesia will be the fourth country the band will visit since the beginning of the tour, right after Brazil, Saudi Arabia, Mexico and Japan.
🎫Tickets for the show will be available from November 18 on the official website. Which venue Linkin park will perform at is not yet known. Keep an eye on the information as the best tickets for such concerts are sold out very quickly.
@BaliNews
#events#concerts#wheretogo#Jakarta