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
Почерк — это отражение нашей личности на бумаге.
Handwriting is a reflection of our personality on paper.
✍️Николай Гоголь
Nikolai Gogol
✍️Эрнест Хемингуэй
Ernest Hemingway
✍️Александр Дюма (отец)
Alexandre Dumas père
✍️Владимир Набоков
Vladimir Nabokov
✍️Джейн Остин
Jane Austen
✍️Александр Пушкин
Alexander Pushkin
✍️Вирджиния Вулф
Virginia Woolf
✍️Иоганн Гёте
Johann Wolfgang von Goethe
✍️Франц Кафка
Franz Kafka
✍️Лев Толстой
Leo Tolstoy
❓️How is your handwriting when you write in Russian?😉
▶️Russian cursive letters (+practice)
#cursive
#brief_and_interesting
😎RCR | Support | Boost
School in the Russian Empire, late 19th century
❓️Can you read the 3 words written on the board?
🗝
In the Russian Empire 'i' stood for modern 'и':
1. Жукъ = жук (beetle)
2. Ученiя = учения (studies)
3. Сiянiе = сияние (shining)
▶️Reforms in 1918
#retrophotos
#cursive
😎RCR | Support | Boost
In Russia doctors may be required to print prescriptions: many pharmacists and patients struggle to read their handwriting.
🔻This leads to the refusal of medication sales, treatment delays, or the dispensing of the wrong drug, believes MP Anton Tkachev. He emphasized that it's especially difficult for the elderly, who cannot decipher the prescriptions themselves.
📎 And you say you can't read what Russians write. Russians themselves struggle to decipher what other Russians write! :)
Source: rt_russian
#cursive
#learnRussian
#news
😎RCR | Support | Boost
That merciless Russian cursive handwriting!
• Шиш
[shysh]
🔻This interjection (or sometimes exclamatory noun) is used to denote a strong, emphatic refusal, denial, or the idea of nothing or you won't get anything.
⚠️It's generally rude or dismissive!
🔻Шиш is a very close synonym of фиг. Both words are used in similar contexts to express negation, refusal, or to refer to the fig sign gesture.
🔻While фиг might be slightly more common and versatile in some everyday expressions, шиш carries a similar dismissive and negative connotation.
#spoken_Russian
#cursive
#foul_language
😎RCR | Support | Boost
Writing Ч ч in cursive can be challenging, but not for you!
🔻Let's watch the video, print out the practice sheet and, shedding tears of despair, practice and move on.
❓Which other letters of the Russian alphabet make you overwhelmingly want to chuck the study of Russian overboard?
📎The pdf file is in the comments
▶️Hard sign tutorial
▶️Сursive letters
#practice
#cursive
😎RCR | Support | Boost
Writing the hard sign (ъ) in cursive can be challenging, but not for us, right?
🔻Let's watch the video, print out the practice sheet and, shedding tears of despair, practise and move on.
❓Which other letters of the Russian alphabet make you overwhelmingly want to chuck the study of Russian overboard?
📎 file is in the comments
▶️Сursive letters
#practice
#cursive
😎 Stay with @learnRCRussian
Напиток называется "Grappa", а не то что вы прочитали.
The drink is called Grappa, not what you read.
🤔What did you read?
🗝
🔞⚠️
• Сучара (femin.)
[su-cha-ra]
⚠️ Vulgar slang! A highly offensive, intensified version of сука(bitch). Means something like a total bitch. Expresses extreme hatred, betrayal, or disgust.
❗️Do not use this word! Understand it only to recognize aggression in speech or media!
#cursive
#linguistic_joke
#Russian_riddle
#foul_language
😎RCR | Support | Boost