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
🇳🇬#Nigeria : des familles déplacées luttent pour leur survie dans l’État de Benue, à l'est du Nigeria
Dans la région de Gbajimba, des familles déplacées témoignent de conditions de vie extrêmement difficiles, marquées par la faim, l’absence de revenus et l’accès limité à l’éducation.
Le conflit entre agriculteurs et éleveurs a forcé de nombreuses personnes à fuir leurs terres, laissant derrière elles des zones agricoles abandonnées. Dans les camps, les habitants survivent avec très peu de ressources et doivent parfois recourir à la mendicité pour se nourrir.
Cette situation intervient alors que le président Bola Ahmed Tinubu a déclaré un état d’urgence sur la sécurité alimentaire dans le pays.
RT en français • Osez questionner !
🟢La justice place El-Rufai en détention
Au #Nigeria, l’opposant Nasir El-Rufai est accusé d’avoir espionné le conseiller à la sécurité nationale Nuhu Ribadu.
Selon les enquêteurs, il aurait accédé à des conversations privées ou en aurait tiré profit, et mené une surveillance illégale. Les accusations s’appuient notamment sur une interview dans laquelle il aurait évoqué ces pratiques.
L’ancien gouverneur rejette ces allégations, mais la justice a ordonné son placement en détention en attendant une audience sur une éventuelle libération sous caution.
RT en français • Osez questionner !
Assalita la St. James the Great Catholic Church ad Adu, nel distretto di Takum, nello Stato di Taraba nel nord-est della #Nigeria. I fatti risalgono al 23 marzo quando un gruppo armato di pastori Fulani ha assalito la chiesa che ha riportato ingenti danni: finestre infrante, edifici parrocchiali vandalizzati e la residenza del parroco danneggiata. L’attacco è stato descritto come preciso e coordinato, in linea con un avvertimento lanciato dalle forze di sicurezza il 19 marzo che metteva in guardia da imminenti attacchi coordinati a Taraba e nel Kaduna meridionale.
Secondo quanto riportato dalla stampa locale, la segnalazione delle forze di sicurezza nigeriane era alquanto dettagliata, indicando un attacco terroristico imminente coordinato contro la popolazione civile nelle città di Chenchenji e Yelwa, lungo la strada Wukari-Takum.
Il rapporto dell’intelligence nigeriana affermava che il 19 marzo era stata avvistata una banda di pastori Fulani armati mentre attraversavano il fiume Donga, diretti verso Gbundu, e verso sud-ovest in direzione di Amadu, e Chenchenji. Secondo Fides “si tratta di un ulteriore segnale notato negli ultimi mesi di un rafforzamento delle infiltrazioni di bande armate nella regione che sfruttano come copertura i movimenti di grandi mandrie di bestiame. I banditi hanno quindi allestito campi nella boscaglia radicandosi nelle aree rurali”.
Il rapporto dell’intelligence specifica che a sorveglianza aerea effettuate tramite droni aveva confermato la presenza di pastori che si spostavano mostrando armi automatiche pronte all’uso, indice secondo le forze di sicurezza, di “un’escalation al di là della tipica attività banditesca”.
L’assalto alla chiesa viene visto come una rappresaglia per le perdite subite dai banditi il 17 marzo, quando gruppi di difesa della comunità locale Tor-Damisa hanno respinto un gruppo di pastori armati con le loro mandrie, causando ingenti perdite di bestiame. La situazione d’insicurezza nell’area ha costretto alla fuga circa 90.000 persone.
Un'altra chiesa distrutta da un incendio doloso in Africa. Ad essere distrutta dalle fiamme la chiesa cattolica di St. Mary a Katchuan Irruan, in #Nigeria, nell'area del governo locale di Boki, nel nord dello Stato di Cross River.
Come riportano i media locali, l'assalto è avvenuto in piena notte, intorno alle 3 del 26 febbraii. Nonostante il pronto intervento dei vigili del fuoco, le fiamme hanno causato danni significativi alla struttura. Particolarmente danneggiato il tabernacolo.
La polizia ha avviato le indagini per risalire ai responsabili dell'attacco che, secondole.prime indiscrezioni, avrebbero preso di mira gli archivi conservati nella sacrestia della chiesa. La sacrestia sarebbe infatti il luogo d'origine delle fiamme che si sono poi propagate al resto della struttura.
ALERTE 🦠 | Un virus précédemment inconnu a été découvert au #Nigeria🇳🇬 Les scientifiques n'ont pas encore identifié les symptômes exacts, car les personnes meurent plus rapidement que la maladie ne peut être diagnostiquée. À l'heure actuelle, tout ce que l'on sait est que l'épidémie s'est déclarée dans un pensionnat militaire de la ville de Zaria. Certains des malades atteints de cette infection inconnue sont à l'hôpital universitaire dans un état critique. Selon les médias locaux, dix personnes sont décédées.
Photo: d’illustration
REJOIGNEZ LA RÉSISTANCE SUR lTELEGRAM.
🔺Pour les numéros français : https://t.me/egountchibehanzinTV
🔻Pour les numéros internationaux : https://t.me/egountchibehanzinTV
@egountchibehanzinTV
Exit le dollar: le #Nigeria et l'Inde utiliseront leurs propres monnaies dans les échanges bilatéraux.
Ils signeraient bientôt un accord ad hoc, relate le journal nigérian Nairametrics.
Le règlement en devises locales renforcerait les liens économiques, précisent les parties.
Source: SputnikAfrique
@egountchibehanzin
🇳🇬#Nigeria: Up to 75 ISWAP militants were reportedly killed following a failed infiltration and raid attempt on a Nigerian military base in Malam Fatori, Borno State.
The militants attempted to storm the positions of the 68 Battalion’s “Bravo Company” on foot, while also deploying several explosive-laden drones in an effort to breach defensive fortifications in the area.
In the early hours of today, Nigerian troops engaged the militants in a fierce firefight. In coordination with ground forces, the Nigerian Air Force (NAF) also conducted airstrikes on the jihadists.
Forces from neighboring Niger also carried out airstrikes in support of the operation. A large amount of equipment was confiscated following the failed raid, with Nigerian media releasing footage showing the aftermath of the fighting.
(📸 via @ZagazOlaMakama on X)
🇳🇬#Nigeria: Footage shows the aftermath of intense clashes overnight between ISWAP militants and the Nigerian army in Maiduguri, Borno State.
Several military camps were seen burning after the attacks.
During a single night, ISWAP militants attempted raids on Maiduguri, the Buratai Battalion headquarters, the Baga military camp, and the Damboa Brigade headquarters.
(via @BrantPhilip_ on X)
🇳🇬#Nigeria: Footage recorded by a Nigerian soldier during intense clashes with IS-WAP militants near the town of Konduga in Borno State.
The footage was allegedly taken yesterday during the fighting.
(📹 via @conflictarchive)
🇳🇬#Nigeria: ISWAP (ISIS in West Africa) militants have raided several Nigerian Army camps in Borno and Yobe states.
Reports say multiple soldiers were killed in the attacks. The jihadist fighters used small arms and RPG launchers during the raids.
(via @war_noir)
🇳🇬#Nigeria: ISWAP have claimed responsibility for an attack on the Garahamojili camp of the Nigerian army in Adamawa State.
During the 20-minute battle, the militants have killed two soldiers and torched the camp along with three vehicles.
(via @AIW898 & @BrantPhilip_ on X)
🇳🇬#Nigeria: The Islamic State – West Africa Province (ISWAP) has launched a wave of attacks against Nigerian Army camps in Yobe and Borno states. The militants stormed the bases, burning Nigerian Army equipment, vehicles, and outposts.
(via @war_noir)