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
#Repo-PowerBI
Cumpliendo las peticiones de algunos de ustedes hemos creado un 💫Nuevo grupo de PowerBI, donde estaremos compartiendo cursos, y libros.
Pueden unirse en el enlace de abajo👇
🔗Link
-----
Main channel:@repo_science
Coupons:@freecoupons_reposcience
-----
Reaction Saver
#repo: https://github.com/xditya/ReactionSaver
- React to any message in DMs to save to your configurable LOG_CHAT
- Good for messages or files sent in DMs with privacy enabled (forwards turned off)
- Steps to set up are available here
Star the repo if it helped :)
~ @BotzHub
🎉 Just pushed a new repository to GitHub, been a while :)
ImageTools
#repo: https://github.com/xditya/ImageTools
a python script to manipulate images
- Resize images to exact pixel dimensions (width × height)
- Auto compress images to target file sizes with optimal quality.
- Add noise to ensure the image size meets your requirements.
- Works with JPEG, PNG, and WebP formats.
Makes applying for online examinations easier - no more visiting random websites to alter image dimensions and sizes!
Do leave a ⭐️ if the repo helped :)
~ @BotzHub
Presenting @GeminiTalkBot!
Yes, that's me releasing a bot after a long time lol
#repohttps://github.com/xditya/GeminiChatBot (do give a 🌟)
An AI ChatBot and problem solver, using Google's Gemini AI Model.
- remembers conversations for a smoother problem solving experience, without leaving telegram!
- utilizes Gemini's full capabilities in text generation.
- and more, idk what to add here 🙂
Follow me on GitHub & help me reach 500 followers!
https://github.com/xditya
~ @BotzHub
WhatsApp Media to Sticker
#repo - https://github.com/xditya/WhatsAppUtilitiesBot (do give a ⭐)
- A WhatsApp userbot, currently aimed at converting media to stickers, from within WhatsApp!
You can find a sample bot in the comments of this post, but I'd recommend hosting one yourself, to prevent bans!
Let me know if you have ideas to implement in this bot 😄
Heavily inspired by J Projects
~ @BotzHub
😇 Just made a link shortener website, https://short.xditya.me
🔥 It's opensource, #repo: https://github.com/xditya/WebShortener(do give a ⭐️) and has an API endpoint!
🌚 Powered by 👩💻
👀 Please give your feedback, this is my first working website
~ @BotzHub
🆕PresentingGetRestrictedMessages!
✈️ Deploy your own userbot to copy messages from public and private telegram chats with forward restrictions enabled!
🔥#repo - https://github.com/xditya/GetRestrictedMessages
React to this message with "🌚" if you want a video tutorial on deploying it!
😎 Let me know your opinions in the comments! Star the repository, it encourages me to make more open-source projects :)
~ @BotzHub
Presenting @TGdetailsBot
#repo - https://github.com/xditya/TGdetailsBot
- Get the message data in a telegram message.
- Get chat ID, or forwarded from (channel/user) ID.
- "Interactive" bot.
- Supports clones (read "help" of the bot to know more)!
~ @BotzHub
Deployyour own version of@ChannelActionsBot!
Tutorial - https://youtu.be/hjxfJtk5ZWs
#repo - https://github.com/xditya/ChannelActionsBot
Like the video!
~ @BotzHub
@PexelsSearchBot
#repo🌐 - https://github.com/xditya/PexelsBot
- Inline bot to search images from Pexels.
- Open-source, made in ts 👌
- Use the bot inline, to search and send high quality images from pexels.com.
~ @BotzHub
@MDiskLinksRoBot
🌐#repo - https://github.com/xditya/mdiskDownloadLinks
- Generate direct download links from any MDisk.me link.
- My first bot in TS 👩🦯
- Please do 🌟 the repository!
~ @BotzHub
@TheEmailBot
🌐#repo - https://github.com/xditya/Mailbot
- Generate temporary emails from within telegram.
- Receive mails in that temp mail directly in the bot, with attachments, if any.
- @TheEmailBot also supports custom as well as random email addresses.
Do star the repository⭐️
Also, thanks for 12k members in this channel! ❤️
~ @BotzHub