Jamie Chang
changs.co.uk
Jamie Chang
@changs.co.uk
20 followers 110 following 20 posts
https://blog.changs.co.uk
Posts Media Videos Starter Packs
Reposted by Jamie Chang
I benchmarked --help on a CLI with the ref implementation for PEP 810 (lazy imports).

Because my CLI moved imports into functions just before they get used, I got a speedup of x1.3.

Then I moved all the imports to the top like normal, and got a speedup of x2.9!

hugovk.dev/blog/2025/la...
#Python
Three times faster with lazy imports
hugovk.dev
I'm excited to see UUID V7 being supported more universally.

For databases, UUID 7 combines the flexibility and security of UUID 4 with time based ordering making it a great choice for IDs
What's New in Python 3.14:

* Support UUID versions 6, 7, & 8 via uuid.uuid6(), uuid.uuid7(), & uuid.uuid8()

* uuid.NIL and uuid.MAX represent Nil and Max UUID formats

* Generate multiple UUIDs at once via python -m uuid --count

docs.python.org/3.14/whatsne...
#Python #Python314 #UUID #RFC9652
What’s new in Python 3.14
Editor, Hugo van Kemenade,. This article explains the new features in Python 3.14, compared to 3.13. For full details, see the changelog. Summary – release highlights: Python 3.14 will be the lates...
docs.python.org
Reposted by Jamie Chang
If you use "AI agents" (LLMs calling tools in a loop) you need to be aware of the Lethal Trifecta

Combine access to private data, exposure to untrusted content and the ability to externally communicate and an attacker can trick the system into stealing your data simonwillison.net/2025/Jun/16/...
The lethal trifecta for AI agents: private data, untrusted content, and external communication
If you are a user of LLM systems that use tools (you can call them “AI agents” if you like) it is critically important that you understand the risk of …
simonwillison.net
#MCP is here to stay, so I tried implementing something slightly more useful than a weather tool. See how you can use custom MCP servers to help with your github workflow:
blog.changs.co.uk/first-look-a...
First Look at MCP
Previously I've played with tool calling in Langchain and Python sandboxes. But recently MCP (Model Context Protocol) is front and center. So I...
blog.changs.co.uk
Quick look at the state of free-threading in #python 3.14 beta

blog.changs.co.uk/python-314-s...
Been a little obsessed with #ocaml lately, so I've tried to bring some of #functional ergonomics into #Python.

Checkout my new package better-functools
pypi.org/project/bett...
TIL: though functools.partial can't be expressed using #Python types, both pyright and mypy support it fully.
pyright-play.net?pythonVersio...
Pyright Playground
pyright-play.net
Reposted by Jamie Chang
We’re building a new static type checker for Python, from scratch, in Rust.

From a technical perspective, it’s probably our most ambitious project yet. We’re about 800 PRs deep!
I love this almost completely useless graphql page where it shows you all the cool tools but doesn't give you any links to them.
graphql.org/community/to...
Tools and Libraries | GraphQL
A collection of tools and libraries for GraphQL
graphql.org