Hello Python 3.15, now we can use 3.11
Episode Deep Dive
Guest Introduction and Background
Simon Willison is back on Talk Python for this one. Simon is one of the original co-creators of Django, the creator of Datasette (a Python web app for exploring and publishing SQLite data), and the author of LLM, a command line tool and Python library for working with large language models. He also sits on the board of directors of the Python Software Foundation and writes prolifically at simonwillison.net.
Simon's roots are in data journalism. He worked at The Guardian, where the team was trying to publish the data behind their stories, and that experience is the direct inspiration for Datasette. In his words, journalism where reporters run queries to find and explain stories is still "the most thrilling application of computer science."
He maintains a large number of open source Python libraries and tools, nearly all of them built around plugins. That is exactly why he was the right guest for this episode: as a library maintainer, his rule is that if the Python core team supports a version, his libraries support it too. So a new Python release means two "what's new" documents matter to him, the newest one and the one for the oldest version that just became his floor.
What to Know If You're New to Python
This episode is about how Python versions come and go, and what that means for people who publish libraries. A little background on the release cycle and on packaging will make the conversation much easier to follow.
- Python's release and support cycle: A new Python version ships every October, and each version gets about five years of support before it reaches end of life. When 3.15 arrived, 3.10 dropped out of support, which is why 3.11 is now the oldest supported version.
- Libraries vs. applications: If you write an app you deploy yourself, you pick whatever Python you like. If you publish a library, other people's projects depend on you, so you have to keep working on older Python versions they may still be running.
- Imports and startup time: Every
importstatement runs code when your program starts. Big libraries like NumPy or pandas can add seconds to startup, which is the problem lazy imports in Python 3.15 set out to solve. - The GIL and free-threaded Python: The Global Interpreter Lock historically allowed only one thread to run Python code at a time. Free-threaded Python removes that limit, and it comes up in the episode when Simon and Michael talk about performance.
- WebAssembly and Pyodide: WebAssembly lets code written in languages other than JavaScript run in the browser. Pyodide is CPython compiled to WebAssembly, and it is what lets Simon run all of Datasette in a browser tab with no server.
Key Points and Takeaways
A new Python release means two "what's new" documents for library maintainers
This is the idea behind the episode title, taken from Simon's article "Hello Python 3.15, I Can Finally Use Python 3.11." Simon outsources the decision of which Python versions to support: if the core team still supports a version, so do his libraries. When Python 3.15 shipped, Python 3.10 hit end of life, so 3.11 became his minimum version and its features became usable in his open source code for the first time. That means the "What's New in Python 3.11" document, roughly five years old, is almost more exciting to him than the 3.15 one. His hosted, non-open-source projects can run the latest Python, but libraries are different because he is serving other developers. He draws a line between features that are developer-experience niceties, which can wait, and features that make something previously impossible possible, which are worth bending over backwards for.
- devguide.python.org/versions
- docs.python.org/3.15/whatsnew/3.15.html
- docs.python.org/3.11/whatsnew/3.11.html
- simonwillison.net
Lazy imports are the headline feature of Python 3.15, and older Pythons can ignore them safely
Lazy imports are the 3.15 feature Simon is most excited about, because everything he builds uses plugins. A lightweight command line tool can install one plugin that pulls in pandas, NumPy, SciPy, or even PyTorch, and since CLI tools tend to load every plugin at startup, launch time balloons. He described LLM going from starting in about a tenth of a second to two or three seconds. With lazy imports, a module is only actually imported at the moment it is first used, and his experiments showed startup dropping back to roughly 0.2 to 0.3 seconds. The part that surprised both Simon and Michael: you do not need the new lazy import syntax to benefit. You can set __lazy_modules__ at the top of a module, which Python 3.15 honors and older versions simply ignore, so the same code still runs on 3.11. There is also a -X lazy_imports=all interpreter flag that makes everything lazy without changing code at all.
Python 3.15 ships a built-in sampling profiler you can attach to a running process
The other 3.15 highlight is the new sampling profiler in the standard library. A traditional profiler instruments every function call, which slows the program down. A sampling profiler instead takes periodic snapshots of the call stack and builds up a picture of where time is being spent, giving most of the value with almost none of the overhead. Michael pointed out that it has several modes, including wall clock, CPU, GIL, and exception modes, and it can produce flame graph visualizations. The big deal for both of them is that you can hand it a process ID and profile something that is already running, including in production, where attaching a debugger is not an option. Simon noted this is usable right away even if your library's floor is 3.11: run on 3.15 and attach the profiler. He simply pointed Claude at the documentation and asked it to benchmark his code, and it found several places to optimize.
What Python 3.11 unlocks: SQLite upgrades, tomllib, task groups, and more
With 3.11 as the new floor, Simon listed what he gets to use. At the top are the sqlite3 improvements, since Python bundles SQLite: custom window functions written in Python, and setlimit for tuning SQLite internals such as caps and limits. He has already deleted workarounds in Datasette that only existed for 3.10. tomllib in the standard library means TOML can be a configuration format with no extra dependency. Async task groups feel important to him, though he has not used them enough to be confident yet. Michael explained why they are worth learning: they manage a set of independent tasks together, cancel them as a group, and collect the failures if more than one task raises. Simon also called out the typing additions as a nice quality-of-life upgrade and the small but welcome datetime.UTC alias, since he tries to use UTC for basically everything.
- docs.python.org/3.11/whatsnew/3.11.html
- docs.python.org/3/library/sqlite3.html
- docs.python.org/3/library/tomllib.html
- docs.python.org/3/library/asyncio-task.html
Performance: 3.11 was the big jump, 3.15 is not a speed release, and free-threading keeps maturing
Python 3.11 is where the Faster CPython work really landed, running 10 to 60 percent faster than 3.10 for free. So raising your floor to 3.11 means every user gets that baseline. For 3.15, Simon pointed to Miguel Grinberg's "How Fast is Python 3.15?" article, whose methodology he finds credible, and the conclusion is that 3.15 is not meaningfully faster than 3.14. The more interesting story is free-threaded Python, which was experimental in 3.13 and officially supported in 3.14, making 3.15 the first release after the wider public got to test it. Simon wants to use it in Datasette to run many SQL queries in parallel for a single page, because although SQLite releases the GIL, turning results into Python objects still holds it. He admits he has not deployed free-threaded Python to production yet, and stresses that comprehensive tests plus load testing are how you get the confidence to do it.
- blog.miguelgrinberg.com
- docs.python.org/3/howto/free-threading-python.html
- peps.python.org/pep-0703
- py-free-threading.github.io
uv and GitHub Actions make supporting many Python versions cheap
Supporting five Python versions used to be a real burden, and two tools have mostly removed it. Simon uses the GitHub Actions matrix feature on every project, via a project template, to run his test suite against 3.11 through 3.15, so very little slips past that breaks on an older version. Locally, uv run --python 3.12 pytest runs the tests on a specific Python with no manual setup, and you can tell a coding agent to do the same to reproduce a version-specific bug. Simon said uv solved the famous XKCD comic about the tangled Python environment, which used to be the bane of his life when helping people. He also reminded listeners that PyPI metadata records which Python versions each release supports, so dropping a version does not break pip install: users on the old Python simply get the last release that worked for them. Michael added that for tools installed with uvx or uv tool install, the Python version is invisible to the user, so app authors can be much more aggressive than library authors.
Datasette is closing in on 1.0, with Datasette Agent and Datasette Apps
It has been about six years since Simon was on the show to talk about Datasette, and back then he was already promising 1.0. He is now at 1.0a43 and says the remaining milestone is moving quickly. Datasette is a Python web app you point at a SQLite database to browse, search, query, and publish it, extended through plugins. The big new piece is Datasette Agent, a plugin that adds a chatbot which answers questions about your data by running SQL queries. Simon resisted the chat interface for a long time, then built it and found there really was not a better one. He was also cautious about putting AI into a tool for journalists because of hallucination, but feels the models of the last year make that a much smaller risk, and that LLMs are the lever to bring data analysis to newsrooms that cannot afford a programmer. Datasette Apps builds on this: ask the agent for a dashboard and it generates a custom HTML and JavaScript page backed by SQL queries, which you can then refine by chatting. Simon calls it his version of Claude Artifacts, except it can talk to a database.
Datasette Lite and Pyodide: a full server-side Python app running in the browser
Simon published a blog post during the recording announcing a new version of Datasette Lite, which runs Datasette entirely in the browser on Pyodide. It started four years ago as a joke, since running a server-side web app client-side amused him, but people found it useful because you can hand it a URL to a CSV or JSON file and explore it instantly. The new version removes the old hacks and supports everything Datasette does, including plugins. Add ?ref=main to the URL and it loads Datasette from the main branch on GitHub, or from a pull request, and you can even pick a specific SQLite version. That makes it a free, static preview environment for any PR, hosted on GitHub Pages, with no server to provision and no surprise bill. Simon wants the whole Python ecosystem doing this, for example a link on a Django PR that boots that branch in the browser. He calls Pyodide one of the most underappreciated pieces of the Python ecosystem.
WebAssembly wheels on PyPI remove a major blocker for Python in the browser
A big change this year is that C and Rust extensions compiled to WebAssembly for Pyodide can be uploaded to PyPI, and pip install just works. Previously the Pyodide team had to build and bundle special versions of packages like NumPy themselves, which slowed everything down. Michael heard the same from the Pyodide maintainers he interviewed on the Cloudflare Python Workers episode: they used to run CI for a whole set of projects, and now much of that flows straight through PyPI. Simon has already shipped wheels for regular platforms and for Pyodide side by side. They also discussed whether browsers should ship a runtime like Pyodide built in. Simon compared it to Web SQL, where Chrome shipped SQLite and Mozilla declined so that one SQL implementation would not become the standard, a call he thinks was right. SQLite in WebAssembly is only about 400 KB, Pyodide is more like five or six megabytes, and shared CDN caching across sites was removed from browsers for privacy reasons.
LLM: a Unix-style CLI and Python library for hundreds of models
Simon started LLM in the GPT-4 era because language models felt Unix-y to him: a prompt goes in, text comes out. You type llm and a prompt, and use -m to choose a model. Like Datasette it is plugin-driven, with plugins adding providers and models, including local models running on your own laptop. Every prompt and response is logged to SQLite, which is handy for comparing models over time. It is also a Python library, and Simon now follows that pattern across his projects: anything the CLI can do, the library can do, and vice versa. Over time it became an abstraction layer across model providers, which is hard to maintain as vendors keep inventing features, and it handles tool calling across all supported models. That is what makes Datasette Agent possible: Datasette plus LLM works with OpenAI, Gemini, Anthropic, and local models out of the box. Michael noted the project is closing in on 13,000 GitHub stars.
AI-generated pull requests: workable if the maintainer uses AI too
Every maintainer is hearing about the flood of low-quality AI pull requests, but Simon's experience with LLM has been surprisingly good. He does not think he has seen a single PR against LLM that was not written by an agent, and he treats them like an issue tracker with extra emphasis: someone cared enough to have their agent produce a fix. Because the codebase has good tests and documentation, agents tend to match that quality, and each release now includes five or six such contributions. Michael's theory is that the pain comes from asymmetry, when contributors use AI and maintainers do not. Simon agreed and said he respects people who choose not to use these tools, but for them a no-AI-PRs policy may be the only reasonable option. His own workflow is to ask Claude Code to review open issues and PRs before a release and surface the low-hanging fruit, then review those himself. His firm rule: he will not run CI on, or merge, anything he has not eyeballed and understood, because people do try to sneak malicious code into open source.
Security in 2026: holes are cheap to find, and the open web got more hostile
Simon described his own "vulnerability apocalypse": a Datasette release with about 13 security fixes, most for issues that had sat in the codebase for years. With current models, finding a security hole in a piece of software is now inexpensive, for defenders and attackers alike. Michael's advice is to run a top model over your own public-facing app or API using the OWASP Top 10 as a checklist, because someone else probably already is. Both have hit models refusing to reveal what they found, which Simon noted is frustrating because the refusal itself tells you something is there, and he mentioned that OpenAI and Anthropic run trusted security researcher programs. His optimistic view is that any program has a finite number of holes, so enough effort can close them, though that does not help the million unpatched devices in the field. Separately, AI crawlers have made publishing open data risky: an unprotected Datasette instance on a pay-per-use host can generate a huge bill, which is pushing him toward authenticated instances and static, browser-only deployments.
Community-funded open source: Django Fellows and the PSF fundraiser
The episode opened with a look back at Django's 20th birthday and what makes it special. Simon highlighted the Django Fellows program, where paid contractors handle the unglamorous work that keeps a project healthy: security triage, release management, reviewing and landing pull requests. He noted the PSF's Developer in Residence program was partly inspired by it. Django, Postgres, and Python are his three examples of major projects that are financially sustained without a single corporate owner. As a PSF board member, he made the case for the end-of-year fundraiser, and especially for company donations. The money supports the Developer in Residence program, security engineers working on PyPI, a grants program for community events that is spinning back up after a pause for lack of funds, and PyCon US, which these days usually loses money. The more sponsors there are, the less influence any one of them has.
- python.org/psf/donations
- djangoproject.com/fundraising
- us.pycon.org
- djangogirls.org
- djangonaut.space
Agents make C and Rust extensions approachable
Michael shared that he recently released Chameleon RS, a reimplementation of the Chameleon template language in multithreaded Rust that is safe for free-threaded Python. Just swapping the template engine on the Talk Python sites cut overall per-request application time by about 20 percent. Simon said he was never brave enough to write C extensions, knowing how easy it is to shoot yourself in the foot. Now, for small extensions that add a few optimized functions, he trusts a strong model to spot the memory leaks that are easy to miss when you are not an expert. He has been experimenting with small C and Rust modules, has not shipped one to production yet, and described what would get him there: a fuzzer run, good test coverage, and load testing. When something runs 25 times faster, that extra effort is worth it. And as he pointed out, these extensions can now be compiled for WebAssembly too.
Time is harder than you think: store what the user actually said
A mention of datetime.UTC led to a great lesson from Simon's years building event websites. A user says an event is at 3 p.m. on a date in the future. The common mistake is to convert that to UTC and store only the UTC value. If a government changes daylight saving rules before the event happens, the stored time is now off by an hour and you cannot tell, because you threw away the original information. What you need to keep is the local time, the date, and the time zone or location the user meant. Simon also recommended reading the release notes for BurntSushi's Rust time library, even if you never write Rust, as a masterclass in time API design.
Interesting Quotes and Stories
"If a version of Python is currently supported by the Python development community, then it's supported by my libraries." -- Simon Willison
"That five-year-old what's new document is almost more exciting to me than what's new in the most recent release." -- Simon Willison
"If you're building a library, it's kind of rude to force an upgrade on somebody because a transitive dependency somewhere in the middle uses you." -- Simon Willison
"UV solved that specific XKCD." -- Simon Willison
"I always tell people I think it's one of the most underappreciated pieces of the entire Python ecosystem." -- Simon Willison, on Pyodide
"The original goal of the project is one that's actually harder to achieve now because the internet has become so much more hostile." -- Simon Willison, on publishing open data with Datasette
"If there is a security hole in a piece of software, it's now very inexpensive to find it, which just means we have to try harder." -- Simon Willison
"I thought prompt injection attacks could never be solved by making the models smarter. I think I was wrong." -- Simon Willison
"It might as well be written in Fortran. If it runs, it runs." -- Michael Kennedy, on tools installed with uvx
"This stuff doesn't get uninvented. It's not going to go away. What can we do to make the impact as positive as possible?" -- Simon Willison
The blog post published mid-interview: Michael asked whether Simon had tried Pyodide with Datasette. Simon told him to open simonwillison.net, because he had clicked publish that very second on a post announcing the new Pyodide-powered Datasette Lite. Neither of them had planned it.
Datasette Lite started as a joke: Simon built the first version because running a server-side web application entirely in a browser was funny to him. He assumed a six to eight megabyte download made it useless. Then people started using it.
"The model won't tell me": Simon asked a model to look for a specific category of security hole in his code and it replied that it could not show the answer. His reaction: that means there is a hole, and now he has to go find it himself. Michael had the same thing happen while hunting for race conditions and deadlocks.
AI ate my vocabulary: Simon loves the term "load-bearing" and now feels he needs a disclaimer every time he says it because AI models love it too. After a talk where he discussed finding the "seams" in software, someone asked if AI had written it. Michael traced "seams" back to Michael Feathers and Working Effectively with Legacy Code, and declared they are keeping that one.
The 3 p.m. event that moved: Simon's story of event sites storing only UTC, then a daylight saving law changing before the event, leaving the database an hour off with no way to detect it.
Vibe coding games: Simon's current hobby is vibe coding computer games. Michael's daughter, who just turned 18, plays a game, decides what it is missing, opens Codex, and builds her own version. Simon sees games as both the form of AI output most likely to offend critics and a huge wave of creativity from people who could never have built one before.
Key Definitions and Terms
- End of life (EOL): The point at which the core team stops releasing fixes, including security fixes, for a Python version. Python 3.10 reached this when 3.15 was released.
requires-python: Package metadata declaring which Python versions a release supports. Installers use it to pick the newest release compatible with the user's interpreter.- Transitive dependency: A package your project depends on indirectly, because something you depend on depends on it. The reason library version requirements ripple out to end users.
- Lazy import: An import that is deferred until the imported name is first used, rather than executed at module load.
__lazy_modules__: A module-level declaration listing modules to import lazily. Python 3.15 acts on it and earlier versions ignore it.- Sampling profiler: A profiler that periodically captures the call stack instead of instrumenting every call, trading a little precision for very low overhead.
- Flame graph: A visualization of profiling data where the width of each block shows how much time was spent in a function and its callees.
- GIL (Global Interpreter Lock): The lock in CPython that lets only one thread execute Python bytecode at a time.
- Free-threaded Python: The CPython build without the GIL, allowing threads to run Python code in parallel on multiple cores.
- Task group: An asyncio construct, new in 3.11, that runs a set of tasks together, cancels the rest if one fails, and reports all failures as a group.
tomllib: The standard library module, new in 3.11, for parsing TOML files.- Window function: A SQL function that computes a value across a set of rows related to the current row. Python 3.11 lets you define these in Python for SQLite.
- WebAssembly (Wasm): A portable binary format that runs in browsers and other runtimes at near native speed.
- Pyodide: CPython compiled to WebAssembly, along with a large set of scientific and other packages, so Python runs in the browser.
- Wheel: Python's built package format. Wheels are built per platform, and Pyodide is now one of the platforms PyPI accepts.
- Tool calling: A capability where a language model requests that the host program run a function, such as a SQL query, and then uses the result.
- Prompt injection: An attack where text the model reads as data, such as a diff or web page, contains instructions that try to hijack its behavior.
- Hallucination: When a language model states something false as if it were fact.
- Vibe coding: Building software by describing what you want to an AI agent and iterating on the result, rather than writing the code by hand.
- ZeroVer: The tongue-in-cheek name for projects that stay on 0.x version numbers indefinitely.
- Django Fellows: Contractors paid by the Django Software Foundation to do the ongoing maintenance work of the project.
- Developer in Residence: The PSF's program funding full-time staff to work on CPython and related infrastructure.
Learning Resources
Here are some resources to go deeper on the topics from this episode, from the Python 3.11 features that are now safe to use everywhere to working productively and safely with AI coding agents.
Python 3.11: A Guided Tour Through Code: A two-hour, code-first walkthrough of the headline features in Python 3.11. It is the perfect companion now that 3.11 is the minimum supported version and library authors can finally rely on it.
Agentic AI Programming for Python: Learn to work with AI agents the way Simon and Michael describe in this episode, with guardrails, tests, and workflows that produce well-structured code rather than slop.
Python Web Security: OWASP Top 10 with Agentic AI: Michael's advice in the episode was to audit your own public apps against the OWASP Top 10 with an AI agent before someone else does. This course shows exactly how, across Flask, Django, and FastAPI.
Overall Takeaway
Python moves on two clocks. One is the exciting annual release, and 3.15 delivers with lazy imports that make plugin-heavy tools start fast again and a sampling profiler you can point at a live production process. The other clock is slower and matters just as much: the steady march of the support window, which this year made 3.11 the floor and put tomllib, task groups, better SQLite support, and a 10 to 60 percent speedup into every maintainer's hands. Simon's approach is a model of respect for your users: follow the core team's support schedule, do not force upgrades for your own convenience, and let tools like uv and CI matrices take the pain out of testing many versions.
Around that core, the episode shows how much the ground is shifting. Server-side Python apps run in a browser tab. Wheels for WebAssembly install from PyPI. Agents write pull requests and review them, find security holes that sat unnoticed for years, and make C and Rust extensions something a cautious Python developer will attempt. Simon does not pretend this is all upside, and he is clear that the internet has become a harder place to publish freely. But his closing thought is the one to hold onto: this technology is not going away, so the job is to find the things it makes better, do more of those, and bring as many people along as possible. Go read both "what's new" documents, try the profiler on your own code, and consider giving back to the PSF that keeps all of this running.
Links from the show
Django 20th birthday panel: talkpython.fm
Donate here: donate.python.org
supported version: devguide.python.org
PEP 810: peps.python.org
LLM: llm.datasette.io
told plugin authors to lazy load by hand: llm.datasette.io
PEP 798: peps.python.org
a whole episode on it: talkpython.fm
py-spy: github.com
profiling.tracing: docs.python.org
Flame graphs: simonw.github.io
heat maps: simonw.github.io
Miguel Grinbergs numbers: blog.miguelgrinberg.com
3.11: docs.python.org
tomllib: docs.python.org
TaskGroup: docs.python.org
timeout(): docs.python.org
cookiecutter templates: github.com
create\_window\_function(): docs.python.org
blobopen(): docs.python.org
setlimit(): docs.python.org
Your first PR: github.com
ai: simonwillison.net
an inflection point in November 2025: simonwillison.net
The October inflection point for vibe game development: simonwillison.net
Battle Drones: simonwillison.net
Qwen 3.8 27B on your laptop: simonwillison.net
LM Studio: lmstudio.ai
llm-lmstudio: github.com
Weight-space programming: rikiyat.github.io
LLM Building Blocks: training.talkpython.fm
monthly briefing: github.com
Watch this episode on YouTube: youtube.com
Episode #571 deep-dive: talkpython.fm/571
Episode transcripts: talkpython.fm
Theme Song: Developer Rap
🥁 Served in a Flask 🎸: talkpython.fm/flasksong
---== Don't be a stranger ==---
YouTube: youtube.com/@talkpython
Bluesky: @talkpython.fm
Mastodon: @talkpython@fosstodon.org
X.com: @talkpython
Michael on Bluesky: @mkennedy.codes
Michael on Mastodon: @mkennedy@fosstodon.org
Michael on X.com: @mkennedy
Episode Transcript
Collapse transcript
00:00 When a new version of Python ships, which What's New Doc do you read?
00:04 For library maintainers, it's often two.
00:07 Python 3.15 just landed, and that pushed Python 3.10 out of scope.
00:12 So 3.11 is finally the floor for your libraries.
00:16 Simon Willison is here to cover both of these stories.
00:19 He co-created Django and built Dataset and LLM.
00:23 His rule is simple.
00:25 If the core team supports a Python version, so do his libraries.
00:28 We catch up on Dataset first, then both releases from the 3.15 lazy imports and the new sampling profiler to Python 3.11's Tomolib and task groups.
00:40 And everyone who's waiting for Python to get faster, Python 3.11 runs 10 to 60% faster than 3.10.
00:47 So dropping that old slower version is good for all of us.
00:51 This is Talk Python, episode 571, recorded November 17th, 2026.
01:13 Welcome to Talk Python To Me, the number one Python podcast for developers and data scientists.
01:18 This is your host, Michael Kennedy.
01:20 I'm a PSF fellow who's been coding for over 25 years.
01:24 Let's connect on social media.
01:26 You'll find me and Talk Python on Mastodon, Bluesky, and X.
01:29 The social links are all in your show notes.
01:32 You can find over 10 years of past episodes at talkpython.fm.
01:35 And if you want to be part of the show, you can join our recording live streams.
01:39 That's right.
01:39 We live stream the raw uncut version of each episode on YouTube.
01:43 Just visit talkpython.fm/youtube to see the schedule of upcoming events.
01:48 Be sure to subscribe there and press the bell so you'll get notified anytime we're recording.
01:52 This portion of Talk Python To Me is brought to you by, well, you.
01:56 I recently added a membership program to Talk Python.
02:00 Membership starts at just $5 a month, and it really helps support the show.
02:03 So become a member and get access to top-tier live tech events and much more.
02:08 Visit talkpython.fm/meetups to get started today.
02:12 Simon, welcome back to Talk Python To Me.
02:14 Always nice to have you here.
02:16 Yeah, it's really great to be back.
02:17 Yeah.
02:18 It's almost, it's the year anniversary.
02:19 It looks like last time we recorded October 23rd, 2025.
02:23 So it's been just over a year.
02:25 Almost exactly a year.
02:26 And that was, we were celebrating the 20th anniversary of Django, which.
02:30 That was a great conversation, that one.
02:32 Yeah.
02:32 Yeah, it really was.
02:33 And we got a lot of the OG folks all together to talk about it.
02:37 You know what?
02:38 I'm wrong.
02:38 That was August.
02:39 That was, it was August that we did the Django's 20th birthday, but that was so much fun.
02:43 We should try and find an excuse to do another one of those soon.
02:46 I don't see why we wouldn't.
02:47 Yeah, I mean, Django's going so strong, right? And so it's really just such a phenomenon.
02:53 It's a really good technical project, of course.
02:56 And for those of you who don't know, Simon was one of the original creators,
03:00 which is pretty amazing.
03:02 But not only is it a great technical thing, I think a community, there's almost no other open source project that has a community like Django has,
03:11 right?
03:11 I think it's also the way the Django Software Foundation, the way the Django Fellows program is just such a great way of organizing open source,
03:21 like having paid contractors who take on the work of making sure the thing ticks over,
03:26 like the security triage and the release management and all of that kind of stuff.
03:30 It's wonderful.
03:30 And I mean, the Python Software Foundation's Python Developers Residence was a modification of what the Django Software Foundation had been doing.
03:38 Oh, really? I didn't realize the influence went in that direction.
03:41 It was partly inspired by Django.
03:44 And I love that.
03:45 I think it's because it's so rare to have an open source project which is financially sustained but not by a single company.
03:52 You know, most big projects have a single corporate sponsor.
03:56 It's like Django and Postgres and Python itself are three examples of projects that really are owned by the community
04:02 to a certain extent.
04:04 Okay.
04:04 Yeah, it's super interesting.
04:06 And I do think it's a really important thing to just keep an eye on.
04:09 You know, like when you're working in an open source project, there's the really interesting stuff like, hey, I want to add a new tasks framework to Django.
04:16 Wouldn't that be fun?
04:17 But is there, I want to triage the 100th bug or I want to get the CI to build correctly.
04:24 You know, there's a lot of this just grunt work.
04:26 Someone has to review the pull requests and land the changes and all of that.
04:30 And yeah, it's not glamorous work, but it's the work that makes the project go.
04:33 And I love how well Django manages that through the fellows program.
04:39 Yeah, I agree.
04:40 I think it's really neat.
04:42 And I just think the community around it, you've got the Django Nuts, you've got Django Girls.
04:46 I mean, it's very special.
04:48 And I think it's great to just celebrate it every now and then.
04:50 Absolutely.
04:51 Speaking of celebrating things, let's talk a bit about not what you were on last time,
04:57 but remember you were on to talk about data set.
05:00 Good Lord.
05:01 Was that that long ago?
05:02 That was six years ago.
05:03 Yes, I know.
05:04 That's what I was going to say.
05:06 It's been so long since you've been on the show to talk about that.
05:09 I was like, oh, we should catch up on that.
05:12 That surely a lot has changed about this.
05:14 So much so.
05:15 Although amusingly, six years ago, I was promising a 1.0 release.
05:19 I haven't got to the 1.0 release yet.
05:20 I'm at Alpha 43, like 1.0 A43.
05:25 I released just like two days ago.
05:27 I'm going to get there.
05:28 I'm accelerating.
05:30 The milestone of what's left is down to like, it's 56 complete now, and it was 30% complete a few days ago.
05:37 So I'm on a roll with 1.0 stuff.
05:40 That's good.
05:40 So you don't espouse the zero ver?
05:43 No.
05:44 You want to get a release?
05:46 It's a terrible habit.
05:47 I've got so many projects that get stuck in 0.x.
05:50 My LLM project is at 0.63 at this point, I think.
05:55 Yeah, I've just got to get braver.
05:57 But I feel like Dataset 1.0, the train is rumbling.
06:00 It feels like I'm going to get there very, very shortly.
06:04 Yeah, incredible.
06:05 Well, why don't we talk a little bit about Dataset?
06:07 I think just maybe a catch up on that.
06:09 We haven't spoken about it for a while.
06:11 Yeah, tell people what is Dataset.
06:15 Before you jump into that, because I think it's even, and I'm sure you agree, I think it's even more relevant
06:20 to make these Datasets available to things.
06:23 Now we have agents and CLIs and MCPs and all these things, right?
06:27 Right.
06:27 So the original idea behind Dataset, Dataset is a Python web application.
06:32 You point at a SQLite database and it gives you an interface for browsing it and searching it and running queries and all of those kinds of things.
06:39 And it's extensible by plugins.
06:41 And the original idea was all about there's all of this data that exists that is not available online in a convenient shape.
06:48 Let's build something to help with that.
06:49 make it as cheap as possible to publish a million rows of data online so that people can export it
06:54 as JSON and CSV and see visualizations to all of those kinds of things.
06:58 And the inspiration came actually from work I did at newspapers, where when I was at The Guardian,
07:02 we were trying to publish the data behind our stories.
07:05 And I've always loved data journalism, like journalism where there's data involved and the journalists are running queries and trying to find the stories
07:13 and then explain them to people.
07:14 That I still think is the most thrilling application of sort of computer science in telling stories about the world.
07:20 So the original idea was publishing.
07:23 And then because I had plugins, I started experimenting with, okay, what if this tool
07:26 could let you edit data and add data and manipulate data in various different ways?
07:31 And it kept on sort of growing in that kind of direction. And then the most recent thing in the
07:34 past couple of years is AI comes along.
07:36 And initially I was very cautious about bringing AI features into dataset because AI makes stuff up.
07:42 And the last thing you want to do is give people, give journalists a tool that will make things up. That's catastrophic.
07:48 The thing is that AI doesn't really make stuff up anymore.
07:51 Like the most recent models, models from the past sort of 12 months, hallucination is a much, much smaller risk.
07:57 And in the meantime, the dream of the data set was originally, how can I help technical people be more productive?
08:04 Like you understand how to deploy a server and all of that kind of thing.
08:08 You want to be able to get stuff out there into the world.
08:11 And the more interesting goal was always, how can I help people who don't have that knowledge,
08:16 but want to do data analysis and data publication?
08:18 If you think about journalists specifically, most newsrooms can't afford a programmer,
08:23 but they have data problems that they need to solve.
08:25 So could I build software that would help non-technical journalists understand and analyze and clean up their data?
08:32 And the answer used to be no, it was too difficult to take that on.
08:35 This is one of the things I'm most excited about with AI and LLMs, is I think that's the lever I need to make this stuff available to a much wider audience.
08:44 And so what I've been building for the past this year, I've been building a thing called
08:47 Dataset Agent, which is a plugin for Dataset.
08:50 It's at agent.dataset.io.
08:52 It's a little plugin that adds a chatbot.
08:55 And that chatbot can answer questions about your data.
08:57 You can ask it questions.
08:58 It'll run SQL queries and give you back answers and all of that kind of stuff.
09:03 But crucially, I spent so long resisting the chatbot.
09:07 I'm like, there has to be a better interface than chat for this kind of stuff.
09:11 And when I finally broke down and built a chatbot, it turns out there isn't a better interface.
09:14 Actually, the conversational interface where you can pull up the tables in the middle of the chat and have it link out to other things, it works really,
09:21 really well.
09:22 So this is a project I've been putting a lot of work into recently.
09:25 It's also, it combines my other open source project.
09:28 I have a project called LLM, which is a Python library and CLI tool for talking to lots of different language models.
09:36 And Dataset Agent is Dataset plus LLM, which means it works against hundreds of different models.
09:40 There's a plug-in system that lets you add new models into LLM, and it all just works.
09:47 And it's so exciting, especially since I'm also interested in the models that run on my laptop,
09:53 the sort of really weak models.
09:55 They're still good enough to write SQLite SQL.
09:57 So you can actually run Dataset on a Mac laptop and have it...
10:02 You can run it on a Mac laptop with a local model, like a QEN 3.827B, and it does all the stuff.
10:08 You can ask questions and queries and all of that kind of thing.
10:11 And it just feels like, and this is the past couple of months, it's felt like all of my different projects and the work that I've been doing is condensing together into something super interesting that solves the really big problem I've been trying to solve.
10:23 So I'm very, very excited about tying all of these projects together at the moment.
10:28 That is really exciting.
10:29 And I agree that I think these chatbots and these tools, they've unlocked data exploration and fluency for a lot of people.
10:38 Right.
10:38 It's one of the things they are best at is, I mean, because SQL is, it turns out,
10:44 all of these things have been able to do SQL well for years now.
10:47 Like you can get very good results from that.
10:50 The other feature I've been building, which ties into all of this, is something I'm calling Dataset Apps.
10:56 And the idea there is when you've got data sets always had lots of JSON APIs and things,
11:01 wouldn't it be great if you could knock up little custom HTML applications that run some
11:05 SQL queries and present the data to you in whatever custom way may make sense, sort of
11:09 dashboards and interactive things like that.
11:11 And that is something which LLMs are also great at.
11:14 They're very good at writing HTML and JavaScript.
11:16 So if you can give them the schema and an API to run SQL queries and say,
11:20 build me a dashboard, they will build you a dashboard.
11:23 And so that's now integrated into Dataset Agent as well.
11:26 So you can say to Dataset Agent, build me a dashboard showing me that I can use to explore
11:31 the sales figures in this table.
11:33 And up pops an HTML page with the custom interface.
11:36 And you can then chat with it and say, actually change it.
11:38 Don't show that.
11:39 Change the color scheme.
11:40 All of that kind of stuff.
11:42 It's my version of Claude Artifacts.
11:44 Yeah, I was thinking of artifacts.
11:46 It's a straight rip off of Claude Artifacts, except mine can talk to a database,
11:50 which is super useful.
11:52 and it fits into the whole model of all it.
11:55 It feels coherent as a feature for data set to have a sort of instantly vibe coded dashboard via chat.
12:02 So yeah, I'm very, very excited about the direction all of this is going at the moment.
12:05 Yeah, that's fantastic.
12:06 Can you deploy these data set apps somewhere?
12:10 Well, so you can in as much as, I mean, it's a hosted application.
12:16 At the moment, they're private to you and you can share them with other members of your instance.
12:20 There is a way to share them with the public.
12:23 It's a little bit janky.
12:24 I'm still figuring out the best UI for that.
12:26 This is, I mean, a problem that I'm having with data at the moment generally is the internet.
12:29 It's a really hostile place right now.
12:31 Like if you stick a data set instance up on, say, something like Google Cloud Run and you're not careful,
12:36 you might get billed $10,000 for the month because a bunch of AI crawlers came along and hit and made a million requests across your instance.
12:44 And I'm trying to figure out what to do about that.
12:46 Like I'm certainly leaning more into authenticated data set as the thing I encourage people to do so that they don't have to deal with that.
12:54 But it's really frustrating because data sets entire goal initially was around publishing data and like making data available free online,
13:01 which was safe eight years ago.
13:03 And today it's only safe if you're careful.
13:06 You have to set up billing caps and you have to think carefully about optimizing.
13:09 It's really frustrating that that's like the original goal of the project is one that's actually harder to achieve now because the internet has become so much more hostile from crawlers.
13:19 Not only from crawlers, but there's so many security researchers really leaning into,
13:24 I'm just going to set up automation that just hammers everything and looks for cracks.
13:29 Yeah, I had my vulnerability apocalypse with data set a couple of months ago where I had to ship a release with like 13 security fixes.
13:38 And most of them were things that had been in the code base for years that I'd just never seen before.
13:42 And people reporting them.
13:43 I was running my own audits.
13:44 Like the security thing is very real right now.
13:47 If there is a security hole in a piece of software, it's now very inexpensive to find it, which just means we have to try harder,
13:54 you know?
13:54 I would love your thoughts on this.
13:56 But I encourage people out there listening, if you have a thing that is publicly accessible,
14:02 website, API, whatever, and you have access to high-end models, OpenAI is Astra or Fable or even Opus.
14:11 Go to your code base.
14:11 Opus 5.5 is very good for this, yeah.
14:14 Yeah, it's very good.
14:15 And just go and say, I would like you, I would like, this is my web app or my API or whatever.
14:20 Please look for, use the OWASP top 10, go through it, find any issues you can,
14:25 because if you don't, other people are already probably doing that.
14:28 I had the most frustrating experience with that.
14:30 Actually, that was with Opus 5.5.
14:32 I asked it to look for a specific category of security hole and it replied,
14:36 I cannot show the answer to this question.
14:38 And I'm like, oh, that means there is a security hole, but you won't tell me what it is.
14:43 It's so frustrating.
14:44 I had this, I was going to say that Astra is really bad at this.
14:47 Like I was working with Astra.
14:49 I'm like, I would like you just to find like race conditions and crashes in this app that I'm building,
14:53 this Rust core app that is a Python app.
14:56 And I'm really concerned because it does a lot of threading and locks.
14:58 I'm like, just if you look for deadlocks in these things, and it goes, this is fine, this is fine.
15:02 This might be a little problem.
15:03 Can't tell you this answer.
15:04 can't tell you that i'm like that's so nice there's a problem yep and i now i got it like it's nerds
15:11 time to me right like now you have to find the problem but i'm not going to tell you what it is
15:15 so open ai and Anthropic both have programs you can sign up for as a trusted security researcher
15:20 i've got into one of the levels of the opening i want i'm in the daybreak blue but that which which
15:25 helps a little bit i've managed that's the defender is not the attacker it's not the red exactly
15:31 and that's a little bit better.
15:32 I haven't managed to get into the Anthropic one of those.
15:34 I've got lost in the bureaucracy around it.
15:37 But or you can just switch the Chinese models.
15:39 GLM 5.3 doesn't have any of this behavior and is very good at finding security holes.
15:44 So you can point that at your code base and off you go.
15:47 But yeah, the security thing has been one of the major themes of 2026, definitely.
15:51 I think it's right now rough and tumble.
15:53 I think in the end, we're going to end up with more secure software because of it,
15:56 but it's...
15:57 It's going to be tough on the way there, isn't it?
16:00 Because, yeah, my optimistic take on this is I think any piece of software has a finite number of security holes,
16:06 which means it's possible to find and shut them all down.
16:08 And so if we go through a bit of pain and we throw enough like model compute at it, we can get more.
16:14 The catch is that doesn't help us with the patching.
16:17 Like if there's a million smart fridges out there running insecure firmware,
16:21 somebody's got to go and upgrade a million fridges.
16:24 You know, that's always been difficult.
16:26 And now it's like crisis levels of difficulty.
16:28 The only time people update them is when they realize the refrigerator is super hot and all of their samples have gone.
16:35 You know, the French thing that just happened or whatever.
16:37 Oh, God.
16:38 All of that stuff is just terrifying.
16:39 Yeah.
16:41 Pardon the interruption, everyone.
16:42 I want to take a moment and tell you about our membership program.
16:46 Add free podcast episode, a private Discord channel with many of the guests you've heard on the show and most relevant right now,
16:52 a monthly tech meetup.
16:54 We just finished this month's meetup.
16:56 Don't worry.
16:57 It's recorded.
16:57 You can watch it anytime.
16:58 if you didn't catch it live.
16:59 This meetup was an eye-opener.
17:01 It's entitled, SQLite Might Actually Be All You Need, presented by me. Here's a quick overview.
17:07 The talk dives into running SQLite in production and why, surprisingly, it might be one of the best
17:13 production databases you can choose.
17:15 Here's something I haven't really talked about yet on the show.
17:18 Talk Python doesn't run on MongoDB anymore.
17:21 After years on Mongo, I moved most of sites to SQLite.
17:25 The database many people file under fine for prototypes and phone apps, but
17:30 that's pretty much it. I knew an in-process database had some speed advantages.
17:34 I didn't expect it to be 40 to 300 times faster.
17:37 Then there's that question that scares people off.
17:40 What happens when the server dies?
17:42 It's just the file, right? This is where the big surprises live.
17:46 So come a member, watch this and other tech talks at talkpython.fm/meetups.
17:52 It starts for as little as $5 a month.
17:55 The community is growing and I hope to see you there.
17:57 That's talkpython.fm slash meetups.
18:00 All right, let's go back to a data set for a minute. They said I said apps.
18:03 Have you explored working with Pyodide? I just had the Cloudflare team.
18:08 Yeah, I just had the Cloudflare team on talking about Cloudflare Python web work or Python workers.
18:14 And that's all based on Pyodide and has, you know, SQLite through there was a D2 or whatever.
18:20 Okay.
18:20 Or they're durable.
18:21 Anyway, there's some interesting stuff, I think, around like, because that solves your cost problem,
18:26 right?
18:27 I've got a fun trick for you.
18:28 Go to my blog, simonwilson.net, right now.
18:31 I literally, just the second, clicked publish on my blog entry about the new version of dataset that runs in Pyodide.
18:37 What?
18:38 I did not even read it.
18:39 I did not read it.
18:40 I really didn't know this was coming.
18:41 No, no, it wasn't out.
18:43 I just published it.
18:45 This is not a setup.
18:47 This was not planned.
18:49 But yeah, so for four years now, I've had this thing called Dataset Lite,
18:55 which is a version of Dataset that runs in Pyodide in a browser.
18:58 And it was a little bit janky and a bit hacky.
19:00 I've just announced a brand new version of it, which fixes all of the janky hacks.
19:05 And if you scroll down on that page, there should be an example link a little bit lower.
19:09 Yeah, click that link and see what happens.
19:12 So here we go.
19:13 This is entirely happening in your browser.
19:15 It's loading Pyodide and Dataset in a plugin.
19:17 And now if you scroll down, this is a brand new plugin that I just built that gives you like WebGL accelerated maps of the world based on the data in your database,
19:26 all of that kind of stuff.
19:27 But this all happens in WebAssembly.
19:30 And I am so excited about this.
19:32 There's even a feature with this thing that you can add to the URL, question mark,
19:36 ref equals main, and you'll get data set pulled from the GitHub repository on the main branch or ref equals like a PR issue or whatever.
19:44 You can tell it to load different versions of SQLite.
19:46 You can say, "I want SQLite 3.50.1 from six months ago," and it'll load that in as well.
19:54 So it's the perfect preview environment.
19:57 In the past, I've always struggled where I'd love every PR to come with a link that you click that gives you a preview environment.
20:04 But if that's a server side app, you've got to think about, "Okay, what server is that provisioned on?
20:08 How long does it run for? How much is it going to cost?
20:11 How long will it take to start up?" But if it goes away and like, yeah, the permits of it.
20:15 All of that kind of stuff.
20:16 If it's HTML and JavaScript, if it's a static page, none of that matters.
20:20 Like it's all just static files.
20:22 So this means that I can now have preview environments for anything and they're free.
20:28 Like Dataset Lite is hosted on GitHub pages.
20:30 I'm not even paying for the static hosting.
20:32 It's amazing, right?
20:33 The blog entry I just put live, one of the things it says is I want the entire Python
20:37 ecosystem doing this.
20:38 Like when you're working on a Django PR, why shouldn't there be a little link that loads
20:42 up a WebAssembly Pyodide Django at that branch that lets you explore the new features.
20:48 It's unbelievable how good Pyodide...
20:51 Pyodide's been incredible for nearly a decade now.
20:54 That's amazing.
20:55 I always tell people I think it's one of the most underappreciated pieces of the entire
20:59 Python ecosystem.
21:01 It's not just that you can run Python in WebAssembly in a browser, but they've ported all
21:05 of the libraries, like NumPy and SciPy and everything works too.
21:08 Jupyter runs entirely in a browser.
21:10 Now I've got all of Dataset winning the browser as well.
21:13 It's so cool.
21:14 That's really impressive.
21:15 I love it.
21:16 I love it.
21:16 And you're right.
21:16 The free static hosting, there are many options.
21:19 Like you've got GitHub Pages, you've got Netlify, Cloudflare has got really good free options as well.
21:26 Absolutely.
21:27 And it's immune to AI scrapers.
21:29 Or at least nobody's going to get a $10,000 bill because the AI scraper hit every page on your static HTML and JavaScript site.
21:35 Yeah.
21:36 Sidebar.
21:37 As a web person, what do you think about this?
21:39 We have WebAssembly.
21:41 We have these great runtimes.
21:43 We've got Pyodide on the C# side.
21:47 We've got Blazor that runs C# in WebAssembly.
21:51 I really would love to see web browsers, basically Chrome, Firefox, and Safari.
21:57 That's all you really need.
21:58 Have some kind of support for a single definitive Pyodide, Blazor, Ruby,
22:05 on Wasm, or whatever the heck.
22:06 I think if we could have this part of your browser in a way, wouldn't it be great that you don't have to like,
22:14 everyone installs the little start thing.
22:15 I mean, it's tricky.
22:16 We had this with SQLite.
22:17 There was the WebSQL proposal about 10 years ago.
22:22 And Chrome shipped SQLite baked into the browser with APIs.
22:25 And Mozilla refused to ship it because they said it was bad for web standards
22:29 to have just one specific variant of SQL that becomes the standard.
22:34 And I do think they made the right call there, but it was like we lost partly because then SQLite in WebAssembly, it turns out it's about 400 kilobytes.
22:42 So actually, if you want to do SQLite in the browser, it's less than a big hero image to download that.
22:47 Oh, that'd be fine. Yeah.
22:49 Like Pyodide is more like sort of five or six megabytes, which used to be a pretty big deal.
22:55 These days, show me a website that isn't five or six megabytes.
22:59 Yeah, for sure.
22:59 I love my websites to be under 100 kilobytes, but it does feel like the pain is less real.
23:07 The biggest problem, to be honest, is the CDN thing, where it used to be that you could load something like Pyodide from a CDN just once,
23:15 and then it would stay cached, and any other website that used it would benefit from that cache.
23:19 All of the browsers had to get rid of that feature a few years ago for privacy reasons,
23:22 because it turned out websites could spy on each other just by loading an asset saying,
23:27 oh, well, that loaded in like a split second.
23:29 That means that the user has already been to this other site.
23:32 And I don't know if that's solvable.
23:34 Like I'd love to have maybe an allow listed sort of like, there's a rule that says that the CDN for these projects is allowed to skip those rules.
23:42 I just don't know if you can do it without the privacy violations.
23:45 But the internet keeps on getting faster and the stuff gets more efficient.
23:48 So it's like Dataset Lite.
23:50 When I first launched it, it was genuinely meant as a joke.
23:54 I thought, like, Dataset is a server-side web application.
23:57 Running a server-side web application entirely in the browser is just funny.
24:01 It's like a fun, in the whole sort of SBA battles, there was this idea that you could do that, amuse me.
24:07 And I never thought it would be useful because it was like a six, seven,
24:10 eight megabyte load for it to start working.
24:12 And then people started using it because it turns out the flexibility of it,
24:15 the fact that it can load, you can give it a URL to a CSV or JSON file on GitHub
24:20 and it'll load those up and put them in the table.
24:22 It turned out to be really useful.
24:23 And now this new version I've just launched, which fills in all of the gaps
24:27 and anything that Dataset can do runs in this, I'm going to be using this all the time.
24:30 Like this is going to be my new preview environment.
24:32 If I'm sending somebody data, I'll send them a link to Dataset Light loading in that data.
24:37 It just feels right to me.
24:39 Yeah, it's definitely becoming more, no big deal to just load that stuff up, right?
24:43 Yeah.
24:43 Yeah, it's very exciting.
24:45 And we'll see where it goes, but I think there's a lot of possibility for Python on the front end.
24:49 One last thing on WebAssembly, big change this year, is that you can now publish,
24:53 if you've got a C or Rust extension, you can compile it to WebAssembly so it runs in Pyodide.
24:59 And as of, I think, April this year, you can upload those to PyPI and then pip install works.
25:05 So now it used to be that if you had something like NumPy, the Pyodide team themselves had to build a special compiled version and bundle it with Pyodide,
25:14 and it sort of like slowed down all of that stuff.
25:16 And now I can just, I've done this now, I've shipped wheels to PyPI where there's a wheel for Python and a wheel for Mac Python and a wheel for Pyodide.
25:25 And it works.
25:26 And this frees us up.
25:27 Like suddenly writing C and Rust extensions is no longer a blocker on being able to run all of your Python code in a browser.
25:35 Incredible.
25:35 I spoke to Hood and Jay and Dominic on the Cloudflare episode.
25:42 Two of those guys are maintainers of Pyodide.
25:45 Right.
25:46 My heroes.
25:47 They're awesome.
25:48 And they were talking about how they would have to go and build, do a CI for a whole bunch of projects because there was no way to get the Pyodide or Emscripten version sort of reliably built and distributed without them managing it.
26:01 And since this PEP came out, a lot of that stuff is just going straight through PyPI.
26:05 They don't have to build it.
26:06 And it's way better.
26:07 Isn't it fantastic?
26:08 Yeah.
26:08 Like if you have not explored the Pyodide side of things, now is the time to do it.
26:14 Like it's just so, so impressive how much stuff you can get done with it.
26:18 Well, that was way more stuff on Dataset than I was thinking.
26:23 It's a good time to be talking about it.
26:25 It's the last few weeks.
26:27 I need to chart my contributions because they're on an exponential curve at the moment.
26:32 Yeah, you're creating so many little tools and projects and posts and stuff.
26:36 It's really neat to see all the work coming out of there.
26:39 Maybe just real quick, tell us about LLM.
26:42 I know you mentioned it, but I know this is a really big project of yours as well.
26:46 almost 13,000 GitHub stars.
26:48 That's a big deal.
26:49 Oh, wow.
26:50 Good Lord.
26:50 I haven't looked at the star counts.
26:52 12,769 unless I refresh it.
26:54 That's pretty good.
26:55 Let's see.
26:55 Nope.
26:56 Nope.
26:57 So this project, there's a little part.
27:00 I started this a few years ago, back in the sort of GPT, ChatGPT, GPT-4 era,
27:05 because I was looking at language models and I said, you know what?
27:09 These feel very Unix-y to me.
27:10 There's a prompt, there's input, and there's output.
27:12 Wouldn't it be great if on the command line you could type LLM space, quote,
27:16 tell me the fifth moon of Mars or whatever, and get the result back on your console.
27:22 And at the time, I was the only person really messing around with command line
27:25 tools and language models.
27:27 And so I built this thing. I also noticed that the three-letter acronym LLM hadn't been taken on PyPI yet. I'm like, oh, that would be cool. That's incredible,
27:35 actually.
27:35 Great to get that one. It's, yeah.
27:37 So I built it, and it was inspired by Datasit, and it's very plug-in driven.
27:41 So you've got plug-ins that add support for other providers and other models and
27:45 all of that kind of stuff.
27:46 And with hindsight, I should have doubled down on this because then I was like, oh, isn't it interesting to have LLMs in your terminal?
27:54 And then of course, Claude Code came along a few years later and is worth half a trillion dollars or something.
28:00 So maybe I should have commercialized something on top of this.
28:04 But anyway, LLM is actually two things.
28:07 It's a command line tool, so you type LLM quote your prompt, and then at the end you can say
28:11 dash M and select a model.
28:12 You can say run this against Claude 4.5 or OpenAI whatever, and that all works.
28:18 And everything gets logged to SQLite, which is the other connection to data sets. So you
28:22 can build up like SQLite logs of every prompt you've ever used, which is great for comparing
28:27 different models and all of that kind of thing.
28:29 And the other thing it is, is a Python library, because a lot of my, a lot of my,
28:33 this is a theme in a bunch of my projects now actually, is They're both a Python library and a command line tool.
28:38 And anything you can do in the command line tool, you can do in the Python library and vice versa.
28:41 So LLM ended up evolving into effectively an abstraction layer over all of the different models,
28:47 which is quite a complicated thing to build because the models keep on inventing new features
28:52 that you have to adopt into that abstraction layer.
28:55 Most importantly, it handles tool calling.
28:57 So you can build a system where the models can call tools to run extra code or look things up,
29:03 whatever.
29:03 And that'll work against all of the models that LLM has plugins for.
29:07 And this is what enabled Dataset Agent.
29:09 Like Dataset Agent is built on top of LLM, which means out of the box, it can talk to OpenAI and Gemini and Anthropic.
29:16 And then if you're running local models, it can talk to those.
29:18 And that all just sort of fits together.
29:21 Something that's interesting about LLM at the moment is every open source maintainer will tell you that they are being flooded with low-quality pull requests,
29:28 right?
29:28 That's just a sort of like, it's a frustrating part of this.
29:31 I've actually found that that effect on LLM is going pretty well for me because I don't think I've seen a single pull request against an LLM that wasn't written by an agent.
29:41 Like it's that I mean, it's kind of obvious with the audience that they're going to be doing that.
29:44 Yeah.
29:45 But what I see it as it's almost like it's a issue tracker with a little bit of extra emphasis.
29:52 Like if somebody found a bug and they cared enough to get their agent to come up with a fix for the bug and they submitted to PR,
29:58 I have no problem ignoring or closing the ones that aren't valuable because it didn't cost them.
30:02 They didn't put much work into creating it.
30:04 But actually, every LLM release now has five or six pull requests from other people that were clearly AI generated that fix some tiny little detail of the library that I hadn't seen before.
30:14 And mostly the quality is very good because the LLM code base has good tests.
30:18 It has good documentation.
30:20 Agents will always pick up on the quality of the code base and sort of try and match it.
30:24 So most of the PRs I get are acceptable as they are.
30:27 So I'm not finding that the pull request apocalypse isn't actually going badly for me,
30:31 at least with this one project, which is kind of cool.
30:33 All right.
30:34 We do have an official topic we're going to talk about, but I got to talk to you about this first.
30:37 So this is amazing and very interesting.
30:40 I had Paolo on a while ago to talk about the maintainer burden of all these inbound AI requests,
30:48 you know, from Claude and whatever.
30:50 And I think a lot, a lot of this stuff is really fluid.
30:53 You know, a lot of the data and stuff was from a year ago, which I think the quality of PR.
30:57 When the quality was awful, you were getting garbage a year ago.
31:00 Absolutely.
31:01 Yeah, yeah, yeah.
31:01 And we had the curl guy whose name, I apologize, I forget, saying like, oh, this stuff is horrible.
31:07 Then actually I've changed my mind.
31:08 It's just now the problem is there's so many bug fixes and stuff.
31:11 But like they were actually legit, you know?
31:13 So what I, my theory is twofold.
31:16 One, either the people making the PRs or are using older, cheaper models.
31:22 And so they're getting poor results that are going to folks.
31:25 Or the people who are having a hard time with the maintenance burden of all this stuff coming in, which I realize is a ton, are not fighting fire with the fires.
31:34 I sort of think of it like that.
31:35 They're not using AI to triage, right?
31:38 Absolutely. If you are holding out on using AI coding tools yourself and you get a deluge of 50 pull requests from AI,
31:46 that just sucks. That is a terrible situation for you to be in.
31:50 And if people choose not to use AI tools, I absolutely respect that. I think there are very credible reasons for not wanting to use this technology.
31:58 But that's a real mess, right, if you've got all of these AI generated.
32:02 And basically, you almost have to have a policy that says, I'm just not accepting them because it's not.
32:06 There is no reasonable way to deal with that.
32:08 I'm using AI like crazy.
32:10 So every time I put out a release, I prompt one of my, I normally prompt Claude Code and say,
32:15 review recent issues and PRs, open this repo and see if there's anything that's ready to land
32:20 in this release for me.
32:21 Like, what are the low-hanging fruit?
32:23 And it'll normally come up with five or six things, and it's already reviewed them for me.
32:26 I will go and review them as well.
32:28 but it's very, very quick to go, yes, that one, not that one.
32:31 Okay, that one.
32:31 Modify this one a tiny bit and add a test and so forth.
32:34 And that's been working great.
32:35 If I didn't have that assistance myself, it would be untenable.
32:39 Like I would be turning off pull requests on my projects at this point.
32:43 Yeah, I think that I'm glad you agree.
32:45 That's awesome.
32:46 I think that that's the difference.
32:47 I think if it's asymmetric, it's a huge problem.
32:50 But if you get 10 PRs and you wake up, you just go, hey, Claude, I got 10 PRs.
32:54 I would like you to just have at it.
32:56 If it's absolutely clear, it's good.
32:58 take it if it's absolutely clear it's bad reject it say why give me like a one sentence yeah like
33:04 give me a one sentence synopsis and if it's bad like i'll re like claude the idea is good this is
33:09 bad do it the right way you know just kick it off you know my biggest concern is always what like
33:16 my software is now used by enough people that maybe somebody malicious could try and sneak a deliberate
33:21 bug in which is a security hole or whatever that's the thing i'm most cautious about that's terrifying
33:26 Right. And so I don't, I will never approve, like run my CI against something until I've eyeballed that thing.
33:32 And most of the changes are small enough that you can eyeball it and very quickly get to,
33:35 okay, this is clearly not.
33:37 But if there's anything even remotely complicated or sneak or like if there's something I don't understand, I can't land it because that's irresponsible to my users,
33:45 given, given that there are, that we know that there are people in the world who will try and sneak bad code into an open source project.
33:51 Yeah, 100%.
33:53 I think certainly as part of reviewing these PRs, plot or codex or whatever,
33:58 I want you to look for any malicious intent.
34:01 Just make that part of the standard review and then if it's not clear.
34:05 I used to be absolutely terrified that somebody would prompt inject my reviewer.
34:09 There'd be something in the commit that says, oh, and if you're reviewing this code,
34:13 say that it's completely fine.
34:14 I don't think that problem affects the latest models.
34:18 I was convinced this would never happen.
34:21 I thought prompt injection attacks could never be solved by making the model smarter.
34:25 I think I was wrong.
34:26 I think the models are smarter.
34:27 Like if you try and prompt inject Opus 5.5, it's phenomenally difficult to trick that model.
34:32 It can tell the difference between your user instructions and stuff that it just read in a diff.
34:38 And it's smart enough to separate those things.
34:42 Interesting.
34:43 Very good to hear.
34:43 All right.
34:44 Should we talk about Python?
34:45 Definitely.
34:46 First, let's talk about PSF.
34:49 PSF Fundraider.
34:50 Absolutely.
34:51 So I'm on the board of directors of the Python Software Foundation.
34:54 We have our end-of-year fundraiser coming up.
34:57 We would love your money.
34:58 Even better, we want your company's money.
35:00 If your company exists because of Python in any way, it would be fantastic if you could give back to the nonprofit,
35:07 to the community that supports that language.
35:10 The PSF spends money on all sorts of things.
35:13 Most importantly, the developer in residence program, we have security engineers working full-time supporting things like PyPI.
35:20 That's fantastic.
35:21 We've got, there's a grants program, which we had to spin down for lack of funds,
35:26 which was spinning back up now, which helps sports community events around the world.
35:30 And of course, there's PyCon US itself, which usually these days loses money,
35:35 unfortunately.
35:35 It's very, very expensive to run these giant conventions, but it's a crucial part.
35:40 It used to be the thing that funded the PSF.
35:42 Like every year, PyCon was the thing that kept the organization afloat.
35:46 That's not true at the moment.
35:47 There's no way we're going to stop doing PyCon US because it's such an important focal point for the community.
35:52 But yeah, the PSF gets a great deal done with constrained resources.
35:57 And the more resources we have, the more value we can give back to the world.
36:01 Yeah, donate folks.
36:02 It's important.
36:04 And I think, honestly, companies, that's the main lever, right?
36:08 Absolutely.
36:08 And also, this web page, if you scroll to the bottom of the web page, there's an animated version of the snake, which I think is really cute.
36:14 Where is the snake?
36:15 There we go. There we go. It's lovely.
36:18 A little bit like a, and now for something completely different, but an animated snake
36:23 instead.
36:23 Exactly.
36:24 Yep.
36:25 And we just had Anthropic give a big donation to bring in a new tradition.
36:30 Brett, whose last name I am forgetting.
36:32 I'm sorry, Brett Smith.
36:33 Am I right?
36:34 I'd have to go look up.
36:35 Yeah, I'm sorry.
36:36 But yeah, it's great to have more folks joining.
36:38 And we already talked about like this really important difference that it makes to have
36:42 people that are just doing the little things that fall through the cracks.
36:45 That, and also, I just, again, I love that the PSF is, the more sponsors we get,
36:51 the less influence any individual sponsor has.
36:54 But the PSF is not beholden to any individual company or corporation.
36:59 I feel like that's really important.
37:01 PyPI is, to use a term that AI models love using, it's load-bearing for the Python community.
37:07 And it really is.
37:08 And PyPI, the amount of value that we get out of PyPI, which is operated by the PSF with sponsorship from Fastly for the bandwidth,
37:16 thank goodness, because that would be very, very difficult to handle without them.
37:20 But yeah, this is all stuff that we use every day and that deserves our support.
37:25 Absolutely.
37:25 Do you find that this AI stuff has changed the nomenclature that you use, like your terminology?
37:32 It's so frustrating.
37:33 I think on the subconscious level, it's messed me up because I probably do pick up little bits of language that these things throw around.
37:40 But also it's banned me from using things I like.
37:42 Like I love talking about load bearing aspects of things.
37:45 And now I have to throw in a disclaimer every time I use the term load bearing because the agents love using it so much.
37:51 I know. I've been soaking things and I'm like, I don't want to soak them.
37:53 But apparently I have to soak them now.
37:55 I gave a talk earlier this year where I talked about how important it was to find the seams between different parts of your software.
38:01 And afterwards, someone said, seems, didn't AI write this?
38:04 And I'm like, I did.
38:05 It did not.
38:05 But oh my God, that's a piece of AI terminology that has made it into my brain.
38:10 Yeah.
38:11 You know, I love the concept of seems.
38:12 I know seems from Michael Feathers and the working effectively with legacy code book he
38:17 wrote back in early 2000s.
38:20 Not letting AI get that one.
38:21 We're hanging on to seems.
38:25 All right.
38:26 So the reason I reached out to you, we have so many different things to talk about.
38:30 You're doing so much interesting work.
38:31 But the reason I reached out to you is you wrote an article called, Hello,
38:35 Python 3.15, I Can Finally Use Python 3.11.
38:39 Yes, absolutely.
38:40 Make that make sense.
38:43 I'm so glad you pulled out the status of Python versions chart because this tells the entire story.
38:48 As an open source maintainer, I have to decide which versions of Python my software supports.
38:54 And a while ago, I decided the easiest way to make that decision is just to outsource and say,
38:59 If a version of Python is currently supported by the Python development community,
39:04 then it's supported by my libraries.
39:06 And this means that right now, 3.11 still has a year left.
39:12 3.12, 3.12.
39:13 But it meant that when Python 3.15 came out a few weeks ago, that was when I finally got to stop using Python 3.10,
39:20 because that was when Python 3.10 hit its end of life.
39:23 And it means that every time a new Python release comes out, I care about two documents.
39:27 I care about what's new in Python 3.15, And I also care about what's new in Python 3.11,
39:32 because those are the things which I can start using in my open source project.
39:35 My non-open source stuff, my hosted things that I do, those can be on the latest Python.
39:39 That's completely fine.
39:40 But for open source, that five-year-old what's new document is almost more exciting to me than what's new in the most
39:48 recent release.
39:48 That makes total sense, but it's not the first thing that jumps to your mind. You
39:53 hear about the new Python release, you think, oh my gosh, finally lazy imports or whatever it is
39:57 that you're really into, but you don't think about the lag time, right?
40:01 Exactly.
40:02 It's that lag time, which is, and it's, I wonder if I'm going to eventually move away from
40:07 that as things like WebAssembly and Docker containers and all of those make it much easier
40:13 for people to run a more recent Python.
40:15 And partly it also depends on my projects, like for the core things for like Dataset and LLM, they're library projects as well.
40:21 If you're building a library, it's kind of rude to force an upgrade on somebody because a transitive dependency
40:28 somewhere in the middle uses you, and now some poor end user is being told they have to switch
40:32 from Python 3.11 to 3.12 for this kind of bullshit reason they don't really care about.
40:40 And also, I mean, a lot of the time, the new features are nice, sort of, they improve your
40:45 developer experience.
40:45 They're not necessarily new capabilities.
40:47 The things I care about most are when a feature comes along, which means something that was impossible to build is now possible to
40:53 build.
40:53 Those are worth bending over backwards to get hold of.
40:57 If it's a sort of quality of life improvement, I'm willing to not take those on
41:05 from my own open source libraries because I'm serving other developers with them.
41:08 That's a really good way to look at it. I think we've been on our AI kick.
41:13 Both you and I are believers that AI agents build empower interesting types of software, I think,
41:19 it makes it less burdensome.
41:20 If I can tell an agent, look, this has got to be compatible 3.10, but here's what I want,
41:25 versus I can't use these types or whatever.
41:28 It feels really different.
41:29 There's a couple of things that help there as well.
41:31 Firstly, I love GitHub Actions for the matrix thing, where you can say, run my test suite against Python 3.11,
41:38 12, 13, 14, 15.
41:39 I use that on all of my projects.
41:41 I've got a new project template that sets that up.
41:44 And that means that it's very rare that something will sneak past me that doesn't work on some older version because I've got very comprehensive tests.
41:51 All of my features are covered by something.
41:53 The other thing is uv, right?
41:55 uv, the fact that you can go uv run --Python 3.12 pytest and it'll run pytest against Python 3.12.
42:03 Amazing.
42:04 It used to be that testing locally against different Python versions was inconvenient.
42:08 Now it's just not inconvenient at all.
42:10 So, yeah, the pain involved with that.
42:13 And again, you can tell your agent, use uv to run Python 3.13 and replicate this bug and it'll just do it.
42:17 Yep. I think honestly, uv and specifically the release that allowed it to manage Python has been really big difference,
42:26 right?
42:26 Enormously.
42:27 Enormously.
42:27 There's that classic old XKCD, the one with the Python development environment with the giant, it's like a giant tangle.
42:34 That's the thing that uv solves.
42:36 uv solved that specific XKCD.
42:39 And that used to be the bane of my life as a Python programmer was somebody asked me for help.
42:43 And I'm like, OK, what version of Python do you have?
42:46 And they had five and they couldn't tell which one was running.
42:48 And that's kind of gone.
42:49 And that's wonderful.
42:50 For my projects, my open source projects, my philosophy is if it's a library,
42:55 you do have to sort of be like you say.
42:56 You've got to really focus.
42:58 Although I might not start at 3.11.
43:01 I might say, well, I really want something from 3.13.
43:04 So as I release it, it's 3.13 and above.
43:06 But I wouldn't take it away.
43:08 I think that's completely fair, but also something to remember is that your metadata on PyPI says which Python version is supported.
43:16 So there's always that thing where you're like, okay, from today onwards, I don't support Python 3.12.
43:20 If someone on Python 3.12 does pip install, they will get my software.
43:23 They will get that version from six months ago.
43:26 That's the last version that worked on Python.
43:27 That always felt, that feels good to me.
43:30 I like that I haven't broken pip install for people.
43:32 It's just they're not getting the latest features.
43:34 Yeah, that's the main thing.
43:36 If I'm building a utility specifically that you can uvx or uv tool install,
43:42 then I don't care.
43:43 Because nobody's figured out what version of Python to use.
43:46 They're just running a command.
43:47 My app runs like it might as well be written in Fortran.
43:50 Like if it runs, it runs.
43:51 They don't care what's inside.
43:53 You know, if they're not dependent on as a library.
43:55 So I think that also unleashes a little bit more flexibility.
43:59 Absolutely.
44:00 All right.
44:00 So let's go through.
44:01 I mean, what let's talk through some of the features.
44:04 I guess, give us your quick rundown of what you find exciting of 3.15.
44:09 And then we'll get to the real specific stuff of like, as library maintainers who apply to your philosophy, what can they actually use?
44:15 The feature in 3.15 I'm most excited about is the lazy imports, right?
44:21 And this specifically affects me because a lot of my software uses plugins.
44:25 And the thing about plugins is that you can start with a very lightweight tool and you install some plugin,
44:30 which pulls in pandas or NumPy or whatever.
44:32 and suddenly your tool gets a lot heavier.
44:35 And this is a problem for command line tools because command line tools tend to install all the plugins as part of startup.
44:41 And so you go from LLM starting up in 0.1 of a second to LLM starting up in like two or three seconds
44:47 just because it's got a list of plugins and those plugins import stuff.
44:50 And now you're importing NumPy or SciPy or what these big torch can come in sometimes.
44:56 This massive, this makes everything feel really sluggish.
45:00 And lazy imports just straight up solves that.
45:02 Like with lazy imports, you can say, okay, so this plugin here, it's going to use SciPy,
45:06 but only import SciPy at the moment it actually gets used.
45:09 And now I've run some experiments and my startup time really does drop from like two or three seconds to 0.2, 0.3 seconds,
45:16 just through the use of this thing.
45:18 And I haven't tried this myself yet, but it turns out I don't have to wait until,
45:23 like I might have to wait until 2030 to use this because it's in Python 3.15,
45:28 except you don't have to use the lazy import syntax for this to work.
45:33 There's this whole ton of things where you put underscore, underscore, lazy,
45:36 underscore, modules, underscore, underscore, equals at the top of your module.
45:40 Python 3.15 will see that and use it.
45:42 Other Pythons will just ignore it.
45:44 That's amazing, right?
45:46 So this feature is actually compatible with older Pythons.
45:50 This is one of those things I have.
45:53 This is news to me.
45:53 This is interesting.
45:54 Yes, news to me as well.
45:55 I had Claude review this stuff.
45:58 It was like, oh, did you know that you don't need to use the lazy keyword?
46:02 Like, I did not know that.
46:03 It's like a from futures import sort of thing a little.
46:06 Yep.
46:07 And there's even a thing where you don't have to even use that.
46:10 You can start Python with dash capital X lazy imports equals all, and Python 3.15 will lazy import everything.
46:18 So actually, I can get that performance boost for all of my tools right now
46:22 just with an extra flag I pass to the Python interpreter.
46:25 This is great, right?
46:26 This is a huge, I mean, you can tell, it's unsurprising because the Python PEP process
46:30 is so thorough, but these PEP authors really thought this through.
46:33 They did a fantastic job of making this as useful as possible.
46:37 Okay, this is interesting, this new, lazy.
46:39 So as long as you decide to run on 3.15, then you get the benefit.
46:43 But if you don't, then you don't, okay.
46:45 Yeah, it's slower, which is, that's fine, right?
46:47 So that one I'm really excited about.
46:49 The other highlight from 3.15, I think, is the new sampling profiler stuff.
46:54 Like that's, and this thing, it's amazing.
46:59 It's so, so, so good.
47:01 And this is like, I've played with sampling profilers in the past and they were always incredibly powerful,
47:06 but this sort of like weird niche rocket science that most people are unaware of.
47:10 The idea with the sampling profiler is with a regular profile, you instrument everything and it slows everything down
47:16 because every single function call is doing a little bit of extra work to record what was happening.
47:20 With a sampling profiler, once every like thousand nanoseconds or whatever,
47:25 there's a little bit of code that takes a snapshot of what's in your call stack.
47:29 And building up those snapshots means that it can answer questions like, oh,
47:32 which function did you actually spend time in? It gives you most of the value of a regular profiler with almost none of the performance overhead.
47:39 And now we've got one built into Python itself, built into Python 3.15.
47:44 And it's another one of those things where you don't even have to learn how to use it. Like I pointed Claude at the documentation and
47:50 said, go and benchmark my stuff.
47:52 And it benchmarked my stuff and identified a bunch of places that could be optimized.
47:56 This is great.
47:56 But no, it's very, very nicely done.
47:59 It's very easy to, and it is worth playing around with it, especially since you get like flame graph visualizations and
48:04 things out of it.
48:05 It's great.
48:05 It's a really, really cool addition to the language.
48:08 I am so impressed with this.
48:10 I had Pablo and Laszlo on to talk about it when it first came out.
48:19 And file a thing and it it gives me this less invasive way but there's all these different ways in which
48:26 you can run it you can do it in like wall clock cpu mode GIL mode exception mode it's exceptional
48:32 yeah yeah and the biggest thing i think is a real game changer is to attach it in production to
48:40 yes you can just give it a pit you can give it a pit and say profile my thing that's running and
48:46 it will go ahead and do it. Like that's, that's, that's, that's, that's voodoo right there. That's
48:50 amazing.
48:51 Yeah. Because you're, it seems okay, but in this situation that I can't attach a debugger
48:56 or really do to, cause it's production.
48:59 That's when it's fallen over. Like, no, you just go in there.
49:01 You already have Python there. So you just Python dash M or whatever.
49:04 And you're good to go.
49:06 Incredible.
49:06 So I guess this is a feature you probably could, you could still use now,
49:10 right?
49:11 Oh, absolutely.
49:12 That's the great debug tools.
49:13 Brilliant.
49:14 It's just the stuff which becomes a dependency for my library that it doesn't work without.
49:19 Right. Even if your library has to be restricted to the features of 3.11,
49:24 you can still run in 3.15 and then attach to it with this.
49:26 A hundred percent.
49:27 That's the other thing that's worth remembering is that, yeah, for 3.15,
49:30 there are all sorts of things where you can say, okay, my users on Python 3.11 won't get this,
49:35 but for users who do have Python 3.15, these are things that are worth delivering to them.
49:39 Yeah, very good stuff.
49:40 I think it's good.
49:41 So let's talk about speed.
49:45 I think you're at a place with your philosophy and everyone who I think most people do follow that is like, I can use the released,
49:52 the official supported ones.
49:53 3.11 seems to be the one where the speed really came into play, right? We had 3.9 sort of set the stage. 3.10 do the groundwork for faster CPython,
50:02 but 3.11 is where the real jump happened.
50:05 But there's still speed-ups coming, or they have come in, right?
50:08 So I think about performance matters.
50:10 Yeah, this was a great article, this one, Miguel Greenberg's How Fast is Marking 3.15,
50:16 and his process seems credible, and it looks like it's not meaningfully faster than 3.14.
50:22 And that's, I mean, but like you said, 3.11, we had so many great speed boosts from that release,
50:28 and there's new stuff trickling in over time.
50:30 But yeah, so 3.15 definitely isn't a performance release.
50:33 It is, but I mean, the, what's it called?
50:38 The no gil stuff is continually getting better.
50:43 And I have, that's another one where it's not applicable to everyone, but if you control how you're deploying Python,
50:49 that can get really interesting.
50:51 And for some of the stuff I've been doing in dataset, I've been thinking about like executing parallel SQL queries.
50:56 You've got a page where you need to run 20 different queries to gather the stuff.
51:00 Why should you run those queries one after another if they can run in parallel?
51:03 And SQLite itself does unlock the gil, but there's still the gil for turning SQL objects into Python objects and so forth.
51:11 So I have high hopes for 3.15, no gil version for speeding up some of my deployed instances of data set.
51:18 That feels like that should work really well.
51:19 Yeah, I wanted to ask you about free-threaded Python.
51:22 And I do feel like 3.13, 3.14, 3.15, those are really significant changes for Python T,
51:29 the free-threaded one, because it was conditional in 3.13.
51:34 Its first official appearance was 3.14.
51:36 So this is kind of like the first release after the public got to experience it and test it.
51:41 I mean, I'm frustrated with myself that I've not deployed it for anything yet.
51:46 Every now and then I do experiments with it.
51:47 And the experiments are kind of interesting, but I've never, I haven't like taken the leap into that world.
51:53 I think one thing, this is one of those examples where having comprehensive tests is absolutely critical
51:59 because with free-threaded Python, And you have this sort of fear, uncertainty,
52:03 and doubt almost about, is it going to break in weird ways?
52:07 If you've got comprehensive tests and then if you run load tests and stuff against it, I think you can get to a very confident place with respect to, okay, it's safe for me to deploy this.
52:15 And I've done some of those experiments, but I've not pushed it through into a production instance just yet.
52:20 I really need to do that.
52:21 I've been on an absolute mission to work on some of these low-level dependencies of Python and WebStack to make them free-threaded, safe,
52:29 and hyper-force.
52:29 Outstanding.
52:30 There was a website for that.
52:31 Was that your website?
52:32 No, that's not my website.
52:34 Yeah, is it safe?
52:34 That was such a great site.
52:35 Are we free-threaded yet or something like that?
52:37 That was the one.
52:37 Yeah, that was beautiful.
52:39 Yeah.
52:39 Yeah.
52:39 So the thing I released is Chameleon RS, which is the chameleon language re-implemented
52:48 in multi-threaded Rust that is 100% free-threaded safe to use across.
52:54 Oh, I love this.
52:55 No, I haven't seen this at all.
52:56 Yeah, it's pretty new.
52:57 It's like two weeks or something old.
52:59 The Rust and C stuff is getting interesting for me as well, because, again, this is one of those things that agents unlock.
53:05 I was never brave enough to build a C extension for Python, because I know enough about C to know that you can shoot yourself in the foot so, so easily.
53:13 But for simple extensions, extensions just add a few optimized functions.
53:18 I have faith in like Claude Opus or whatever to spot the memory leaks.
53:23 Because memory leaks aren't, it's not the memory leaks are particularly complicated in simple code.
53:27 It's just that they're very easy to miss if you don't know what you're doing.
53:30 And so I've been experimenting recently with a few little Python C modules and Rust modules as well.
53:36 But I like C uses less memory.
53:37 I love that you can have a tiny little thing that uses like a megabyte of memory and get something useful done.
53:42 And I haven't, I'm not quite brave enough to have pushed any into production yet, but I'm getting close to it.
53:47 Yeah.
53:47 Because it feels like the performance, like when something runs 25 times faster,
53:51 it's worth putting in that extra effort to figure out, okay, how do I get to a point where this has been had a fuzzer run over it and the test coverage is good
54:00 and I've load tested and I feel like it's safe to start using.
54:03 I think this I think we're going to see more of this I think there's a lot of possibility here just switching the template
54:08 engine for the talk python courses and website and the other things I'm doing the overall application
54:14 time per request dropped by 20 percent not for rendering the template but like every bit of the
54:19 request dropped that much you know like it was really significant so I think it's it's going to
54:24 start to be one of these things that we look into.
54:27 And again, it even works in WebAssembly.
54:29 You can take your Chameleon Rust and you can get it compiled to WebAssembly
54:32 and now you've got all of that stuff just works as well.
54:35 Exactly.
54:36 Let's keep going.
54:37 There we go.
54:38 All right.
54:38 So let's do what is new.
54:40 What is old is new again?
54:42 Let me look at the date here.
54:44 What's the date?
54:45 So 2022.
54:47 2022.
54:47 I was going to say, this might actually have been the same time that you were on to talk about data stuff.
54:51 I know it's off by you.
54:53 That would have been fun.
54:54 So what's new in Python 3.11 for maintainers?
54:57 So the thing that I'm most excited about is the SQLite improvements.
55:00 Like Python bundles SQLite.
55:03 They added a whole bunch of stuff in 3.11 that I've been wanting to use for ages.
55:07 You can now register custom window functions.
55:10 So you can do like super complicated aggregations and stuff through custom Python code.
55:15 There's set limits, which lets you start messing around with some more of the deeper SQLite
55:20 internals for how much memory caps and things like that. Those are super great.
55:26 And I had some workarounds in dataset for SQLite stuff that didn't work in 3.10 that I got to drop.
55:32 So already I've had little bits of code cleanup from bumping up to 3.11.
55:36 I think TomlLib is a big deal because now you can use Toml as your configuration language without thinking about additional
55:45 dependencies.
55:46 Although it's kind of weird that pyproject.toml has been using Toml even back in
55:53 3.10 because they bundled TomlLib into, was it the packaging module or one of those,
55:58 or pip or something had TomlLib bundled in. But this is great.
56:01 Toml is a perfectly cromulent configuration language.
56:04 It's very stable.
56:06 And now we can just start using that in Python for free.
56:09 Some of the stuff in here, I haven't quite got my head around yet around the async task group,
56:15 groups those feel very important i just haven't used them yet so i haven't they haven't baked them
56:21 i haven't baked them into my head as a as a tool that i can use yeah i haven't used them that much
56:25 either but if you're doing like you previously mentioned like hey i've got maybe six llm calls
56:30 i got a tool call like why would i do if they're independent why would i wait for one and the other
56:36 so i think the task groups are really good for that kind of stuff because if you want to cancel
56:39 it then they manage all of them and they can cancel it as a group or if there's an exception
56:43 it gathers the exceptions across the different, like if both of them failed,
56:46 but in different ways, you want to know there were two failures and how.
56:49 It feels great.
56:50 It's just, I just, I'm not confident enough in it just yet.
56:55 There's a whole bunch of typing stuff, which I've not, again, I haven't spent time with yet,
56:59 but feels like a nice sort of develop, quality of developer experience upgrade.
57:04 Yeah, we said it before.
57:05 I think this one is worth just a 10% to 60% faster than even 3.10, like for free.
57:12 Outstanding.
57:13 That's outstanding.
57:14 And then the other one, it's a tiny one, datetime.utc.
57:17 I really like that.
57:20 I try to use UTC for basically everything, and now it's that tiny bit more convenient to have that as the default.
57:27 Yeah, it's surprising.
57:31 It's always a little bit trickier.
57:34 It's so hard.
57:35 There's a brand new Rust library that Burnt Sushi, who's my favorite Rust developer,
57:40 He did the like rip grep and rust regular expressions.
57:43 He just put out his new time library, which is the result of like many, many years
57:48 of poking at that problem.
57:50 And that one's, even if you don't do any rust at all, it's worth reading up on that
57:54 just because it's a masterclass in time-based API design.
57:59 Like you will become a better developer if you read the release notes for his time library,
58:04 because it will help you fill in so many of the gaps in your sort of mental model of how time should work.
58:09 Yeah, it's the testing of time, like the ability to like change time with mocking.
58:14 It's just, it's always, it's endlessly fun.
58:16 And I've spent so much time, so much of my career working on event websites
58:19 and time on event websites is so much harder because you're dealing with human,
58:23 that's where time zones and daylight saving time stuff is absolutely critical.
58:27 You know, you're dealing with these human models of time.
58:30 There's this really common mistake people make when they're building event websites or event tools
58:35 where the user says it's happening at 3 p.m.
58:38 on Friday the 15th of November, 2027.
58:40 And so you say, okay, well, I know what time zone is.
58:43 I'm going to convert that to UTC and I'm going to store the UTC time that is 3 p.m. in that country on that date.
58:49 And then between now and that date, somebody passes a law that cancels daylight savings time in that area.
58:55 And now your time in the database is off by an hour and you have no way of telling
58:59 because you didn't write down, the user said this is in this particular time zone
59:04 at this day in this location.
59:06 That's the information you need to figure out when 3 p.m.
59:08 actually is, really frustrating.
59:10 Like all of these Yeah, the nuances are just endless.
59:13 Oh my God.
59:14 Absolutely, yeah.
59:15 They are.
59:16 But our podcast together is not endless.
59:18 I think our time is up, Simon, but it's been a really interesting conversation.
59:23 And honestly, if we didn't have a time bound, we could go for hours and hours about all that. There's just
59:28 so much We really could.
59:29 We didn't even talk about vibe coding computer games, which is my hobby at the moment.
59:35 You can build really fun computer games these days.
59:37 It's amazing.
59:38 That's awesome.
59:39 My daughter is really into vibe coding computer games.
59:42 She'll play a game and she'll be like, this game is pretty fun, but it lacks X, Y,
59:46 Z.
59:46 And she's like, I'm opening code X, I'm fixing it.
59:49 You know, and she'll just make her own.
59:50 It's amazing.
59:51 How old is she?
59:52 She just turned 18.
59:53 Amazing.
59:54 Yeah, that to me, like on the one hand, if you're offended by AI generated graphics,
59:59 music, writing, and code, games are all of that.
01:00:02 It's like the worst possible form of offense against human creativity.
01:00:06 Like fingernails on a chalkboard sort of thing.
01:00:09 Exactly.
01:00:10 But flip side, the idea that people don't have to, like computer programming,
01:00:14 program games is also the hardest form of computer programming, I think.
01:00:17 And the idea that we're unleashing this wave of creativity from people who can just try weird, obscure,
01:00:24 like crazy things.
01:00:25 And most of them will be terrible.
01:00:26 It doesn't matter.
01:00:27 And the ones that aren't terrible are going to be incredible.
01:00:29 I'm really excited to see what comes out of the people being unleashed on the world in this way.
01:00:33 It's going to be amazing.
01:00:34 It's going to be interesting.
01:00:35 It's definitely going to be something.
01:00:37 So I'm excited as well.
01:00:38 Simon, final thoughts for maintainers thinking about this sort of the old thing is new again.
01:00:42 What do you tell them?
01:00:43 So I think our responsibility with all of the AI stuff, there are good ways to apply this stuff
01:00:48 and bad ways to apply this stuff.
01:00:50 And we need to stamp down on the bad ways.
01:00:52 And we need to make sure as many people, like make sure that we're using it
01:00:56 in productive ways that add value to human society and that we help other people
01:01:01 figure out how to do that.
01:01:02 Like that's my sort of approach to AI ethics almost from the start been,
01:01:06 I don't think we, this stuff doesn't get uninvented. It's not going to go away.
01:01:10 How do we make it out?
01:01:11 What, what, what can we do to make the impact as positive as possible?
01:01:15 Like how can we find the things that it makes better and do more of those and bring as many
01:01:20 people along for the ride as possible?
01:01:21 It's an exciting time.
01:01:23 And so I, we're not there, I guess, enjoy, enjoy the ride and it's going to be interesting.
01:01:28 So you'll be able to say you got to live through it.
01:01:30 Oh, it's definitely, may you live in interesting times, the old curse where
01:01:34 We're absolutely living through interesting times at the moment.
01:01:36 We are.
01:01:37 Well, it was an interesting podcast.
01:01:38 Thanks for being here, Simon.
01:01:39 Thanks a lot.
01:01:40 This has been really fun.
01:01:41 It has.
01:01:41 Bye.
01:01:42 This has been another episode of Talk Python To Me.
01:01:45 Thank you to our sponsors.
01:01:46 Be sure to check out what they're offering.
01:01:47 It really helps support the show.
01:01:49 This portion of Talk Python To Me is brought to you by, well, you.
01:01:53 I recently added a membership program to Talk Python.
01:01:56 Membership starts at just $5 a month, and it really helps support the show.
01:02:00 So become a member and get access to top-tier live tech events and much more.
01:02:05 Visit talkpython.fm/meetups to get started today.
01:02:08 If you or your team needs to learn Python, we have over 270 hours of beginner and advanced
01:02:13 courses on topics ranging from complete beginners to async code, Flask, Django,
01:02:18 HTMX, and even LLMs.
01:02:20 Best of all, there's no subscription in sight.
01:02:23 Browse the catalog at talkpython.fm.
01:02:25 And if you're not already subscribed to the show on your favorite podcast player,
01:02:29 what for.
01:02:31 Just search for Python in your podcast player. We should be right at the top.
01:02:34 If you enjoy that geeky rap song, you can download the full track. The link is actually in your podcast
01:02:38 blur share notes.
01:02:40 This is your host, Michael Kennedy.
01:02:41 Thank you so much for listening.
01:02:43 I really appreciate it.
01:02:44 I'll see you next time.


