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
🤔 Do you know how to use the phrase ‘bite the bullet’? Here’s an example sentence: “I decided to bite the bullet and start cleaning up after the party.” 🎉
💬 Can you write another example sentence?
EXTRA: to learn other useful expressions like this, click on our link in bio.
#LearnEnglish#Idioms#EnglishGrammar
🥗Salad? 🥕Carrots? 🍳Eggs? Do you like food as an adult that you hated when you were young? 🤮 Answer this grammar question – and then tell us all about it!
There's more about 'used' to on our website - just click the link in our bio! 👆👆👆
#Grammar#EnglishGrammar#LearnEnglish#English
📚First Conditional (Simple & Clear)
We use the first conditional to talk about real or possible situations in the present or future and their results.
🧩 Structure:
If + present simple, will + base verb
✅ If I pay attention in class, I will understand everything.
➡️ Real situation → real result.
#EnglishGrammar#Conditionals#LearnEnglish
👋 Learn how to use the present simple. Look at the images and complete the gap:
We _______ to school on Saturdays.
a. does not go
b. not go
c. don’t go
🤩 EXTRA: Click on our link in bio for more help with this tense.
#learnenglish#present#englishgrammar#englishtips
How to Learn a British Accent *Fast* - (Modern RP - ALL Vowels & Consonants!)
2023-03-23 by English with Lucy
#Grammar#EnglishGrammar#LearnEnglish
#YouTube#liked
Mastering Prepositions of Time: IN, ON, AT! ⏰
Do you ever get confused about which preposition to use when talking about time? You're not alone! Here is a quick cheat sheet to help you remember:
🎯 AT – for specific times (e.g., mealtimes, clock times, night, the weekend)
📅ON – for days and dates (e.g., Saturday, the 8th of September)
⏳IN – for longer periods (e.g., months, seasons, years, the morning)
Check out the infographic above for more examples!
Test your knowledge! Take the quick quiz below and see how much you've learned. Save this post for later, and forward it to a friend who is practicing their spoken English! 🔖
#LearnEnglish#EnglishGrammar#Prepositions#EnglishTips#ESL
🤯Oh no! We've all done it! But don't worry about your phone – can you answer this grammar question? We'll tell you the answer later! 😃
#pastsimple#englishgrammar#learnenglish#verbs#gapfill
There are lots of tag questions in English so which is the correct one? Look at the images and choose the correct tag question:
-
#learnenglish#questiontags#tagquestions#englishgrammar#englishtips#grammar
Difference Between “drop out” and “be dropped out”
Many people make this mistake:
❌ I was dropped out
This sentence is grammatically incorrect.
The correct structure is:
✅ I dropped out.
Meaning: I voluntarily left or withdrew from school/university.
Why “was dropped out” is wrong
“Drop out” is an intransitive verb.
It does not take an object, so it cannot be used in the passive voice.
❌ You cannot say:
I was dropped out of university.
Because dropping out is something you do yourself.
Correct Usage
If it was your decision:
I dropped out of university.
If it wasn’t your decision:
Use other verbs to express that:
I was expelled from university.
I was forced to leave university.
@fluencyinenglish
#EnglishGrammar#GrammarTips#DropOut#PassiveVoice#IntransitiveVerbs#IELTSGrammar#CommonMistakes#LearnEnglish#TEFL
Do you know how and when to use ‘in’, ‘on’ and ‘at’ to talk about time? ⏰
We normally use:
at – for specific times, such as mealtimes and clock times
on – with days and dates
in – for longer periods of time, such as months, seasons and years.
Save this post for later and don’t forget to share with a friend who loves learning English! 🔖
#LearnEnglish#EnglishGrammar#PrepositionsOfTime#InOnAt#GrammarTips#ESL#DailyEnglish
🛫 Advertising: @Advertise_on_Telegram