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
A #Sudanese doctor recounts his harrowing escape from a #Darfur city under rebel bombardment
Dr. Mohamed Ibrahim dashed from building to building, desperate for places to hide. He ran through streets littered with bodies. Around him, the capital of Sudan’s North Darfur province lay enveloped in smoke and fire.
Explosions, shelling and gunfire thundered from every direction.
After 18 months of battling, paramilitary fighters had overrun el-Fasher, the Sudanese army’s only remaining stronghold in the Darfur region. Ibrahim, who fled the city’s last functioning hospital with a colleague, said he feared he would not live to see the sun go down.
“All around we saw people running and falling to the ground in front of us,” the 28-year-old physician told The Associated Press, recounting the assault that began Oct. 26 and lasted three days. “We moved from house to house, from wall to wall under non-stop bombardment.....
https://apnews.com/article/sudan-elfasher-rsf-war-darfur-f91bfe006211fbf3af21b12271710eed
#UN sanctions 4 commanders in #Sudan’s paramilitary force accused of atrocities in #Darfur
The U.N. Security Council imposed sanctions on four commanders of Sudan’s warring paramilitary force suspected of atrocities against civilians that U.N. experts said showed “hallmarks of genocide.”
The four commanders in the Rapid Support Forces, which have been at war with the Sudanese military since 2023, were added to the blacklist for their activities in el-Fasher, especially on Oct. 26, the day the paramilitary force took over the North Darfur capital.
The United Kingdom imposed sanctions on the four commanders in December, and Tuesday’s designations follow a report last week by U.N.-backed human rights experts. They reported that the RSF carried out mass killings and other atrocities in el-Fasher after an 18-month siege, during which they imposed conditions “calculated to bring about the.....
https://apnews.com/article/un-sudan-rsf-darfur-atrocities-sanctions-paramilitary-93fa977773e81f5c34543edad833ce49
Wedding celebration turns tragic in #Sudan’s Darfur drone strike, at least 30 killed
A drone strike on a town in Sudan’s #Darfur region hit a wedding party, killing at least 30 civilians, including women and children, the #United_Nations said Thursday.
Stéphane Dujarric, spokesperson for the U.N.'s secretary-general, said during a briefing that the wedding ceremony was in the town of Kutum in North Darfur.
The strike is the latest in an intensifying dronefare between the army and the paramilitary Rapid Support Forces (#RSF), who have been at war since April 2023. The nearly three-year conflict in Sudan killed more than 40,000 people, according to U.N. figures, but aid groups say the true number could be much higher.
The Emergency Lawyers, a local rights group, and Resistance Committees in el-Fasher, a grassroots group tracking the war, blamed the Wednesday attack on the Sudanese Armed Forces in statements released on Thursday on social media....
https://x.com/addisstandard/status/2042839988333637933?s=20
News: CPJ urges immediate release of three female journalists detained by #Sudan’s RSF in #Darfur
The Committee to Protect Journalists (#CPJ) has called on Sudan’s Rapid Support Forces (#RSF) to immediately release three female journalists from Nyala State Radio who have been held in South Darfur since February 28.
Mawaheb Ibrahim, Zahraa Muhammad Al-Hassan, and Ishraqah Abdulrahman, a presenter and host at the station, were arrested while attending a workshop for female journalists in Nyala and transferred to Korea prison.
As of mid-March, they remain detained without formal charges or access to a court hearing, according to a local journalist who spoke to CPJ on condition of anonymity.
“The Rapid Support Forces must immediately release Nyala Radio journalists… and stop arbitrarily detaining members of the press,” said CPJ Regional Director Sara Qudah.........
https://www.facebook.com/AddisstandardEng/posts/pfbid02t2LyU7er97SdsVTLQtsetnF7pkiLq4V4Kqk2ULVgHsqgma7N1pi6rfYJ2ceCzRNVl
Famine threat spreads in #Sudan’s Darfur as hospital attack kills 22 amid ongoing war
Famine is threatening additional areas in war-ravaged Sudan’s western #Darfur region, a global hunger monitoring body warned on Thursday, even as an attack by paramilitary forces on a military hospital in the country’s south killed at least 22 people, including the hospital’s director and three medical staff.
Sudan has been engulfed in conflict since April 2023, following a power struggle between the Sudanese military and the paramilitary Rapid Support Forces (#RSF). The war has triggered what the United Nations has described as the world’s worst humanitarian crisis
The Integrated Food Security Phase Classification (#IPC) said acute malnutrition has reached famine-level thresholds in two more towns in Darfur — Umm Baru and Kernoi in North Darfur province — though it stopped short of formally declaring famine due to lack of sufficient data on mortality and.....
https://www.daijiworld.com/news/newsDisplay?newsID=1305714
Sexual violence is being used as a weapon in #Sudan’s war, doctors group says
#Sexual_violence against women and girls is being used as a weapon of war in Sudan ‘s fierce conflict between the military and paramilitary Rapid Support Forces (#RSF), international aid group Doctors Without Borders said in a report Tuesday.
Sudan slid into chaos in April 2023 when a power struggle between the two forces exploded into open fighting in Khartoum and elsewhere. The International Criminal Court is investigating mass killings, gang rapes and other crimes during the conflict as potential war crimes and crimes against humanity.
Doctors Without Borders, known by its French acronym #MSF, detailed in its report the accounts of women who were gang raped in the South #Darfur and North Darfur regions.
MSF said that at least 3,396 survivors of sexual violence sought treatment at their facilities between January 2024......
https://apnews.com/article/sudan-war-darfur-sexual-violence-rape-rsf-bead0dded97628032066141e063e41e5
#Opinion: #AU Summit: Annual ritual without tangible progress
Every February, African leaders gather in #Addis_Abeba for the African Union (AU) summit, issuing ambitious communiqués and pledges of unity. Yet, Gebremichael Negash argues that “for millions of ordinary Africans, little changes.”
Since the AU replaced the Organization of African Unity in 2002, its commitment to “non-indifference” has often clashed with political hesitation. Peacekeeping missions in #Darfur and #Somalia, along with interventions in #Ethiopia, #Sudan, and #South_Sudan, reveal a recurring pattern: “acknowledgment without enforcement.”
Gebremichael emphasizes that “Africa does not suffer from a shortage of declarations. It suffers from a shortage of consequences,” warning that summits “risk being rituals” unless enforcement and accountability are prioritized.
https://addisstandard.com/?p=55235
News: #UN reports Over 6,000 killed in #Sudan’s El Fasher in three days as RSF took control
At least 6,000 civilians were killed in just three days during an assault on the #Darfur city of #El_Fasher, according to a new report by the United Nations Office of the High Commissioner for Human Rights (#OHCHR).
The report describes a wave of violence that has shocked human rights monitors, highlighting the scale of atrocities committed by Sudan’s Rapid Support Forces (#RSF) and allied militias.
According to the report, the killings occurred between October 25 and 27, 2025, as RSF fighters and allied paramilitaries overran El Fasher. On October 26, the RSF, along with their allied Arab militias known as Janjaweed, seized control of el-Fasher, the Sudanese army’s last remaining stronghold in Darfur, and launched a violent campaign across the city and its surrounding areas after enduring...
https://web.facebook.com/AddisstandardEng/posts/pfbid02rce3AMAVyevwjuMvSNrMmeUvRvqwS2SpH8NNMxkUz1sAonPfXdtmqpjpUvJpVtRhl
#Sudan slams #Uganda for hosting paramilitary chief
Sudan's army-aligned government on Sunday criticised #Kampala for hosting rival paramilitary chief Mohamed Hamdan Daglo, slamming his reception by Uganda's president as an "affront to humanity".
#Hemeti on Friday met with Ugandan President Yoweri #Museveni at #Entebbe's State House, a day after a United Nations probe found his forces had committed acts of genocide in #Darfur.
Sudan's foreign ministry on Sunday criticised the meeting, saying the #RSF's atrocities had been "documented by the international community and condemned by regional organisations of which Uganda is a member", including the African Union & the Intergovernmental Authority on Development (#IGAD).
Daglo, speaking during his visit, said he travelled to Uganda after President Museveni was approached by the Sudanese army seeking his mediation.
His visit came a week ...
https://web.facebook.com/AddisstandardEng/posts/pfbid0RVfv7fGAkLcW1TgpDMTNhYyCwS2wG1KVnGgVMpCy7DS1XtYtuU8nnEyrcYCRtLaal