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
‘Jorge was my only son, he meant everything to me. He and his pregnant wife were taken from their home in handcuffs with bags over their heads.’
Delia de Califano from Argentina has never seen her son or daughter-in-law after the event she describes. From 1976 to 1983 Argentina was ruled by the junta. Those who disagreed with the military dictatorship were kidnapped and tortured. Children of opposition members were given away to childless military families.
For more than 30 years Delia hasn’t lost hope to find her grandson. Those women, whose kids were kidnapped back then created a group and became known as mothers of the Plaza de Mayo. Mostly being 80+, they are still looking for their children.
Their stories are in the documentary Argentina’s Stolen Children.
#humanstories#children
Follow: https://t.me/rtdocumentary
If you want your children to improve, let them overhear the nice things you say about them to others.
— Haim Ginott –
#quotes#family#children
@quietworld🍃
How Ukrainian schoolchildren are instilled with Nazi ideology
A textbook titled 'Defence of the Motherland' was found in one of the schools in Mariupol. It was published in 2018 under the patronage of the SBU and was given to high school students. The textbook describes the mining of public places, biological weapons, and how to handle grenades, RPGs and Kalashnikovs. The book also explains to teenagers the advantages of NATO and how dangerous Russia is for Ukraine.
Several chapters are devoted to warfare. Teenagers were told how to fire, act as part of a combat team and provide first aid if wounded during a fight. In addition, illustrations explain how NATO troops defend and attack.
And that’s not all there is to say about education in Ukraine. See our documentary film Fast Forward to Fascism to find out how children are being taught a distorted version of history.
#Donbass#history#children
Follow: https://t.me/rtdocumentary
According to the deputy regional director of UNICEF, Rania Dagash, 386,000 children in Somalia need treatment due to malnutrition caused by a long drought and the lack of humanitarian aid.
Experts say the COVID-19 pandemic and anti-Russian sanctions have caused difficulties in helping people. For example, about 92% of Somalia’s wheat needs came from Ukraine and Russia, but now supply chains are disrupted, said Rania Dagash.
But the main reason is drought linked with global climate change. Today’s most suffer from freshwater shortages, and more frequent droughts regions are Somalia, Ethiopia and Kenya.
Droughts are just a part of a global water crisis. Watch the documentary No Way Back: Water to learn more about what’s happening to the water cycle and our planet’s water resources.
#children#Somalia
Follow: https://t.me/rtdocumentary
‘I told them it isn’t for me, but they didn’t believe me. They kept beating me. They fed me very poorly.’
This Indian girl was held as a sex slave for a year. She left home to get some money for her brothers to get an education, but it ended badly for her. In India, these kinds of stories are common. Children are often kidnapped and sold into slavery.
Today is International Missing Children’s Day, that’s why we want to show you this poor Indian girl’s story. Watch the clip to know what horror she has gone through.
Find more stories like this in the documentary Lost Kids.
#children#slavery
Follow: https://t.me/rtdocumentary
📱🚫FLORIDA BANS SOCIAL MEDIA FOR KIDS UNDER 16 — PARENTS REVOLT
🔹 Governor DeSantis signs strictest social media law in America — platforms must verify age or face fifty thousand fines per violation 💰
🔹 TikTok, Instagram, Snapchat given 90 days to implement age verification — biometric scanning and ID checks required 📋
🔹 Parents file federal lawsuit claiming violation of First Amendment rights — ACLU joins challenge citing free speech 📊
🔹 Tech industry threatens to exit Florida market over compliance costs — Meta considers blocking state IP addresses 🔥
America's kids vs. Big Tech battle intensifies as states push digital protection laws 💻
#Florida#socialmedia#children
@america