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
🎤Green Day and Maroon 5 will perform in Jakarta in February
🎸 Legendary American punk rock band Green Day is returning after 29 years with a concert in Jakarta. Billie Joe Armstrong and friends will perform at Carnaval Ancol on Saturday, February 15, 2025. The Green Day concert will be part of the 10th anniversary celebrations of Hammersonic, the largest metal - and rock music festival in Southeast Asia.
🎫Ticket sales have already started, and rock-loving Indonesians are sure to snatch up the best deals very quickly.
🎙 In addition, another very famous band, Maroon 5, will be coming to Jakarta in February. Their concert will be held a little earlier, on February 1 at the Jakarta International Stadium. The concert will be held as part of the band's Asian tour.
🎫Pre-sale of tickets opens on Tuesday, September 24 at 10:00.
@BaliNews
#wheretogo#concerts#events
👋Morgenstern in Bali
📆 On January 11, Morgenstern, one of the most epathetic and discussed artists of our time, will perform at NUANU. His concerts are a colorful show that combines provocation, powerful energy and unforgettable atmosphere. Each performance of the artist is an explosion of emotions, unexpected decisions and drive.
🎫 Tickets to the dance parterre cost from IDR 1,333,333.
📍 NUANU concert venue official website.
@BaliNews
#wheretogo#holidays#concerts
💸🎵FEDERAL JURY RULES LIVE NATION TICKETMASTER ILLEGAL MONOPOLY
🔹 Manhattan jury finds companies overcharged consumers by 1.72 per ticket across 22 states 💰
🔹 Controls 70% of U.S. amphitheaters through exclusive venue deals, threatens competitors 🎪
🔹 Total damages estimated at 150 million — could be tripled under federal law ⚖️
🔹 Fans spent 1.5 billion annually in Pennsylvania alone on overpriced tickets 🎫
🔹 Potential breakup: Live Nation forced to sell Ticketmaster division 💥
10-year merger finally faces justice — concert fans ripped off too long! 🎤
#USNews#monopoly#concerts
@america
🎸Singer and surfer Jack Johnson to give a concert in Bali
📆 Jack Johnson will be coming to Bali in 2025 for a chamber event to be held at Uluwatu Surf Villas on Bukit Peninsula on June 18, 2025 and it will be one performance only.
🎫 Less than 1,000 tickets are expected to go on sale. It costs Rp 2,205,000 for adults and Rp 815,000 for children 5-12 years old. Food and drinks will be available all evening and the event will be completely outdoors. It will be held in all weather conditions.
ℹ️ The singer has become known for his soft acoustic music that has become a symbol of the surf culture of the 2000s (many have heard one of his most famous tracks Better Together. Jack Johnson rose to fame after the release of surf movie The September Sessions, where he performed his first songs.
@BaliNews
#events#concerts#Bukit
🎸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