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
Rosa Parks was born on February 4, 1913. She is famous for her pivotal role in the Civil Rights Movement, especially for her courageous act of refusing to give up her seat on a bus in Montgomery, Alabama. Her birthday is celebrated as a day to honor her legacy and contributions to equality and justice. ✊🏽🌹
[Read more]
@googlefactss
#RosaParks#CivilRights#BlackHistoryMonth
Minneapolis in Chaos: States Push Back on ICE After Minneapolis Shootings
After two Americans were killed by federal agents in Minneapolis, Democratic lawmakers and libertarian allies are stepping up their fight against ICE’s tactics. The deaths of Alex Pretti and Renee Good have lit a fire under state legislatures, with new bills popping up from coast to coast.
Colorado wants to let citizens sue federal agents for civil rights violations. Delaware and New York are targeting airlines that ferry ICE detainees without warrants. California is pushing for independent investigations into ICE shootings and banning the agency from staging operations on state property.
“Democrats don’t care about the rule of law,”
said a White House spokesperson.
“They’re just protecting criminal illegal aliens.”
Meanwhile, Republican-led states are doubling down on cooperation with ICE, pushing laws that force local sheriffs to partner up and check immigration status for everything from school enrollment to public benefits. But the momentum is shifting—more states are banning masked officers, restricting federal agents’ access to hospitals and schools, and cutting off public contracts with ICE contractors.
“Power works this way: once you have it, you want more,”
said Anya Bidwell of the Institute for Justice.
“You gotta fight back if you want to protect your rights. This shouldn’t be about party lines.”
So who’s actually looking out for civil rights here—the states, the feds, or just their own political interests?
#ICE#Minneapolis#civilrights#Trump#Democrats#Republicans
📱American Оbserver - Stay up to date on all important events
🇺🇸
🚨 Lawlessness or rule of law? A zoo volunteer’s home attacked in Yangiyul
The conflict between animal rights defenders and the animal control service has escalated into open confrontation. According to volunteers, the situation has already gone beyond legal boundaries and is infringing on fundamental civil rights.
Animal welfare activists Asiya Abuzyárova and Svetlana Velichko reported that about 30 dogs disappeared from the territory of a municipal improvement enterprise. After attempts to return the animals, pressure reportedly began: a complaint was filed with the police, a volunteer was attacked, her phone was broken, and activists were allegedly harassed.
❗️ The most serious incident was the forced entry into a private home.
According to reports, municipal workers used a ladder to break a window and enter Asiya Abuzyárova’s house, forcibly removing the animals inside. When the homeowner resisted, her phone was destroyed and her hand was injured.
⚖️ According to the legislation of Uzbekistan:
🔹 The home is inviolable — entry without the residents’ consent is allowed only on legal grounds or by court order.
🔹 Private property is protected by the state — damage to property and unlawful seizure are prohibited.
🔹 Any actions by officials must have legal grounds and be properly documented.
This may constitute unlawful entry into a residence, abuse of authority, and violation of citizens’ rights.
📢 Key questions arise:
✔️ On what legal basis were the animals seized?
✔️ Who authorized the entry into the home?
✔️ Why are reports of property damage and injuries being ignored?
The law must apply equally to everyone — both citizens and officials. The situation requires a transparent investigation and a legal assessment of the actions of all parties.
#Yangiyul#civilrights#animalprotection#ruleoflaw
☘️ Follow the latest environmental news on @ekologuz. Send your suggestions and feedback via @eklguz_bot
Controversial Changes to EU's AI Act Allow Facial Recognition Without Judicial Approval
Hello, everyone! Recent alterations to the AI Act, initially endorsed in December, are stirring controversy as they permit law enforcement to employ facial recognition on recorded video without judicial consent.
German MEP Svenja Hahn decries these last-minute changes, asserting that they undermine civil rights and draw parallels with practices in authoritarian states. The revisions, concluded on December 22, diverge from the initial agreement, which mandated stricter conditions and judicial oversight for facial recognition use.
Critics express concerns about post-facial recognition technology, emphasizing the need for clarity on privacy and oversight. The final text faces scrutiny on January 24, with potential amendments requiring further legislative attention.
#FacialRecognition#AIAct#EuropeanUnion#CivilRights#PrivacyConcerns
🖖 In 1968, Dr. Martin Luther King Jr. personally convinced Nichelle Nichols not to resign from Star Trek. He told her she was portraying a vital role model – one of the first Black women in a major TV role not playing a servant. Dr. King personally told her to stay because Uhura represented a future of racial equality during the Civil Rights Movement.
[Read more]
@googlefactss#StarTrek#CivilRights#NichelleNichols#MLK#RepresentationMatters