I asked Python folks what they really think about AI taking over programming. Their answers (and a few surprises) are in my latest post π
https://blog.adarshd.dev/posts/pycon-us-ai-and-future-of-programming/
βI have no chance against my phone.β β Magnus Carlsen, 5-time world chess champion, on the power of todayβs chess engines.
Thanks to open-source tools like `python-chess` and Stockfish, anyone can build their own chess analysis program.
I'll be walking through how to do this live at @pycon poster session this weekend.
If you're around, drop by on May 18th, 10am-1pm. Letβs write some code, analyze some blunders, and build something fun together. βοΈ
π Weβre in the second part of Day 1 at PyCascades 2025, and itβs been AMAZING! π
Weβve already had incredible talks from Adarsh Divakaran, Yash Verma, Vagrant Cascadian and Tadeh Hakopian! π The presentations have been top-notch, and weβre just getting started! π
The energy is high, and weβre excited for whatβs coming next. Stay tuned β the best is yet to come! π
hashtag#PyCascades2025 hashtag#Python hashtag#Community
π£ Speaker Spotlight ποΈ
Weβre thrilled to announce that Adarsh Divakaran will be joining us at PyCascades 2025! π
Get ready for an insightful session that you wonβt want to miss! π‘
π
When: February 8th & 9th, 2025
π Where: Revolution Hall, Portland, Oregon
ποΈ Donβt miss outβgrab your tickets now: https://2025.pycascades.com/
Join us for an amazing lineup of talks, hands-on learning, and unforgettable connections with the Python community! π
#Python Gem of the Day
π: Peek - Replace print() for debugging code.
github.com/salabim/peek
- A superset of github.com/gruns/icecream
- Supports debugging function calls, benchmarking execution time etc.
#Python Gem of the Day
π: @pydantic releases PydanticAI: AI agent framework
https://ai.pydantic.dev/
- Can create LLM-powered agents that can run tools/functions based on user prompts, all with the type-safety guarantees provided by Pydantic.
- Examples at https://ai.pydantic.dev/examples/
- Can also be run locally using Ollama models that support tools.
#Python Gem of the Day
π: Avoid Counting in Django Pagination by Nik Tomazic: https://testdriven.io/blog/django-avoid-counting/
- Default Django paginator uses SELECT COUNT(*). Slow for big tables.
- Discusses an implementation of paginator class without COUNT.
- Overfetches an object and uses that to determine if next page is present.
πππ ππππ(ππππ, ππππππ):
...
ππππππ = (ππππππ - π·) * ππππ.πππ_ππππ
πππ = ππππππ + ππππ.πππ_ππππ + π·
...
- Can also be applied to other ORMS too for optimizing perf.
#Python Gem of the Day.
Python in production #1 (Cloud Native vs Stack Native) by Michael Kennedy.
π: https://mkennedy.codes/posts/opposite-of-cloud-native-is-stack-native/
Covers the architecture of production apps which handle:
- 9M req per month
- 10 TB traffic (1 TB served by Python)
Hosted on a 8 CPU / 16 GB Hetzner server.
My first tutorial for Real Python @realpython got published π
"Python Thread Safety: Using a Lock and Other Techniques": https://realpython.com/python-thread-lock/
Unexpected things can happen when we try to introduce multithreading to existing Python code. Read the tutorial to spot such race conditions in multithreaded code and learn to fix them using Python's synchronization primitives.
Read now at: https://realpython.com/python-thread-lock/
In this tutorial, you'll learn about the issues that can occur when your code is run in a multithreaded environment. Then you'll explore the various synchronization primitives available in Python's threading module, such as locks, which help you make your code safe.
It's the season of #Python π #Conferences!
Had a great time at #Piterpy 2024 in Saint Petersburg. I spoke on "Tackling Thread Safety in Python," which happened to be the only English talk at the offline part of the Piterpy conference.
A huge thanks to the entire JUG.RU team, who made sure everything went smoothly for me. They took extra care since I donβt speak Russian and went above and beyond to ensure I had a seamless experience.