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
👉Signs of Cheating👈
If you’re already thinking that cheating might be present in your relationship, chances are it is. While there’s no clinical diagnosis that can uncover whether or not your partner is cheating, there are several signs that could mean infidelity is there.
Here are 10 well-known signs of cheating:
📌 Protectiveness With Electronic Devices
Partners engaged in infidelity often cheat over the internet, either on their computer or phone. If your partner is overly protective of their electronic devices or defensive about spending time on them, that might mean they don’t want you to know who they’re talking to.
📌 Periods of Unreachability
There might be times when your partner simply disappears and you have no clue where they are. That might mean that they are with someone they don’t want to tell you about.
📌 Different Levels of Sexual Interaction
While you might think that a person who is cheating would have less time for sex with their partner, this isn’t necessarily true. For some people, cheating actually causes them to feel sexually energized and suddenly start to seek out more frequent or different kinds of sex with the person they’re cheating on.
📌 Inconsistent Explanations
Lying is much harder than many people understand, especially constant lying to a committed partner. While liars will do their best to repeat the same story each time they lie, they usually start to give inconsistent information when under stress or if asked the same questions in a way they’re not used to.
If your partner gives conflicting explanations for where they are, what they’re doing, or how well they know someone who you suspect they’re cheating with, this could be because they’re having difficulty keeping their lies consistent.
📌 Altered Schedule
If working late is suddenly a new normal even though your partner’s job doesn’t really require it, they may not be telling the truth about where they are.
#part1
🧪⚜️ CORONA VOCAB 2019-20 ⚜️🌡
🦋 English grammar & Vocab 🦋
#Part1
🌸🌸🌸🌸🌸🌸🌸🌸🌸🌸🌸🌸🌸
🦠 Acute respiratory stress syndrome (ARDS)
✔️a condition in which fluid builds up in the air sacs of the lungs. The fluid prohibits the lungs from getting enough air, leading to a deprivation of oxygen in the bloodstream. The condition is often fatal.
🦠 Asymptomatic
✔️presenting no symptoms of disease. In the case of COVID-19, this means absence of fever, dry cough, sore throat, shortness of breath and body aches, among other less common symptoms. Notably, it is recommended that individuals do not get tested unless they exhibit symptoms because of the risk of false negatives. In other words, most tests will not be accurate unless symptoms are present.
🦠Case fatality rate
✔️ the ratio of deaths from COVID-19 to the total number of individuals diagnosed with the disease.
🦠Clinical trial
✔️ research experiments on human participants designed to answer questions about new treatments; in the case of COVID-19 and coronaviruses, the safety and efficacy of a potential vaccine.
⭐️@TowardDiscoveringEnglish⭐️
Культура кофе #part1
Так как я жуткий кофеман, я не могу не написать про кофе с кардамоном. И вообще про культуру кофе.
Арабы никогда не зальют кофе для турки просто кипятком и размещают ложкой в кружке. Это кощунство по мнению арабов! Кофе обязательно нужно сварить в турке. Если вы говорите «قَهْوَة سادة», это значит, что в кофе не будет сахара от слова совсем. Если вы промолчали, то автоматически вам принесут кофе с сахаром. Будьте готовы, что арабы кладут сахар от души, поэтому скорее всего вы будете пить сахар с кофе, а не кофе с сахаром.
Продолжение следует.
Хештег #арабскийкофе
✨ Opportunity you're missing!#part1
Freshman Academy is now providing free classes with an experienced methodology for students preparing for the Standarized tests (SAT), English level test, or willing to boost their English comprehension & communication.
You can join classes through registering to the Education Lab and will get access to attend-free lessons.
#opportunities
A Day at the Rangein Poland: My First Glock Experience (Part 1)
I don't know how I got interested in shooting or guns but maybe after watching this video, I started watching more about guns. Somehow I developed habit to see videos about assembling, aiming, how it works type of videos. One day, I was talking with my friend about multi-sport, app that gives access a lot of sport activities. So I saw there was a section called "Shooting Range". I got hooked. Since then I was thinking to go there.
#part1#story