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
The death sentence of the leader of the Egyptian Muslim Brotherhood was issued
A court in #Egypt has issued a death sentence for Muslim Brotherhood leader Mohammad Badie and three of its senior members.
In 2012, the Egyptian people succeeded in overthrowing the dictatorial government of Egypt by giving thousands of martyrs. But after coming to power, Muhammad Morsi, like Hosni Mubarak, started his relations with America and Israel. A year later, the Egyptian people's revolution was overthrown by an Israeli coup and the Sunni Muslim Brotherhood was massacred.
Perhaps Arabs and Turks will understand hundreds of years later that the cost of resistance against the West is lower than compromise.
https://t.me/YediotNewsChat
#Egypt, Temples of Abu Simbel 🇪🇬
The temples of Abu Simbel are the most famous in all Egypt after the Pyramids of the Giza dedicated to Ramses II and his wife.
⭐️ One of the most beautiful spots in Sharm El Sheikh – Farsha Cafe
📏
📏
📏
📏
📏
📏
📏
📏
✅Here, you fully experience the Egyptian vibe and immerse yourself in the atmosphere of an Eastern fairy tale.
📏
📏
📏
📏
📏
📏
📏
📏
#Egypt🇪🇬@voyage
🗺Egypt 🇪🇬
The "City of the Dead" in the Minya Province is a necropolis over 2,500 years old.
Archaeologists have discovered tombs in this area belonging to the priests of Thoth, the ancient god of the moon and wisdom.
Minya Province is also home to the ancient cemetery of Zawiyet el-Mayyitin ("Edge of the Dead"), the world's largest burial site where the deceased were laid to rest since the time of the ancient Egyptian pharaohs.
#Egypt
@voyage
📍 Egypt, Sharm El-Sheikh, Al-Sahaba Mosque 🇪🇬
The second largest mosque in Sharm El-Sheikh, but undoubtedly the most beautiful. Additionally, it is one of the newest mosques in Egypt—opened in March 2017, it was constructed between 2011 and 2017.
The mosque was designed by Egyptian architect Fouad Tawfik Hafez—free of charge. 🕌
Built on a 3,000 square meter area with two minarets reaching 81 meters high, the mosque's roof rises to 36 meters. It can accommodate about 3,000 visitors. 🙌🏗
The most fascinating aspect is its unique architectural style, fundamentally Ottoman but with vivid Fatimid elegance, modern features, and Maghrebi touches. It's a sight worth seeing.
#Egypt
@voyage
📍 Egypt, Tomb of Ramses VI in Luxor 🇪🇬
The tomb of Pharaoh Ramses VI was created in the 12th century BCE. It is one of the most well-preserved tombs in the Theban necropolis, famous for its illustrations to the "Book of Caves," which tells about the most secret areas of the other world, as well as astronomical images. ⚰️
The ceiling of the burial chamber is covered with two huge figures of Nut – the goddess of our sky, and Naunet – the goddess of the sky of the other world.
The passage leading to the burial chamber of the Egyptian king Ramses VI is carved at a depth of more than 90 meters in the mountain rock. ⛰
#Egypt
@voyage
Russian ‘Baby Yoga’ 👶🏻
#video#Egypt
Russian PE instructor Lena Fokina has come up with an unorthodox way of making babies strong and resilient, but her method makes a lot of people cringe. Elena grasps the little tykes by their wrists and feet and spins and flips them over and around her head like they were rag dolls.
Lena teaches her bizarre ‘baby yoga’ to parents who want to discover their babies’ natural abilities, but some critics say her innovation is actually baby abuse. Videos of the PE teacher spinning newborns and dipping their heads in the sea have been removed from social media and petitions have appeared on the web calling for Lena’s methods to be banned.
What do you think? Is it baby yoga or baby abuse?
Follow: https://t.me/rtdocumentary
Egypt’s Garbage City
#video#Egypt
Meet the Zabbaleen, Cairo’s traditional garbage collectors. Generations of Zabbaleen have been recycling Cairo’s trash for more than half a century. They are so good at it that they recycle up to 85% of the capital’s waste. To give you some perspective, a whopping 20 million people live in the Greater Cairo area. Imagine how much waste they produce every day!
Zabbaleen’s garbage industry is an organized network of tens of thousands of people, each playing their own part. They gather, transport, and sort the rubbish. Even pigs play an important role, as they are fed the organic food waste.
The Zabbaleen garbage collectors are largely independent from the rest of Cairo and live by their own rules. For example, the Zabbaleen never collect waste from a colleague’s turf. They have their unofficial mayor, shops, cafes, shishas, and schools.
Follow: https://t.me/rtdocumentary