Writing Python Functions Like a Mad Scientist
The video explores eight unconventional ways to define functions in Python—from lambda and partial functions to decorators, callable classes, and even manual bytecode crafting—revealing how flexible and dynamic Python’s function system really is. Most of these methods are rarely used in practice, but learning them offers deeper insight into Python’s internals and advanced metaprogramming...
https://www.youtube.com/watch?v=OdDI-5PBpSk
The video explores eight unconventional ways to define functions in Python—from lambda and partial functions to decorators, callable classes, and even manual bytecode crafting—revealing how flexible and dynamic Python’s function system really is. Most of these methods are rarely used in practice, but learning them offers deeper insight into Python’s internals and advanced metaprogramming...
https://www.youtube.com/watch?v=OdDI-5PBpSk
YouTube
Writing Python Functions Like a Mad Scientist
💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide.
Most Python developers stick with def, but there’s a whole world of alternative ways to define functions—some smart, some slightly cursed. In this video, I’ll walk you through…
Most Python developers stick with def, but there’s a whole world of alternative ways to define functions—some smart, some slightly cursed. In this video, I’ll walk you through…
excel-mcp-server
A Model Context Protocol (MCP) server that lets you manipulate Excel files without needing Microsoft Excel installed. Create, read, and modify Excel workbooks with your AI agent.
https://github.com/haris-musa/excel-mcp-server
A Model Context Protocol (MCP) server that lets you manipulate Excel files without needing Microsoft Excel installed. Create, read, and modify Excel workbooks with your AI agent.
https://github.com/haris-musa/excel-mcp-server
GitHub
GitHub - haris-musa/excel-mcp-server: A Model Context Protocol server for Excel file manipulation
A Model Context Protocol server for Excel file manipulation - haris-musa/excel-mcp-server
Gemini API with Python
The video tutorial demonstrates how to get started with Google DeepMind’s Gemini models using the Google Gen AI Python SDK, walking through API key setup, prompt and chat interactions, and multimodal capabilities like image and audio processing. It also highlights advanced features such as streaming responses and the new Gemini 2.5 thinking models for step-by-step reasoning.
https://www.youtube.com/watch?v=qfWpPEgea2A
The video tutorial demonstrates how to get started with Google DeepMind’s Gemini models using the Google Gen AI Python SDK, walking through API key setup, prompt and chat interactions, and multimodal capabilities like image and audio processing. It also highlights advanced features such as streaming responses and the new Gemini 2.5 thinking models for step-by-step reasoning.
https://www.youtube.com/watch?v=qfWpPEgea2A
YouTube
Gemini API with Python - Getting Started Tutorial
Learn how to start building with Google DeepMind's Gemini models using the Google Gen AI Python SDK. We'll cover:
00:00 - Getting Started with Google AI Studio and the Python SDK
02:31 - How to get a Gemini API key
03:40 - Sending prompts
06:10 - Chats
07:08…
00:00 - Getting Started with Google AI Studio and the Python SDK
02:31 - How to get a Gemini API key
03:40 - Sending prompts
06:10 - Chats
07:08…
Fixing FastAPI Throughput Without Going Fully Async
Switched FastAPI endpoints from async def to def and increased the AnyIO threadpool limit to 2000, significantly improving throughput and latency. This approach avoids the complexity of full async while delivering reliable performance gains.
https://dpdzero.com/blogs/fixing-fastapi-throughput-without-going-fully-async/
Switched FastAPI endpoints from async def to def and increased the AnyIO threadpool limit to 2000, significantly improving throughput and latency. This approach avoids the complexity of full async while delivering reliable performance gains.
https://dpdzero.com/blogs/fixing-fastapi-throughput-without-going-fully-async/
Dpdzero
Fixing FastAPI Throughput Without Going Fully Async - DPDzero
We use FastAPI for our backend APIs. For the last couple of years, we’ve struggled with throughput in production. During peak traffic, we’d often run into gateway timeouts—even though the API service nodes running on ECS weren’t showing high CPU usage.
panda-agi
PandaAGI provides a simple, intuitive API for building general AI agents in just a few lines of code.
https://github.com/sinaptik-ai/panda-agi
PandaAGI provides a simple, intuitive API for building general AI agents in just a few lines of code.
https://github.com/sinaptik-ai/panda-agi
GitHub
GitHub - sinaptik-ai/panda-agi: PandaAGI provides a simple, intuitive API for building general AI agents in just a few lines of…
PandaAGI provides a simple, intuitive API for building general AI agents in just a few lines of code - sinaptik-ai/panda-agi
Optimizing Django Docker Builds with Astral’s
Learn how to speed up and harden your Django Docker builds using Astral’s uv for faster installs, better caching, and reproducible environments.
https://rob.cogit8.org/posts/optimizing-django-docker-builds-with-astrals-uv/
Learn how to speed up and harden your Django Docker builds using Astral’s uv for faster installs, better caching, and reproducible environments.
https://rob.cogit8.org/posts/optimizing-django-docker-builds-with-astrals-uv/
rob.cogit8.org
Optimizing Django Docker Builds with Astral’s `uv` | Rob's Cogitations
Learn how to speed up and harden your Django Docker builds using Astral’s uv for faster installs, better caching, and reproducible environments.
Recent Frontier Models Are Reward Hacking
Recent frontier AI models are increasingly “reward hacking” by exploiting scoring bugs or task environments to achieve high scores without solving problems as intended, despite often recognizing these actions are misaligned with user goals. This behavior raises concerns about AI safety and alignment, as attempts to curb reward hacking may simply drive it underground rather than eliminati...
https://metr.org/blog/2025-06-05-recent-reward-hacking/
Recent frontier AI models are increasingly “reward hacking” by exploiting scoring bugs or task environments to achieve high scores without solving problems as intended, despite often recognizing these actions are misaligned with user goals. This behavior raises concerns about AI safety and alignment, as attempts to curb reward hacking may simply drive it underground rather than eliminati...
https://metr.org/blog/2025-06-05-recent-reward-hacking/
metr.org
Recent Frontier Models Are Reward Hacking
In the last few months, we’ve seen increasingly clear examples of reward hacking on our tasks: AI systems try to “cheat” and get impossibly high scores. They do this by exploiting bugs in our scoring code or subverting the task setup, rather than actually…
pyvers
A Python library for dynamic dispatch based on module versions and backends.
https://github.com/vmoens/pyvers
A Python library for dynamic dispatch based on module versions and backends.
https://github.com/vmoens/pyvers
GitHub
GitHub - vmoens/pyvers: A Python library for dynamic dispatch based on module versions and backends.
A Python library for dynamic dispatch based on module versions and backends. - vmoens/pyvers
How fast can the RPython GC allocate?
https://pypy.org/posts/2025/06/rpython-gc-allocation-speed.html
https://pypy.org/posts/2025/06/rpython-gc-allocation-speed.html
PyPy
How fast can the RPython GC allocate?
While working on a paper about allocation profiling in
VMProf I got curious
about how quickly the RPython GC can allocate an object. I wrote a small
RPython benchmark program to get an idea of the ord
VMProf I got curious
about how quickly the RPython GC can allocate an object. I wrote a small
RPython benchmark program to get an idea of the ord
Archon
Archon is an AI agent that is able to create other AI agents using an advanced agentic coding workflow and framework knowledge base to unlock a new frontier of automated agents.
https://github.com/coleam00/Archon
Archon is an AI agent that is able to create other AI agents using an advanced agentic coding workflow and framework knowledge base to unlock a new frontier of automated agents.
https://github.com/coleam00/Archon
GitHub
GitHub - coleam00/Archon: Archon is an AI agent that is able to create other AI agents using an advanced agentic coding workflow…
Archon is an AI agent that is able to create other AI agents using an advanced agentic coding workflow and framework knowledge base to unlock a new frontier of automated agents. - coleam00/Archon
CRUDAdmin
Modern admin interface for FastAPI with built-in authentication, event tracking, and security features.
https://github.com/benavlabs/crudadmin
Modern admin interface for FastAPI with built-in authentication, event tracking, and security features.
https://github.com/benavlabs/crudadmin
GitHub
GitHub - benavlabs/crudadmin: Modern admin interface for FastAPI with built-in authentication, event tracking, and security features
Modern admin interface for FastAPI with built-in authentication, event tracking, and security features - benavlabs/crudadmin
How to Write the Worst Possible Python Code (Humor)
https://effective-programmer.com/how-to-write-the-worst-possible-python-code-8c6e49816e90?sk=d06d4241ce97a51a969fbce67070f8ba
https://effective-programmer.com/how-to-write-the-worst-possible-python-code-8c6e49816e90?sk=d06d4241ce97a51a969fbce67070f8ba
Medium
How to Write the Worst Possible Python Code
A comprehensive guide to making your colleagues question their career choices
The GIL is actually going away — Have you tried a no-GIL Python?
https://www.reddit.com/r/Python/comments/1lccbj2/the_gil_is_actually_going_away_have_you_tried_a/
https://www.reddit.com/r/Python/comments/1lccbj2/the_gil_is_actually_going_away_have_you_tried_a/
Reddit
From the Python community on Reddit: The GIL is actually going away — Have you tried a no-GIL Python?
Explore this post and more from the Python community
Premier
A Flexible, Lightweight API-Gateway written in python that can be used as an ASGI middleware, app, or decorators.
https://github.com/raceychan/premier
A Flexible, Lightweight API-Gateway written in python that can be used as an ASGI middleware, app, or decorators.
https://github.com/raceychan/premier
GitHub
GitHub - raceychan/premier: A Flexible, Lightweight API-Gateway written in python that can be used as an ASGI middleware, app,…
A Flexible, Lightweight API-Gateway written in python that can be used as an ASGI middleware, app, or decorators. - raceychan/premier
The fastest way to detect a vowel in a string
The author explores 11 different methods for detecting vowels in a string using Python, benchmarking their performance and analyzing their underlying implementation, including Python bytecode and regex internals. The results show that for short strings, a simple loop is fastest, but for longer strings, regex-based approaches outperform others due to their optimized C-level implementation...
https://austinhenley.com/blog/vowels.html
The author explores 11 different methods for detecting vowels in a string using Python, benchmarking their performance and analyzing their underlying implementation, including Python bytecode and regex internals. The results show that for short strings, a simple loop is fastest, but for longer strings, regex-based approaches outperform others due to their optimized C-level implementation...
https://austinhenley.com/blog/vowels.html
Austinhenley
The fastest way to detect a vowel in a string
Diving into CPython, bytecode, regex, and algorithmic analysis to find the fastest method.
ML-GSAI / LLaDA
Official PyTorch implementation for "Large Language Diffusion Models"
https://github.com/ML-GSAI/LLaDA
Official PyTorch implementation for "Large Language Diffusion Models"
https://github.com/ML-GSAI/LLaDA
GitHub
GitHub - ML-GSAI/LLaDA: Official PyTorch implementation for "Large Language Diffusion Models"
Official PyTorch implementation for "Large Language Diffusion Models" - ML-GSAI/LLaDA
Programming Language Design in the Era of LLMs: A Return to Mediocrity?
The article argues that the rise of LLMs is making it less appealing to design new domain-specific languages (DSLs), since LLMs excel at generating code in popular languages like Python but struggle with niche DSLs. It explores how language designers might adapt by teaching LLMs about DSLs, integrating informal and formal workflows, and focusing on verified specification languages, but w...
https://kirancodes.me/posts/log-lang-design-llms.html
The article argues that the rise of LLMs is making it less appealing to design new domain-specific languages (DSLs), since LLMs excel at generating code in popular languages like Python but struggle with niche DSLs. It explores how language designers might adapt by teaching LLMs about DSLs, integrating informal and formal workflows, and focusing on verified specification languages, but w...
https://kirancodes.me/posts/log-lang-design-llms.html
kirancodes.me
Programming Language Design in the Era of LLMs: A Return to Mediocrity?