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
🍿 Bill Skarsgård Rises from the Dead in Robert Eggers' 'Nosferatu'
📆Premiere: December 25, 2024
🎭Genre: #Horror · #Gothic
🎬 The highly anticipated remake of 'Nosferatu' directed by Robert Eggers finally unveils its first trailer, promising a terrifying and dark experience. Bill Skarsgård, famous for 'It', completely transforms into Count Orlok, a vampire who haunts a tormented young woman played by Lily-Rose Depp. The director of 'The Lighthouse' and 'The Northman' surprises us once again with his unique gothic vision, using 2,000 real rats in one scene. With a stellar cast that includes Nicholas Hoult and Willem Dafoe, this version promises to redefine classic horror with a modern and chilling twist. 🎥🦇
📖Title : Conjure Wife
✍️Author : Fritz Leiber
⭐️Rating : 3.80/5 (Goodreads)
📆Published : Apr 1, 1943
————————————————
Summary:In Conjure Wife by Fritz Leiber, Norman Saylor, a rational-minded sociology professor, is shocked to learn that his wife, Tansy, has been secretly practicing witchcraft to protect him from harm and academic sabotage. Believing it's mere superstition, he convinces her to stop. However, as soon as she does, Norman's life begins to unravel—he faces inexplicable misfortunes and threats from unseen forces. Realizing too late that the magical protections were real, Norman must confront a hidden world of witchcraft and rival sorcery. The novel explores themes of gender, power, and the clash between rationalism and the supernatural in modern society.
————————————————
#horror#fantasy#fiction#wicthes#gothic@Bookslibraryofficial@free_novellas
📖Title : Blackthorn
✍️Author : J.T. Geissinger
⭐️Rating : 4.03/5 (Goodreads)
📆Published : Nov 04, 2025
————————————————
Summary:Blackthorn follows Maven Blackthorn as she returns to her haunted hometown after her grandmother’s funeral—only to discover the body has mysteriously vanished. Caught in a generations-old feud between the Blackthorns and the powerful Croft family, Maven is forced to confront Ronan Croft, her first love and the son of her mother’s suspected killer. Their dangerous chemistry resurfaces as whispers of occult rituals, buried secrets, and horrific betrayals emerge. As Maven digs deeper, she uncovers a terrifying truth that threatens everyone she loves. In a town where the dead refuse to rest, love becomes both a weapon and a deadly curse.
————————————————
#romance#gothic#romantasy#fantasy#paranormal@Bookslibraryofficial@free_novellas@eternalmantra
Моё первое творческое видео
❤️
Изначально хотела сделать что-нибудь миленькое про эльфов, но наткнулась на красивую мрачную картинку и понеслось...
Как вам?
Сценарий и картинки: ChatGPT
Анимация/монтаж: Kling, Runway, Luma, CapCut
#aivideo#kling#runway#luma#chatgpt#gothic