WEBVTT

00:00:00.020 --> 00:00:01.380
<v Michael Kennedy>When a new version of Python ships,

00:00:01.640 --> 00:00:03.720
<v Michael Kennedy>which What's New Doc do you read?

00:00:04.220 --> 00:00:05.300
<v Michael Kennedy>For library maintainers,

00:00:05.540 --> 00:00:06.940
<v Michael Kennedy>it's often two.

00:00:07.530 --> 00:00:08.900
<v Michael Kennedy>Python 3.15 just landed,

00:00:09.410 --> 00:00:12.100
<v Michael Kennedy>and that pushed Python 3.10 out of scope.

00:00:12.410 --> 00:00:15.600
<v Michael Kennedy>So 3.11 is finally the floor for your libraries.

00:00:16.320 --> 00:00:19.200
<v Michael Kennedy>Simon Willison is here to cover both of these stories.

00:00:19.820 --> 00:00:23.060
<v Michael Kennedy>He co-created Django and built Dataset and LLM.

00:00:23.500 --> 00:00:24.300
<v Michael Kennedy>His rule is simple.

00:00:25.040 --> 00:00:26.980
<v Michael Kennedy>If the core team supports a Python version,

00:00:27.330 --> 00:00:28.220
<v Michael Kennedy>so do his libraries.

00:00:28.320 --> 00:00:30.400
<v Michael Kennedy>We catch up on Dataset first,

00:00:31.060 --> 00:00:40.000
<v Michael Kennedy>then both releases from the 3.15 lazy imports and the new sampling profiler to Python 3.11's Tomolib and task groups.

00:00:40.760 --> 00:00:43.140
<v Michael Kennedy>And everyone who's waiting for Python to get faster,

00:00:43.380 --> 00:00:47.380
<v Michael Kennedy>Python 3.11 runs 10 to 60% faster than 3.10.

00:00:47.880 --> 00:00:50.820
<v Michael Kennedy>So dropping that old slower version is good for all of us.

00:00:51.360 --> 00:00:52.020
<v Michael Kennedy>This is Talk Python,

00:00:52.200 --> 00:00:53.440
<v Michael Kennedy>episode 571,

00:00:53.800 --> 00:00:55.140
<v Michael Kennedy>recorded November 17th,

00:00:55.400 --> 00:00:56.200
<v Michael Kennedy>2026.

00:01:13.319 --> 00:01:18.100
<v Michael Kennedy>Welcome to Talk Python To Me, the number one Python podcast for developers and data scientists.

00:01:18.640 --> 00:01:20.000
<v Michael Kennedy>This is your host, Michael Kennedy.

00:01:20.200 --> 00:01:23.940
<v Michael Kennedy>I'm a PSF fellow who's been coding for over 25 years.

00:01:24.360 --> 00:01:25.640
<v Michael Kennedy>Let's connect on social media.

00:01:26.080 --> 00:01:28.280
<v Michael Kennedy>You'll find me and Talk Python on Mastodon, Bluesky,

00:01:28.660 --> 00:01:29.100
<v Michael Kennedy>and X.

00:01:29.460 --> 00:01:31.280
<v Michael Kennedy>The social links are all in your show notes.

00:01:32.060 --> 00:01:35.560
<v Michael Kennedy>You can find over 10 years of past episodes at talkpython.fm.

00:01:35.740 --> 00:01:38.940
<v Michael Kennedy>And if you want to be part of the show, you can join our recording live streams.

00:01:39.220 --> 00:01:39.760
<v Michael Kennedy>That's right.

00:01:39.950 --> 00:01:43.220
<v Michael Kennedy>We live stream the raw uncut version of each episode on YouTube.

00:01:43.820 --> 00:01:48.240
<v Michael Kennedy>Just visit talkpython.fm/youtube to see the schedule of upcoming events.

00:01:48.430 --> 00:01:52.100
<v Michael Kennedy>Be sure to subscribe there and press the bell so you'll get notified anytime we're recording.

00:01:52.740 --> 00:01:55.120
<v Michael Kennedy>This portion of Talk Python To Me is brought to you by,

00:01:55.320 --> 00:01:55.480
<v Michael Kennedy>well,

00:01:55.740 --> 00:01:55.880
<v Michael Kennedy>you.

00:01:56.540 --> 00:01:59.300
<v Michael Kennedy>I recently added a membership program to Talk Python.

00:02:00.020 --> 00:02:02.180
<v Michael Kennedy>Membership starts at just $5 a month,

00:02:02.330 --> 00:02:03.680
<v Michael Kennedy>and it really helps support the show.

00:02:03.970 --> 00:02:07.960
<v Michael Kennedy>So become a member and get access to top-tier live tech events and much more.

00:02:08.460 --> 00:02:11.240
<v Michael Kennedy>Visit talkpython.fm/meetups to get started today.

00:02:12.940 --> 00:02:13.160
<v Michael Kennedy>Simon,

00:02:13.420 --> 00:02:14.680
<v Michael Kennedy>welcome back to Talk Python To Me.

00:02:14.750 --> 00:02:15.760
<v Michael Kennedy>Always nice to have you here.

00:02:16.000 --> 00:02:17.160
<v Simon Willison>Yeah, it's really great to be back.

00:02:17.600 --> 00:02:17.780
<v Michael Kennedy>Yeah.

00:02:18.040 --> 00:02:19.240
<v Simon Willison>It's almost, it's the year anniversary.

00:02:19.580 --> 00:02:23.160
<v Simon Willison>It looks like last time we recorded October 23rd, 2025.

00:02:23.610 --> 00:02:24.660
<v Simon Willison>So it's been just over a year.

00:02:25.060 --> 00:02:26.160
<v Michael Kennedy>Almost exactly a year.

00:02:26.250 --> 00:02:29.700
<v Michael Kennedy>And that was, we were celebrating the 20th anniversary of Django,

00:02:29.960 --> 00:02:30.040
<v Michael Kennedy>which.

00:02:30.460 --> 00:02:32.200
<v Simon Willison>That was a great conversation, that one.

00:02:32.320 --> 00:02:32.400
<v Simon Willison>Yeah.

00:02:32.660 --> 00:02:33.300
<v Michael Kennedy>Yeah, it really was.

00:02:33.550 --> 00:02:37.080
<v Michael Kennedy>And we got a lot of the OG folks all together to talk about it.

00:02:37.500 --> 00:02:37.820
<v Simon Willison>You know what?

00:02:38.060 --> 00:02:38.300
<v Simon Willison>I'm wrong.

00:02:38.330 --> 00:02:38.920
<v Simon Willison>That was August.

00:02:39.500 --> 00:02:42.940
<v Simon Willison>That was, it was August that we did the Django's 20th birthday, but that was so much fun.

00:02:43.290 --> 00:02:45.940
<v Simon Willison>We should try and find an excuse to do another one of those soon.

00:02:46.200 --> 00:02:47.400
<v Michael Kennedy>I don't see why we wouldn't.

00:02:47.720 --> 00:02:49.140
<v Michael Kennedy>Yeah, I mean, Django's going so strong,

00:02:49.360 --> 00:02:52.860
<v Michael Kennedy>right? And so it's really just such a phenomenon.

00:02:53.420 --> 00:02:55.460
<v Michael Kennedy>It's a really good technical project,

00:02:55.740 --> 00:02:56.000
<v Michael Kennedy>of course.

00:02:56.240 --> 00:03:00.320
<v Michael Kennedy>And for those of you who don't know, Simon was one of the original creators,

00:03:00.570 --> 00:03:01.600
<v Michael Kennedy>which is pretty amazing.

00:03:02.000 --> 00:03:05.480
<v Michael Kennedy>But not only is it a great technical thing, I think a community,

00:03:05.760 --> 00:03:10.780
<v Michael Kennedy>there's almost no other open source project that has a community like Django has,

00:03:11.090 --> 00:03:11.220
<v Michael Kennedy>right?

00:03:11.360 --> 00:03:21.140
<v Simon Willison>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,

00:03:21.460 --> 00:03:26.540
<v Simon Willison>like having paid contractors who take on the work of making sure the thing ticks over,

00:03:26.780 --> 00:03:30.140
<v Simon Willison>like the security triage and the release management and all of that kind of stuff.

00:03:30.290 --> 00:03:30.780
<v Simon Willison>It's wonderful.

00:03:30.850 --> 00:03:38.640
<v Simon Willison>And I mean, the Python Software Foundation's Python Developers Residence was a modification of what the Django Software Foundation had been doing.

00:03:38.960 --> 00:03:39.040
<v Michael Kennedy>Oh,

00:03:39.200 --> 00:03:41.260
<v Michael Kennedy>really? I didn't realize the influence went in that direction.

00:03:41.340 --> 00:03:44.160
<v Simon Willison>It was partly inspired by Django.

00:03:44.550 --> 00:03:45.220
<v Simon Willison>And I love that.

00:03:45.230 --> 00:03:48.100
<v Simon Willison>I think it's because it's so rare to have an open source project

00:03:48.280 --> 00:03:52.000
<v Simon Willison>which is financially sustained but not by a single company.

00:03:52.380 --> 00:03:52.520
<v Simon Willison>You know,

00:03:52.680 --> 00:03:55.700
<v Simon Willison>most big projects have a single corporate sponsor.

00:03:56.080 --> 00:03:58.300
<v Simon Willison>It's like Django and Postgres and Python itself

00:03:58.610 --> 00:04:02.540
<v Simon Willison>are three examples of projects that really are owned by the community

00:04:02.650 --> 00:04:03.260
<v Simon Willison>to a certain extent.

00:04:04.020 --> 00:04:04.460
<v Michael Kennedy>Okay.

00:04:04.870 --> 00:04:05.900
<v Michael Kennedy>Yeah, it's super interesting.

00:04:06.010 --> 00:04:09.300
<v Michael Kennedy>And I do think it's a really important thing to just keep an eye on.

00:04:09.480 --> 00:04:11.500
<v Michael Kennedy>You know, like when you're working in an open source project,

00:04:12.160 --> 00:04:16.560
<v Michael Kennedy>there's the really interesting stuff like, hey, I want to add a new tasks framework to Django.

00:04:16.880 --> 00:04:17.500
<v Michael Kennedy>Wouldn't that be fun?

00:04:17.820 --> 00:04:23.700
<v Michael Kennedy>But is there, I want to triage the 100th bug or I want to get the CI to build correctly.

00:04:24.000 --> 00:04:25.880
<v Michael Kennedy>You know, there's a lot of this just grunt work.

00:04:26.400 --> 00:04:29.960
<v Simon Willison>Someone has to review the pull requests and land the changes and all of that.

00:04:30.300 --> 00:04:33.760
<v Simon Willison>And yeah, it's not glamorous work, but it's the work that makes the project go.

00:04:33.940 --> 00:04:39.360
<v Simon Willison>And I love how well Django manages that through the fellows program.

00:04:39.760 --> 00:04:39.860
<v Michael Kennedy>Yeah,

00:04:40.160 --> 00:04:40.540
<v Michael Kennedy>I agree.

00:04:40.780 --> 00:04:42.100
<v Michael Kennedy>I think it's really neat.

00:04:42.100 --> 00:04:44.500
<v Michael Kennedy>And I just think the community around it, you've got the Django Nuts,

00:04:44.980 --> 00:04:46.300
<v Michael Kennedy>you've got Django Girls.

00:04:46.760 --> 00:04:47.080
<v Michael Kennedy>I mean,

00:04:47.460 --> 00:04:48.220
<v Michael Kennedy>it's very special.

00:04:48.340 --> 00:04:50.540
<v Michael Kennedy>And I think it's great to just celebrate it every now and then.

00:04:50.740 --> 00:04:51.100
<v Simon Willison>Absolutely.

00:04:51.580 --> 00:04:53.100
<v Michael Kennedy>Speaking of celebrating things,

00:04:53.360 --> 00:04:56.820
<v Michael Kennedy>let's talk a bit about not what you were on last time,

00:04:57.240 --> 00:04:59.920
<v Michael Kennedy>but remember you were on to talk about data set.

00:05:00.280 --> 00:05:00.900
<v Simon Willison>Good Lord.

00:05:01.120 --> 00:05:02.160
<v Simon Willison>Was that that long ago?

00:05:02.280 --> 00:05:03.220
<v Simon Willison>That was six years ago.

00:05:03.580 --> 00:05:04.420
<v Michael Kennedy>Yes, I know.

00:05:04.600 --> 00:05:05.700
<v Michael Kennedy>That's what I was going to say.

00:05:06.120 --> 00:05:09.660
<v Michael Kennedy>It's been so long since you've been on the show to talk about that.

00:05:09.660 --> 00:05:12.060
<v Michael Kennedy>I was like, oh, we should catch up on that.

00:05:12.280 --> 00:05:14.060
<v Michael Kennedy>That surely a lot has changed about this.

00:05:14.920 --> 00:05:15.740
<v Simon Willison>So much so.

00:05:15.850 --> 00:05:16.580
<v Simon Willison>Although amusingly,

00:05:16.820 --> 00:05:18.980
<v Simon Willison>six years ago, I was promising a 1.0 release.

00:05:19.520 --> 00:05:20.700
<v Simon Willison>I haven't got to the 1.0 release yet.

00:05:20.780 --> 00:05:22.380
<v Simon Willison>I'm at Alpha 43,

00:05:23.060 --> 00:05:24.720
<v Simon Willison>like 1.0 A43.

00:05:25.360 --> 00:05:27.080
<v Simon Willison>I released just like two days ago.

00:05:27.880 --> 00:05:28.520
<v Simon Willison>I'm going to get there.

00:05:28.760 --> 00:05:29.220
<v Simon Willison>I'm accelerating.

00:05:30.920 --> 00:05:33.360
<v Simon Willison>The milestone of what's left is down to like,

00:05:33.640 --> 00:05:34.880
<v Simon Willison>it's 56 complete now,

00:05:35.120 --> 00:05:36.760
<v Simon Willison>and it was 30% complete a few days ago.

00:05:37.020 --> 00:05:40.100
<v Simon Willison>So I'm on a roll with 1.0 stuff.

00:05:40.260 --> 00:05:40.600
<v Simon Willison>That's good.

00:05:40.800 --> 00:05:42.860
<v Michael Kennedy>So you don't espouse the zero ver?

00:05:43.760 --> 00:05:44.060
<v Simon Willison>No.

00:05:44.600 --> 00:05:46.020
<v Michael Kennedy>You want to get a release?

00:05:46.920 --> 00:05:47.640
<v Simon Willison>It's a terrible habit.

00:05:47.800 --> 00:05:50.500
<v Simon Willison>I've got so many projects that get stuck in 0.x.

00:05:50.780 --> 00:05:55.240
<v Simon Willison>My LLM project is at 0.63 at this point, I think.

00:05:55.720 --> 00:05:55.920
<v Simon Willison>Yeah,

00:05:56.080 --> 00:05:56.920
<v Simon Willison>I've just got to get braver.

00:05:57.000 --> 00:06:00.760
<v Simon Willison>But I feel like Dataset 1.0, the train is rumbling.

00:06:00.980 --> 00:06:03.480
<v Simon Willison>It feels like I'm going to get there very,

00:06:03.700 --> 00:06:04.180
<v Simon Willison>very shortly.

00:06:04.520 --> 00:06:05.200
<v Michael Kennedy>Yeah, incredible.

00:06:05.510 --> 00:06:05.620
<v Michael Kennedy>Well,

00:06:05.860 --> 00:06:07.320
<v Michael Kennedy>why don't we talk a little bit about Dataset?

00:06:07.380 --> 00:06:08.840
<v Michael Kennedy>I think just maybe a catch up on that.

00:06:09.479 --> 00:06:10.880
<v Michael Kennedy>We haven't spoken about it for a while.

00:06:11.020 --> 00:06:11.100
<v Michael Kennedy>Yeah,

00:06:11.380 --> 00:06:13.220
<v Michael Kennedy>tell people what is Dataset.

00:06:15.159 --> 00:06:17.340
<v Michael Kennedy>Before you jump into that, because I think it's even,

00:06:17.660 --> 00:06:20.620
<v Michael Kennedy>and I'm sure you agree, I think it's even more relevant

00:06:20.860 --> 00:06:23.360
<v Michael Kennedy>to make these Datasets available to things.

00:06:23.740 --> 00:06:26.800
<v Michael Kennedy>Now we have agents and CLIs and MCPs and all these things,

00:06:26.980 --> 00:06:27.100
<v Michael Kennedy>right?

00:06:27.500 --> 00:06:27.580
<v Simon Willison>Right.

00:06:27.850 --> 00:06:32.380
<v Simon Willison>So the original idea behind Dataset, Dataset is a Python web application.

00:06:32.580 --> 00:06:39.020
<v Simon Willison>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.

00:06:39.270 --> 00:06:40.480
<v Simon Willison>And it's extensible by plugins.

00:06:41.060 --> 00:06:47.860
<v Simon Willison>And the original idea was all about there's all of this data that exists that is not available online in a convenient shape.

00:06:48.260 --> 00:06:49.600
<v Simon Willison>Let's build something to help with that.

00:06:49.660 --> 00:06:54.740
<v Simon Willison>make it as cheap as possible to publish a million rows of data online so that people can export it

00:06:54.800 --> 00:06:58.320
<v Simon Willison>as JSON and CSV and see visualizations to all of those kinds of things.

00:06:58.720 --> 00:06:59.440
<v Simon Willison>And the inspiration came

00:06:59.590 --> 00:07:00.700
<v Simon Willison>actually from work I did at newspapers,

00:07:01.340 --> 00:07:02.440
<v Simon Willison>where when I was at The Guardian,

00:07:02.650 --> 00:07:03.500
<v Simon Willison>we were trying to

00:07:03.860 --> 00:07:05.500
<v Simon Willison>publish the data behind our stories.

00:07:05.980 --> 00:07:07.940
<v Simon Willison>And I've always loved data journalism,

00:07:08.140 --> 00:07:08.880
<v Simon Willison>like journalism

00:07:09.180 --> 00:07:13.080
<v Simon Willison>where there's data involved and the journalists are running queries and trying to find the stories

00:07:13.180 --> 00:07:14.040
<v Simon Willison>and then explain them to people.

00:07:14.220 --> 00:07:17.880
<v Simon Willison>That I still think is the most thrilling application of sort of

00:07:17.980 --> 00:07:20.460
<v Simon Willison>computer science in telling stories about the world.

00:07:20.810 --> 00:07:22.540
<v Simon Willison>So the original idea was publishing.

00:07:23.030 --> 00:07:26.460
<v Simon Willison>And then because I had plugins, I started experimenting with, okay, what if this tool

00:07:26.580 --> 00:07:30.960
<v Simon Willison>could let you edit data and add data and manipulate data in various different ways?

00:07:31.440 --> 00:07:34.820
<v Simon Willison>And it kept on sort of growing in that kind of direction. And then the most recent thing in the

00:07:34.820 --> 00:07:36.460
<v Simon Willison>past couple of years is AI comes along.

00:07:36.870 --> 00:07:39.760
<v Simon Willison>And initially I was very cautious about bringing

00:07:39.940 --> 00:07:42.600
<v Simon Willison>AI features into dataset because AI makes stuff up.

00:07:42.950 --> 00:07:45.060
<v Simon Willison>And the last thing you want to do is give people,

00:07:45.160 --> 00:07:48.560
<v Simon Willison>give journalists a tool that will make things up. That's catastrophic.

00:07:48.780 --> 00:07:50.200
<v Simon Willison>The thing is that AI doesn't

00:07:50.280 --> 00:07:51.200
<v Simon Willison>really make stuff up anymore.

00:07:51.450 --> 00:07:54.740
<v Simon Willison>Like the most recent models, models from the past sort of 12 months,

00:07:54.960 --> 00:07:57.100
<v Simon Willison>hallucination is a much, much smaller risk.

00:07:57.370 --> 00:07:58.000
<v Simon Willison>And in the meantime,

00:07:58.640 --> 00:08:00.380
<v Simon Willison>the dream of the data set was

00:08:00.560 --> 00:08:00.860
<v Simon Willison>originally,

00:08:01.290 --> 00:08:04.540
<v Simon Willison>how can I help technical people be more productive?

00:08:04.840 --> 00:08:06.620
<v Simon Willison>Like you understand how to deploy

00:08:06.690 --> 00:08:08.060
<v Simon Willison>a server and all of that kind of thing.

00:08:08.270 --> 00:08:10.760
<v Simon Willison>You want to be able to get stuff out there into the world.

00:08:11.100 --> 00:08:13.180
<v Simon Willison>And the more interesting goal was always,

00:08:13.700 --> 00:08:15.740
<v Simon Willison>how can I help people who don't have that knowledge,

00:08:16.140 --> 00:08:18.100
<v Simon Willison>but want to do data analysis and data publication?

00:08:18.590 --> 00:08:20.520
<v Simon Willison>If you think about journalists specifically,

00:08:21.020 --> 00:08:22.980
<v Simon Willison>most newsrooms can't afford a programmer,

00:08:23.460 --> 00:08:25.500
<v Simon Willison>but they have data problems that they need to solve.

00:08:25.690 --> 00:08:31.920
<v Simon Willison>So could I build software that would help non-technical journalists understand and analyze and clean up their data?

00:08:32.400 --> 00:08:33.240
<v Simon Willison>And the answer used to be no,

00:08:33.390 --> 00:08:35.060
<v Simon Willison>it was too difficult to take that on.

00:08:35.460 --> 00:08:38.300
<v Simon Willison>This is one of the things I'm most excited about with AI and LLMs,

00:08:38.640 --> 00:08:43.820
<v Simon Willison>is I think that's the lever I need to make this stuff available to a much wider audience.

00:08:44.400 --> 00:08:47.520
<v Simon Willison>And so what I've been building for the past this year, I've been building a thing called

00:08:47.660 --> 00:08:48.320
<v Simon Willison>Dataset Agent,

00:08:48.620 --> 00:08:50.400
<v Simon Willison>which is a plugin for Dataset.

00:08:50.540 --> 00:08:52.660
<v Simon Willison>It's at agent.dataset.io.

00:08:52.960 --> 00:08:55.180
<v Simon Willison>It's a little plugin that adds a chatbot.

00:08:55.480 --> 00:08:57.980
<v Simon Willison>And that chatbot can answer questions about your data.

00:08:57.980 --> 00:08:58.760
<v Simon Willison>You can ask it questions.

00:08:58.980 --> 00:09:03.380
<v Simon Willison>It'll run SQL queries and give you back answers and all of that kind of stuff.

00:09:03.980 --> 00:09:05.040
<v Simon Willison>But crucially,

00:09:05.380 --> 00:09:07.260
<v Simon Willison>I spent so long resisting the chatbot.

00:09:07.420 --> 00:09:10.760
<v Simon Willison>I'm like, there has to be a better interface than chat for this kind of stuff.

00:09:11.040 --> 00:09:14.580
<v Simon Willison>And when I finally broke down and built a chatbot, it turns out there isn't a better interface.

00:09:14.860 --> 00:09:14.960
<v Simon Willison>Actually,

00:09:15.520 --> 00:09:21.700
<v Simon Willison>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,

00:09:21.860 --> 00:09:22.160
<v Simon Willison>really well.

00:09:22.620 --> 00:09:25.480
<v Simon Willison>So this is a project I've been putting a lot of work into recently.

00:09:25.880 --> 00:09:26.220
<v Simon Willison>It's also,

00:09:26.500 --> 00:09:28.820
<v Simon Willison>it combines my other open source project.

00:09:28.880 --> 00:09:30.460
<v Simon Willison>I have a project called LLM,

00:09:30.680 --> 00:09:35.820
<v Simon Willison>which is a Python library and CLI tool for talking to lots of different language models.

00:09:36.280 --> 00:09:38.520
<v Simon Willison>And Dataset Agent is Dataset plus LLM,

00:09:38.780 --> 00:09:40.760
<v Simon Willison>which means it works against hundreds of different models.

00:09:40.960 --> 00:09:45.580
<v Simon Willison>There's a plug-in system that lets you add new models into LLM,

00:09:45.880 --> 00:09:46.720
<v Simon Willison>and it all just works.

00:09:47.020 --> 00:09:47.960
<v Simon Willison>And it's so exciting,

00:09:48.200 --> 00:09:52.780
<v Simon Willison>especially since I'm also interested in the models that run on my laptop,

00:09:53.100 --> 00:09:54.600
<v Simon Willison>the sort of really weak models.

00:09:55.000 --> 00:09:57.000
<v Simon Willison>They're still good enough to write SQLite SQL.

00:09:57.400 --> 00:10:02.339
<v Simon Willison>So you can actually run Dataset on a Mac laptop and have it...

00:10:02.600 --> 00:10:04.380
<v Simon Willison>You can run it on a Mac laptop with a local model,

00:10:04.540 --> 00:10:06.780
<v Simon Willison>like a QEN 3.827B,

00:10:07.130 --> 00:10:07.960
<v Simon Willison>and it does all the stuff.

00:10:08.310 --> 00:10:11.440
<v Simon Willison>You can ask questions and queries and all of that kind of thing.

00:10:11.570 --> 00:10:23.480
<v Simon Willison>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.

00:10:23.780 --> 00:10:24.780
<v Simon Willison>So I'm very,

00:10:25.020 --> 00:10:27.720
<v Simon Willison>very excited about tying all of these projects together at the moment.

00:10:28.160 --> 00:10:29.120
<v Michael Kennedy>That is really exciting.

00:10:29.500 --> 00:10:33.160
<v Michael Kennedy>And I agree that I think these chatbots and these tools,

00:10:33.680 --> 00:10:37.900
<v Michael Kennedy>they've unlocked data exploration and fluency for a lot of people.

00:10:38.200 --> 00:10:38.400
<v Simon Willison>Right.

00:10:38.540 --> 00:10:41.220
<v Simon Willison>It's one of the things they are best at is,

00:10:42.010 --> 00:10:43.260
<v Simon Willison>I mean, because SQL is,

00:10:43.580 --> 00:10:44.120
<v Simon Willison>it turns out,

00:10:44.460 --> 00:10:47.300
<v Simon Willison>all of these things have been able to do SQL well for years now.

00:10:47.700 --> 00:10:49.940
<v Simon Willison>Like you can get very good results from that.

00:10:50.180 --> 00:10:51.400
<v Simon Willison>The other feature I've been building,

00:10:52.400 --> 00:10:53.880
<v Simon Willison>which ties into all of this,

00:10:54.120 --> 00:10:55.780
<v Simon Willison>is something I'm calling Dataset Apps.

00:10:56.280 --> 00:11:00.820
<v Simon Willison>And the idea there is when you've got data sets always had lots of JSON APIs and things,

00:11:01.160 --> 00:11:05.060
<v Simon Willison>wouldn't it be great if you could knock up little custom HTML applications that run some

00:11:05.210 --> 00:11:09.240
<v Simon Willison>SQL queries and present the data to you in whatever custom way may make sense, sort of

00:11:09.380 --> 00:11:11.540
<v Simon Willison>dashboards and interactive things like that.

00:11:11.840 --> 00:11:14.180
<v Simon Willison>And that is something which LLMs are also great at.

00:11:14.240 --> 00:11:15.860
<v Simon Willison>They're very good at writing HTML and JavaScript.

00:11:16.440 --> 00:11:20.180
<v Simon Willison>So if you can give them the schema and an API to run SQL queries and say,

00:11:20.420 --> 00:11:21.340
<v Simon Willison>build me a dashboard,

00:11:21.840 --> 00:11:23.140
<v Simon Willison>they will build you a dashboard.

00:11:23.560 --> 00:11:26.240
<v Simon Willison>And so that's now integrated into Dataset Agent as well.

00:11:26.320 --> 00:11:27.540
<v Simon Willison>So you can say to Dataset Agent,

00:11:27.820 --> 00:11:30.940
<v Simon Willison>build me a dashboard showing me that I can use to explore

00:11:31.200 --> 00:11:32.540
<v Simon Willison>the sales figures in this table.

00:11:33.000 --> 00:11:36.620
<v Simon Willison>And up pops an HTML page with the custom interface.

00:11:36.760 --> 00:11:38.620
<v Simon Willison>And you can then chat with it and say, actually change it.

00:11:38.960 --> 00:11:39.540
<v Simon Willison>Don't show that.

00:11:39.760 --> 00:11:40.640
<v Simon Willison>Change the color scheme.

00:11:40.980 --> 00:11:41.900
<v Simon Willison>All of that kind of stuff.

00:11:42.140 --> 00:11:44.540
<v Simon Willison>It's my version of Claude Artifacts.

00:11:44.780 --> 00:11:45.740
<v Michael Kennedy>Yeah, I was thinking of artifacts.

00:11:46.899 --> 00:11:49.120
<v Simon Willison>It's a straight rip off of Claude Artifacts,

00:11:49.280 --> 00:11:50.320
<v Simon Willison>except mine can talk to a database,

00:11:50.640 --> 00:11:51.020
<v Simon Willison>which

00:11:51.040 --> 00:11:52.080
<v Simon Willison>is super useful.

00:11:52.500 --> 00:11:54.600
<v Simon Willison>and it fits into the whole model of all it.

00:11:55.060 --> 00:11:58.800
<v Simon Willison>It feels coherent as a feature for data set to have

00:11:58.940 --> 00:12:01.700
<v Simon Willison>a sort of instantly vibe coded dashboard via chat.

00:12:02.060 --> 00:12:03.160
<v Simon Willison>So yeah, I'm very,

00:12:03.420 --> 00:12:04.000
<v Simon Willison>very excited

00:12:04.140 --> 00:12:05.540
<v Simon Willison>about the direction all of this is going at the moment.

00:12:05.820 --> 00:12:06.460
<v Michael Kennedy>Yeah, that's fantastic.

00:12:06.860 --> 00:12:09.740
<v Michael Kennedy>Can you deploy these data set apps somewhere?

00:12:10.520 --> 00:12:10.760
<v Simon Willison>Well,

00:12:11.200 --> 00:12:13.560
<v Simon Willison>so you can in as much as,

00:12:13.980 --> 00:12:15.360
<v Simon Willison>I mean, it's a hosted application.

00:12:16.040 --> 00:12:16.560
<v Simon Willison>At the moment,

00:12:16.740 --> 00:12:17.580
<v Simon Willison>they're private to you

00:12:17.580 --> 00:12:19.660
<v Simon Willison>and you can share them with other members of your instance.

00:12:20.240 --> 00:12:22.800
<v Simon Willison>There is a way to share them with the public.

00:12:23.120 --> 00:12:24.180
<v Simon Willison>It's a little bit janky.

00:12:24.320 --> 00:12:25.940
<v Simon Willison>I'm still figuring out the best UI for that.

00:12:26.280 --> 00:12:29.660
<v Simon Willison>This is, I mean, a problem that I'm having with data at the moment generally is the internet.

00:12:29.700 --> 00:12:31.420
<v Simon Willison>It's a really hostile place right now.

00:12:31.760 --> 00:12:34.180
<v Simon Willison>Like if you stick a data set instance up on,

00:12:34.340 --> 00:12:34.540
<v Simon Willison>say,

00:12:34.720 --> 00:12:36.360
<v Simon Willison>something like Google Cloud Run and you're not careful,

00:12:36.560 --> 00:12:44.460
<v Simon Willison>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.

00:12:44.820 --> 00:12:46.360
<v Simon Willison>And I'm trying to figure out what to do about that.

00:12:46.420 --> 00:12:54.500
<v Simon Willison>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.

00:12:54.750 --> 00:13:01.560
<v Simon Willison>But it's really frustrating because data sets entire goal initially was around publishing data and like making data available free online,

00:13:01.780 --> 00:13:03.360
<v Simon Willison>which was safe eight years ago.

00:13:03.730 --> 00:13:06.320
<v Simon Willison>And today it's only safe if you're careful.

00:13:06.350 --> 00:13:09.520
<v Simon Willison>You have to set up billing caps and you have to think carefully about optimizing.

00:13:09.580 --> 00:13:18.780
<v Simon Willison>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.

00:13:19.060 --> 00:13:20.100
<v Michael Kennedy>Not only from crawlers,

00:13:20.300 --> 00:13:24.360
<v Michael Kennedy>but there's so many security researchers really leaning into,

00:13:24.860 --> 00:13:28.660
<v Michael Kennedy>I'm just going to set up automation that just hammers everything and looks for cracks.

00:13:29.540 --> 00:13:37.880
<v Simon Willison>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.

00:13:38.540 --> 00:13:41.760
<v Simon Willison>And most of them were things that had been in the code base for years that I'd just never seen before.

00:13:42.280 --> 00:13:43.240
<v Simon Willison>And people reporting them.

00:13:43.460 --> 00:13:44.640
<v Simon Willison>I was running my own audits.

00:13:44.940 --> 00:13:46.960
<v Simon Willison>Like the security thing is very real right now.

00:13:47.120 --> 00:13:49.000
<v Simon Willison>If there is a security hole in a piece of software,

00:13:49.240 --> 00:13:53.960
<v Simon Willison>it's now very inexpensive to find it, which just means we have to try harder,

00:13:54.120 --> 00:13:54.320
<v Simon Willison>you know?

00:13:54.440 --> 00:13:56.600
<v Michael Kennedy>I would love your thoughts on this.

00:13:56.900 --> 00:13:58.980
<v Michael Kennedy>But I encourage people out there listening,

00:13:59.180 --> 00:14:02.520
<v Michael Kennedy>if you have a thing that is publicly accessible,

00:14:02.840 --> 00:14:03.220
<v Michael Kennedy>website,

00:14:03.440 --> 00:14:04.020
<v Michael Kennedy>API, whatever,

00:14:04.240 --> 00:14:06.780
<v Michael Kennedy>and you have access to high-end models,

00:14:07.780 --> 00:14:10.980
<v Michael Kennedy>OpenAI is Astra or Fable or even Opus.

00:14:11.340 --> 00:14:11.920
<v Michael Kennedy>Go to your code base.

00:14:11.920 --> 00:14:13.860
<v Simon Willison>Opus 5.5 is very good for this, yeah.

00:14:14.220 --> 00:14:15.080
<v Michael Kennedy>Yeah, it's very good.

00:14:15.260 --> 00:14:16.800
<v Michael Kennedy>And just go and say, I would like you,

00:14:17.090 --> 00:14:19.740
<v Michael Kennedy>I would like, this is my web app or my API or whatever.

00:14:20.140 --> 00:14:22.580
<v Michael Kennedy>Please look for, use the OWASP top 10,

00:14:23.060 --> 00:14:24.880
<v Michael Kennedy>go through it, find any issues you can,

00:14:25.070 --> 00:14:26.000
<v Michael Kennedy>because if you don't,

00:14:26.270 --> 00:14:28.220
<v Michael Kennedy>other people are already probably doing that.

00:14:28.380 --> 00:14:30.740
<v Simon Willison>I had the most frustrating experience with that.

00:14:30.800 --> 00:14:32.500
<v Simon Willison>Actually, that was with Opus 5.5.

00:14:32.820 --> 00:14:35.139
<v Simon Willison>I asked it to look for a specific category of security hole

00:14:35.580 --> 00:14:36.200
<v Simon Willison>and it replied,

00:14:36.420 --> 00:14:38.360
<v Simon Willison>I cannot show the answer to this question.

00:14:38.670 --> 00:14:39.140
<v Simon Willison>And I'm like,

00:14:39.480 --> 00:14:41.700
<v Simon Willison>oh, that means there is a security hole,

00:14:42.080 --> 00:14:43.480
<v Simon Willison>but you won't tell me what it is.

00:14:43.580 --> 00:14:44.160
<v Michael Kennedy>It's so frustrating.

00:14:44.190 --> 00:14:47.560
<v Michael Kennedy>I had this, I was going to say that Astra is really bad at this.

00:14:47.820 --> 00:14:48.980
<v Michael Kennedy>Like I was working with Astra.

00:14:49.080 --> 00:14:51.680
<v Michael Kennedy>I'm like, I would like you just to find like race conditions

00:14:52.060 --> 00:14:53.660
<v Michael Kennedy>and crashes in this app that I'm building,

00:14:53.770 --> 00:14:55.900
<v Michael Kennedy>this Rust core app that is a Python app.

00:14:56.110 --> 00:14:58.300
<v Michael Kennedy>And I'm really concerned because it does a lot of threading and locks.

00:14:58.350 --> 00:15:00.180
<v Michael Kennedy>I'm like, just if you look for deadlocks in these things,

00:15:00.400 --> 00:15:00.740
<v Michael Kennedy>and it goes,

00:15:01.330 --> 00:15:02.440
<v Michael Kennedy>this is fine, this is fine.

00:15:02.500 --> 00:15:03.320
<v Michael Kennedy>This might be a little problem.

00:15:03.680 --> 00:15:04.460
<v Michael Kennedy>Can't tell you this answer.

00:15:04.640 --> 00:15:11.040
<v Michael Kennedy>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

00:15:11.080 --> 00:15:14.660
<v Michael Kennedy>time to me right like now you have to find the problem but i'm not going to tell you what it is

00:15:15.040 --> 00:15:19.840
<v Simon Willison>so open ai and Anthropic both have programs you can sign up for as a trusted security researcher

00:15:20.080 --> 00:15:25.900
<v Simon Willison>i've got into one of the levels of the opening i want i'm in the daybreak blue but that which which

00:15:25.980 --> 00:15:30.059
<v Michael Kennedy>helps a little bit i've managed that's the defender is not the attacker it's not the red exactly

00:15:31.240 --> 00:15:32.900
<v Simon Willison>and that's a little bit better.

00:15:32.970 --> 00:15:34.540
<v Simon Willison>I haven't managed to get into the Anthropic one of those.

00:15:34.720 --> 00:15:36.680
<v Simon Willison>I've got lost in the bureaucracy around it.

00:15:37.420 --> 00:15:39.320
<v Simon Willison>But or you can just switch the Chinese models.

00:15:39.600 --> 00:15:42.200
<v Simon Willison>GLM 5.3 doesn't have any of this behavior

00:15:42.410 --> 00:15:44.140
<v Simon Willison>and is very good at finding security holes.

00:15:44.530 --> 00:15:46.980
<v Simon Willison>So you can point that at your code base and off you go.

00:15:47.120 --> 00:15:48.620
<v Simon Willison>But yeah, the security thing has been

00:15:48.760 --> 00:15:50.520
<v Simon Willison>one of the major themes of 2026,

00:15:50.920 --> 00:15:51.040
<v Simon Willison>definitely.

00:15:51.760 --> 00:15:53.660
<v Michael Kennedy>I think it's right now rough and tumble.

00:15:53.770 --> 00:15:54.520
<v Michael Kennedy>I think in the end,

00:15:54.620 --> 00:15:56.080
<v Michael Kennedy>we're going to end up with more secure software

00:15:56.230 --> 00:15:56.660
<v Michael Kennedy>because of it,

00:15:56.820 --> 00:15:57.280
<v Michael Kennedy>but it's...

00:15:57.660 --> 00:15:59.500
<v Simon Willison>It's going to be tough on the way there,

00:15:59.720 --> 00:15:59.920
<v Simon Willison>isn't it?

00:16:00.180 --> 00:16:00.360
<v Simon Willison>Because,

00:16:00.560 --> 00:16:06.080
<v Simon Willison>yeah, my optimistic take on this is I think any piece of software has a finite number of security holes,

00:16:06.500 --> 00:16:08.460
<v Simon Willison>which means it's possible to find and shut them all down.

00:16:08.860 --> 00:16:14.240
<v Simon Willison>And so if we go through a bit of pain and we throw enough like model compute at it, we can get more.

00:16:14.430 --> 00:16:17.080
<v Simon Willison>The catch is that doesn't help us with the patching.

00:16:17.380 --> 00:16:21.360
<v Simon Willison>Like if there's a million smart fridges out there running insecure firmware,

00:16:21.980 --> 00:16:23.900
<v Simon Willison>somebody's got to go and upgrade a million fridges.

00:16:24.360 --> 00:16:25.980
<v Simon Willison>You know, that's always been difficult.

00:16:26.130 --> 00:16:28.640
<v Simon Willison>And now it's like crisis levels of difficulty.

00:16:28.880 --> 00:16:34.960
<v Michael Kennedy>The only time people update them is when they realize the refrigerator is super hot and all of their samples have gone.

00:16:35.160 --> 00:16:36.940
<v Michael Kennedy>You know, the French thing that just happened or whatever.

00:16:37.200 --> 00:16:37.320
<v Simon Willison>Oh,

00:16:37.500 --> 00:16:37.760
<v Simon Willison>God.

00:16:38.030 --> 00:16:39.600
<v Simon Willison>All of that stuff is just terrifying.

00:16:39.840 --> 00:16:39.900
<v Simon Willison>Yeah.

00:16:41.160 --> 00:16:42.200
<v Michael Kennedy>Pardon the interruption, everyone.

00:16:42.390 --> 00:16:45.820
<v Michael Kennedy>I want to take a moment and tell you about our membership program.

00:16:46.540 --> 00:16:47.720
<v Michael Kennedy>Add free podcast episode,

00:16:48.070 --> 00:16:52.160
<v Michael Kennedy>a private Discord channel with many of the guests you've heard on the show and most relevant right now,

00:16:52.510 --> 00:16:53.760
<v Michael Kennedy>a monthly tech meetup.

00:16:54.240 --> 00:16:56.380
<v Michael Kennedy>We just finished this month's meetup.

00:16:56.780 --> 00:16:57.040
<v Michael Kennedy>Don't worry.

00:16:57.160 --> 00:16:57.520
<v Michael Kennedy>It's recorded.

00:16:57.570 --> 00:16:58.440
<v Michael Kennedy>You can watch it anytime.

00:16:58.660 --> 00:16:59.600
<v Michael Kennedy>if you didn't catch it live.

00:16:59.920 --> 00:17:01.620
<v Michael Kennedy>This meetup was an eye-opener.

00:17:01.940 --> 00:17:02.360
<v Michael Kennedy>It's entitled,

00:17:02.820 --> 00:17:07.199
<v Michael Kennedy>SQLite Might Actually Be All You Need, presented by me. Here's a quick overview.

00:17:07.980 --> 00:17:10.680
<v Michael Kennedy>The talk dives into running SQLite in production and why,

00:17:11.079 --> 00:17:11.420
<v Michael Kennedy>surprisingly,

00:17:11.720 --> 00:17:12.860
<v Michael Kennedy>it might be one of the best

00:17:13.380 --> 00:17:15.480
<v Michael Kennedy>production databases you can choose.

00:17:15.920 --> 00:17:17.620
<v Michael Kennedy>Here's something I haven't really talked about yet

00:17:17.819 --> 00:17:18.180
<v Michael Kennedy>on the show.

00:17:18.860 --> 00:17:21.100
<v Michael Kennedy>Talk Python doesn't run on MongoDB anymore.

00:17:21.300 --> 00:17:22.480
<v Michael Kennedy>After years on Mongo,

00:17:22.760 --> 00:17:24.180
<v Michael Kennedy>I moved most of

00:17:24.160 --> 00:17:25.319
<v Michael Kennedy>sites to SQLite.

00:17:25.800 --> 00:17:29.500
<v Michael Kennedy>The database many people file under fine for prototypes and phone apps,

00:17:29.900 --> 00:17:30.060
<v Michael Kennedy>but

00:17:30.200 --> 00:17:33.820
<v Michael Kennedy>that's pretty much it. I knew an in-process database had some speed advantages.

00:17:34.050 --> 00:17:34.540
<v Michael Kennedy>I didn't

00:17:34.780 --> 00:17:37.320
<v Michael Kennedy>expect it to be 40 to 300 times faster.

00:17:37.840 --> 00:17:40.140
<v Michael Kennedy>Then there's that question that scares people off.

00:17:40.760 --> 00:17:42.300
<v Michael Kennedy>What happens when the server dies?

00:17:42.660 --> 00:17:43.480
<v Michael Kennedy>It's just the file,

00:17:43.700 --> 00:17:45.820
<v Michael Kennedy>right? This is where the big surprises live.

00:17:46.400 --> 00:17:47.300
<v Michael Kennedy>So come a member,

00:17:47.820 --> 00:17:51.920
<v Michael Kennedy>watch this and other tech talks at talkpython.fm/meetups.

00:17:52.140 --> 00:17:53.320
<v Michael Kennedy>It starts for as

00:17:53.300 --> 00:17:54.860
<v Michael Kennedy>little as $5 a month.

00:17:55.030 --> 00:17:56.960
<v Michael Kennedy>The community is growing and I hope to see you there.

00:17:57.520 --> 00:17:58.640
<v Michael Kennedy>That's talkpython.fm

00:17:58.890 --> 00:17:59.700
<v Michael Kennedy>slash meetups.

00:18:00.240 --> 00:18:00.700
<v Michael Kennedy>All right,

00:18:00.900 --> 00:18:03.060
<v Michael Kennedy>let's go back to a data set for a minute. They said I said apps.

00:18:03.820 --> 00:18:08.540
<v Michael Kennedy>Have you explored working with Pyodide? I just had the Cloudflare team.

00:18:08.840 --> 00:18:09.400
<v Michael Kennedy>Yeah, I just had the

00:18:09.600 --> 00:18:14.160
<v Michael Kennedy>Cloudflare team on talking about Cloudflare Python web work or Python workers.

00:18:14.820 --> 00:18:15.560
<v Michael Kennedy>And that's all based

00:18:15.570 --> 00:18:19.560
<v Michael Kennedy>on Pyodide and has, you know, SQLite through there was a D2 or whatever.

00:18:20.060 --> 00:18:20.240
<v Simon Willison>Okay.

00:18:20.620 --> 00:18:21.900
<v Michael Kennedy>Or they're durable.

00:18:21.980 --> 00:18:22.500
<v Michael Kennedy>Anyway,

00:18:22.660 --> 00:18:24.700
<v Michael Kennedy>there's some interesting stuff, I think, around like,

00:18:25.040 --> 00:18:26.260
<v Michael Kennedy>because that solves your cost problem,

00:18:26.700 --> 00:18:26.800
<v Michael Kennedy>right?

00:18:27.120 --> 00:18:28.220
<v Simon Willison>I've got a fun trick for you.

00:18:28.400 --> 00:18:29.500
<v Simon Willison>Go to my blog,

00:18:29.780 --> 00:18:31.200
<v Simon Willison>simonwilson.net, right now.

00:18:31.520 --> 00:18:32.360
<v Simon Willison>I literally,

00:18:33.020 --> 00:18:33.580
<v Simon Willison>just the second,

00:18:33.820 --> 00:18:37.620
<v Simon Willison>clicked publish on my blog entry about the new version of dataset that runs in Pyodide.

00:18:37.900 --> 00:18:38.220
<v Michael Kennedy>What?

00:18:38.640 --> 00:18:39.660
<v Michael Kennedy>I did not even read it.

00:18:39.660 --> 00:18:40.360
<v Michael Kennedy>I did not read it.

00:18:40.400 --> 00:18:41.820
<v Michael Kennedy>I really didn't know this was coming.

00:18:41.840 --> 00:18:43.500
<v Simon Willison>No, no, it wasn't out.

00:18:43.620 --> 00:18:45.060
<v Simon Willison>I just published it.

00:18:45.780 --> 00:18:47.000
<v Simon Willison>This is not a setup.

00:18:47.280 --> 00:18:48.760
<v Simon Willison>This was not planned.

00:18:49.140 --> 00:18:49.420
<v Simon Willison>But yeah,

00:18:50.190 --> 00:18:52.080
<v Simon Willison>so for four years now,

00:18:52.460 --> 00:18:54.500
<v Simon Willison>I've had this thing called Dataset Lite,

00:18:55.120 --> 00:18:58.340
<v Simon Willison>which is a version of Dataset that runs in Pyodide in a browser.

00:18:58.690 --> 00:19:00.460
<v Simon Willison>And it was a little bit janky and a bit hacky.

00:19:00.760 --> 00:19:04.920
<v Simon Willison>I've just announced a brand new version of it, which fixes all of the janky hacks.

00:19:05.180 --> 00:19:06.920
<v Simon Willison>And if you scroll down on that page,

00:19:07.120 --> 00:19:09.180
<v Simon Willison>there should be an example link a little bit lower.

00:19:09.860 --> 00:19:09.940
<v Simon Willison>Yeah,

00:19:10.100 --> 00:19:11.900
<v Simon Willison>click that link and see what happens.

00:19:12.560 --> 00:19:13.040
<v Simon Willison>So here we go.

00:19:13.180 --> 00:19:14.940
<v Simon Willison>This is entirely happening in your browser.

00:19:15.380 --> 00:19:17.520
<v Simon Willison>It's loading Pyodide and Dataset in a plugin.

00:19:17.800 --> 00:19:18.560
<v Simon Willison>And now if you scroll down,

00:19:18.800 --> 00:19:26.320
<v Simon Willison>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,

00:19:26.490 --> 00:19:27.200
<v Simon Willison>all of that kind of stuff.

00:19:27.540 --> 00:19:29.700
<v Simon Willison>But this all happens in WebAssembly.

00:19:30.160 --> 00:19:32.320
<v Simon Willison>And I am so excited about this.

00:19:32.560 --> 00:19:35.380
<v Simon Willison>There's even a feature with this thing that you can add to the URL,

00:19:35.790 --> 00:19:36.120
<v Simon Willison>question mark,

00:19:36.420 --> 00:19:37.720
<v Simon Willison>ref equals main,

00:19:37.970 --> 00:19:44.120
<v Simon Willison>and you'll get data set pulled from the GitHub repository on the main branch or ref equals like a PR issue or whatever.

00:19:44.600 --> 00:19:46.620
<v Simon Willison>You can tell it to load different versions of SQLite.

00:19:46.660 --> 00:19:46.920
<v Simon Willison>You can say,

00:19:47.160 --> 00:19:53.120
<v Simon Willison>"I want SQLite 3.50.1 from six months ago," and it'll load that in as well.

00:19:54.120 --> 00:19:56.100
<v Simon Willison>So it's the perfect preview environment.

00:19:57.040 --> 00:19:57.940
<v Simon Willison>In the past,

00:19:58.120 --> 00:20:00.020
<v Simon Willison>I've always struggled where I'd love every

00:20:00.260 --> 00:20:04.000
<v Simon Willison>PR to come with a link that you click that gives you a preview environment.

00:20:04.540 --> 00:20:05.160
<v Simon Willison>But if that's a server

00:20:05.340 --> 00:20:05.680
<v Simon Willison>side app,

00:20:05.880 --> 00:20:06.860
<v Simon Willison>you've got to think about, "Okay,

00:20:07.060 --> 00:20:08.700
<v Simon Willison>what server is that provisioned on?

00:20:08.880 --> 00:20:09.500
<v Simon Willison>How long does it

00:20:09.600 --> 00:20:10.880
<v Simon Willison>run for? How much is it going to cost?

00:20:11.500 --> 00:20:13.059
<v Simon Willison>How long will it take to start up?"

00:20:12.980 --> 00:20:15.340
<v Michael Kennedy>But if it goes away and like, yeah, the permits of it.

00:20:15.340 --> 00:20:15.920
<v Michael Kennedy>All of that kind of stuff.

00:20:16.460 --> 00:20:19.120
<v Simon Willison>If it's HTML and JavaScript, if it's a static page,

00:20:19.520 --> 00:20:20.220
<v Simon Willison>none of that matters.

00:20:20.500 --> 00:20:21.880
<v Simon Willison>Like it's all just static files.

00:20:22.440 --> 00:20:27.640
<v Simon Willison>So this means that I can now have preview environments for anything and they're free.

00:20:28.040 --> 00:20:29.960
<v Simon Willison>Like Dataset Lite is hosted on GitHub pages.

00:20:30.120 --> 00:20:31.660
<v Simon Willison>I'm not even paying for the static hosting.

00:20:32.120 --> 00:20:32.640
<v Simon Willison>It's amazing,

00:20:32.900 --> 00:20:33.020
<v Simon Willison>right?

00:20:33.260 --> 00:20:37.460
<v Simon Willison>The blog entry I just put live, one of the things it says is I want the entire Python

00:20:37.740 --> 00:20:38.660
<v Simon Willison>ecosystem doing this.

00:20:38.780 --> 00:20:42.299
<v Simon Willison>Like when you're working on a Django PR, why shouldn't there be a little link that loads

00:20:42.320 --> 00:20:47.660
<v Simon Willison>up a WebAssembly Pyodide Django at that branch that lets you explore the new features.

00:20:48.780 --> 00:20:51.100
<v Simon Willison>It's unbelievable how good Pyodide...

00:20:51.600 --> 00:20:53.780
<v Simon Willison>Pyodide's been incredible for nearly a decade now.

00:20:54.360 --> 00:20:55.440
<v Simon Willison>That's amazing.

00:20:55.880 --> 00:20:59.580
<v Simon Willison>I always tell people I think it's one of the most underappreciated pieces of the entire

00:20:59.720 --> 00:21:00.260
<v Simon Willison>Python ecosystem.

00:21:01.520 --> 00:21:04.260
<v Simon Willison>It's not just that you can run Python in WebAssembly in a browser,

00:21:04.660 --> 00:21:05.220
<v Simon Willison>but they've ported all

00:21:05.220 --> 00:21:08.120
<v Simon Willison>of the libraries, like NumPy and SciPy and everything works too.

00:21:08.540 --> 00:21:10.300
<v Simon Willison>Jupyter runs entirely in a browser.

00:21:10.960 --> 00:21:13.180
<v Simon Willison>Now I've got all of Dataset winning the browser as well.

00:21:13.560 --> 00:21:14.220
<v Simon Willison>It's so cool.

00:21:14.480 --> 00:21:15.340
<v Michael Kennedy>That's really impressive.

00:21:15.460 --> 00:21:15.960
<v Michael Kennedy>I love it.

00:21:16.100 --> 00:21:16.420
<v Michael Kennedy>I love it.

00:21:16.420 --> 00:21:16.880
<v Michael Kennedy>And you're right.

00:21:16.880 --> 00:21:18.380
<v Michael Kennedy>The free static hosting,

00:21:18.620 --> 00:21:19.520
<v Michael Kennedy>there are many options.

00:21:19.760 --> 00:21:20.680
<v Michael Kennedy>Like you've got GitHub Pages,

00:21:20.940 --> 00:21:22.300
<v Michael Kennedy>you've got Netlify,

00:21:22.640 --> 00:21:25.700
<v Michael Kennedy>Cloudflare has got really good free options as well.

00:21:26.340 --> 00:21:26.580
<v Simon Willison>Absolutely.

00:21:27.180 --> 00:21:28.960
<v Simon Willison>And it's immune to AI scrapers.

00:21:29.040 --> 00:21:35.400
<v Simon Willison>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.

00:21:35.720 --> 00:21:35.960
<v Michael Kennedy>Yeah.

00:21:36.280 --> 00:21:36.700
<v Michael Kennedy>Sidebar.

00:21:37.640 --> 00:21:38.340
<v Michael Kennedy>As a web person,

00:21:38.500 --> 00:21:39.480
<v Michael Kennedy>what do you think about this?

00:21:39.680 --> 00:21:41.320
<v Michael Kennedy>We have WebAssembly.

00:21:41.420 --> 00:21:43.000
<v Michael Kennedy>We have these great runtimes.

00:21:43.920 --> 00:21:46.680
<v Michael Kennedy>We've got Pyodide on the C# side.

00:21:47.560 --> 00:21:51.580
<v Michael Kennedy>We've got Blazor that runs C# in WebAssembly.

00:21:51.960 --> 00:21:54.600
<v Michael Kennedy>I really would love to see web browsers,

00:21:55.080 --> 00:21:55.840
<v Michael Kennedy>basically Chrome,

00:21:56.120 --> 00:21:56.560
<v Michael Kennedy>Firefox,

00:21:56.720 --> 00:21:57.280
<v Michael Kennedy>and Safari.

00:21:57.440 --> 00:21:58.300
<v Michael Kennedy>That's all you really need.

00:21:58.500 --> 00:22:03.080
<v Michael Kennedy>Have some kind of support for a single definitive Pyodide,

00:22:03.440 --> 00:22:03.760
<v Michael Kennedy>Blazor,

00:22:04.220 --> 00:22:04.460
<v Michael Kennedy>Ruby,

00:22:05.060 --> 00:22:06.300
<v Michael Kennedy>on Wasm, or whatever the heck.

00:22:06.460 --> 00:22:11.180
<v Michael Kennedy>I think if we could have this part of your browser in a way,

00:22:11.520 --> 00:22:13.560
<v Michael Kennedy>wouldn't it be great that you don't have to like,

00:22:14.020 --> 00:22:15.380
<v Michael Kennedy>everyone installs the little start thing.

00:22:15.380 --> 00:22:15.900
<v Michael Kennedy>I mean, it's tricky.

00:22:16.100 --> 00:22:17.740
<v Simon Willison>We had this with SQLite.

00:22:17.920 --> 00:22:20.560
<v Simon Willison>There was the WebSQL proposal about 10 years ago.

00:22:22.080 --> 00:22:25.500
<v Simon Willison>And Chrome shipped SQLite baked into the browser with APIs.

00:22:25.910 --> 00:22:29.580
<v Simon Willison>And Mozilla refused to ship it because they said it was bad for web standards

00:22:29.750 --> 00:22:34.260
<v Simon Willison>to have just one specific variant of SQL that becomes the standard.

00:22:34.540 --> 00:22:42.400
<v Simon Willison>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.

00:22:42.570 --> 00:22:44.600
<v Simon Willison>So actually, if you want to do SQLite in the browser,

00:22:45.060 --> 00:22:47.740
<v Simon Willison>it's less than a big hero image to download that.

00:22:47.960 --> 00:22:48.040
<v Michael Kennedy>Oh,

00:22:48.220 --> 00:22:49.000
<v Michael Kennedy>that'd be fine. Yeah.

00:22:49.380 --> 00:22:52.700
<v Simon Willison>Like Pyodide is more like sort of five or six megabytes,

00:22:53.560 --> 00:22:55.700
<v Simon Willison>which used to be a pretty big deal.

00:22:55.840 --> 00:22:56.140
<v Simon Willison>These days,

00:22:56.560 --> 00:22:59.140
<v Simon Willison>show me a website that isn't five or six megabytes.

00:22:59.330 --> 00:22:59.660
<v Simon Willison>Yeah, for sure.

00:22:59.920 --> 00:23:03.360
<v Simon Willison>I love my websites to be under 100 kilobytes,

00:23:03.620 --> 00:23:07.060
<v Simon Willison>but it does feel like the pain is less real.

00:23:07.280 --> 00:23:08.100
<v Simon Willison>The biggest problem,

00:23:08.380 --> 00:23:08.720
<v Simon Willison>to be honest,

00:23:08.920 --> 00:23:10.340
<v Simon Willison>is the CDN thing,

00:23:10.720 --> 00:23:14.720
<v Simon Willison>where it used to be that you could load something like Pyodide from a CDN just once,

00:23:15.160 --> 00:23:18.680
<v Simon Willison>and then it would stay cached, and any other website that used it would benefit from that cache.

00:23:19.140 --> 00:23:22.200
<v Simon Willison>All of the browsers had to get rid of that feature a few years ago for privacy reasons,

00:23:22.560 --> 00:23:27.240
<v Simon Willison>because it turned out websites could spy on each other just by loading an asset saying,

00:23:27.440 --> 00:23:29.100
<v Simon Willison>oh, well, that loaded in like a split second.

00:23:29.300 --> 00:23:32.160
<v Simon Willison>That means that the user has already been to this other site.

00:23:32.660 --> 00:23:34.260
<v Simon Willison>And I don't know if that's solvable.

00:23:34.480 --> 00:23:38.200
<v Simon Willison>Like I'd love to have maybe an allow listed sort of like,

00:23:38.500 --> 00:23:42.520
<v Simon Willison>there's a rule that says that the CDN for these projects is allowed to skip those rules.

00:23:42.560 --> 00:23:45.180
<v Simon Willison>I just don't know if you can do it without the privacy violations.

00:23:45.740 --> 00:23:48.440
<v Simon Willison>But the internet keeps on getting faster and the stuff gets more efficient.

00:23:48.800 --> 00:23:50.780
<v Simon Willison>So it's like Dataset Lite.

00:23:50.860 --> 00:23:51.800
<v Simon Willison>When I first launched it,

00:23:52.040 --> 00:23:53.500
<v Simon Willison>it was genuinely meant as a joke.

00:23:54.220 --> 00:23:54.560
<v Simon Willison>I thought,

00:23:55.080 --> 00:23:55.320
<v Simon Willison>like,

00:23:55.620 --> 00:23:57.320
<v Simon Willison>Dataset is a server-side web application.

00:23:57.960 --> 00:24:01.700
<v Simon Willison>Running a server-side web application entirely in the browser is just funny.

00:24:01.960 --> 00:24:04.780
<v Simon Willison>It's like a fun, in the whole sort of SBA battles,

00:24:05.070 --> 00:24:07.320
<v Simon Willison>there was this idea that you could do that, amuse me.

00:24:07.490 --> 00:24:08.620
<v Simon Willison>And I never thought it would be useful

00:24:08.830 --> 00:24:10.060
<v Simon Willison>because it was like a six, seven,

00:24:10.310 --> 00:24:12.240
<v Simon Willison>eight megabyte load for it to start working.

00:24:12.680 --> 00:24:15.980
<v Simon Willison>And then people started using it because it turns out the flexibility of it,

00:24:15.980 --> 00:24:19.960
<v Simon Willison>the fact that it can load, you can give it a URL to a CSV or JSON file on GitHub

00:24:20.050 --> 00:24:21.660
<v Simon Willison>and it'll load those up and put them in the table.

00:24:22.060 --> 00:24:23.360
<v Simon Willison>It turned out to be really useful.

00:24:23.800 --> 00:24:25.440
<v Simon Willison>And now this new version I've just launched,

00:24:25.620 --> 00:24:27.080
<v Simon Willison>which fills in all of the gaps

00:24:27.220 --> 00:24:29.240
<v Simon Willison>and anything that Dataset can do runs in this,

00:24:29.340 --> 00:24:30.440
<v Simon Willison>I'm going to be using this all the time.

00:24:30.700 --> 00:24:32.480
<v Simon Willison>Like this is going to be my new preview environment.

00:24:32.800 --> 00:24:34.280
<v Simon Willison>If I'm sending somebody data,

00:24:34.620 --> 00:24:37.080
<v Simon Willison>I'll send them a link to Dataset Light loading in that data.

00:24:37.360 --> 00:24:38.780
<v Simon Willison>It just feels right to me.

00:24:39.060 --> 00:24:40.400
<v Michael Kennedy>Yeah, it's definitely becoming more,

00:24:40.740 --> 00:24:43.000
<v Michael Kennedy>no big deal to just load that stuff up, right?

00:24:43.280 --> 00:24:43.380
<v Simon Willison>Yeah.

00:24:43.720 --> 00:24:44.700
<v Michael Kennedy>Yeah, it's very exciting.

00:24:45.100 --> 00:24:46.280
<v Michael Kennedy>And we'll see where it goes,

00:24:46.480 --> 00:24:47.680
<v Michael Kennedy>but I think there's a lot of possibility

00:24:47.840 --> 00:24:49.040
<v Michael Kennedy>for Python on the front end.

00:24:49.240 --> 00:24:50.520
<v Simon Willison>One last thing on WebAssembly,

00:24:50.800 --> 00:24:51.680
<v Simon Willison>big change this year,

00:24:52.100 --> 00:24:53.580
<v Simon Willison>is that you can now publish,

00:24:53.930 --> 00:24:55.980
<v Simon Willison>if you've got a C or Rust extension,

00:24:56.280 --> 00:24:58.340
<v Simon Willison>you can compile it to WebAssembly

00:24:58.450 --> 00:24:59.540
<v Simon Willison>so it runs in Pyodide.

00:24:59.950 --> 00:25:00.740
<v Simon Willison>And as of,

00:25:00.980 --> 00:25:03.620
<v Simon Willison>I think, April this year, you can upload those to PyPI

00:25:04.050 --> 00:25:05.280
<v Simon Willison>and then pip install works.

00:25:05.530 --> 00:25:08.800
<v Simon Willison>So now it used to be that if you had something like NumPy,

00:25:09.120 --> 00:25:13.880
<v Simon Willison>the Pyodide team themselves had to build a special compiled version and bundle it with Pyodide,

00:25:14.110 --> 00:25:16.220
<v Simon Willison>and it sort of like slowed down all of that stuff.

00:25:16.510 --> 00:25:18.660
<v Simon Willison>And now I can just, I've done this now,

00:25:18.800 --> 00:25:25.520
<v Simon Willison>I've shipped wheels to PyPI where there's a wheel for Python and a wheel for Mac Python and a wheel for Pyodide.

00:25:25.740 --> 00:25:26.220
<v Simon Willison>And it works.

00:25:26.620 --> 00:25:27.860
<v Simon Willison>And this frees us up.

00:25:27.880 --> 00:25:34.840
<v Simon Willison>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.

00:25:35.120 --> 00:25:35.440
<v Michael Kennedy>Incredible.

00:25:35.860 --> 00:25:41.820
<v Michael Kennedy>I spoke to Hood and Jay and Dominic on the Cloudflare episode.

00:25:42.240 --> 00:25:45.300
<v Michael Kennedy>Two of those guys are maintainers of Pyodide.

00:25:45.500 --> 00:25:45.720
<v Simon Willison>Right.

00:25:46.080 --> 00:25:46.440
<v Simon Willison>My heroes.

00:25:47.300 --> 00:25:47.900
<v Michael Kennedy>They're awesome.

00:25:48.340 --> 00:25:50.940
<v Michael Kennedy>And they were talking about how they would have to go and build,

00:25:51.870 --> 00:26:01.880
<v Michael Kennedy>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.

00:26:01.960 --> 00:26:05.340
<v Michael Kennedy>And since this PEP came out, a lot of that stuff is just going straight through PyPI.

00:26:05.490 --> 00:26:06.400
<v Michael Kennedy>They don't have to build it.

00:26:06.400 --> 00:26:07.180
<v Michael Kennedy>And it's way better.

00:26:07.500 --> 00:26:08.180
<v Simon Willison>Isn't it fantastic?

00:26:08.630 --> 00:26:08.760
<v Simon Willison>Yeah.

00:26:08.940 --> 00:26:12.560
<v Simon Willison>Like if you have not explored the Pyodide side of things,

00:26:13.100 --> 00:26:14.200
<v Simon Willison>now is the time to do it.

00:26:14.280 --> 00:26:15.480
<v Simon Willison>Like it's just so,

00:26:16.000 --> 00:26:17.880
<v Simon Willison>so impressive how much stuff you can get done with it.

00:26:18.280 --> 00:26:18.300
<v Michael Kennedy>Well,

00:26:18.500 --> 00:26:21.240
<v Michael Kennedy>that was way more stuff on Dataset than I was thinking.

00:26:23.280 --> 00:26:25.060
<v Simon Willison>It's a good time to be talking about it.

00:26:25.720 --> 00:26:27.000
<v Simon Willison>It's the last few weeks.

00:26:27.960 --> 00:26:31.940
<v Simon Willison>I need to chart my contributions because they're on an exponential curve at the moment.

00:26:32.800 --> 00:26:36.640
<v Michael Kennedy>Yeah, you're creating so many little tools and projects and posts and stuff.

00:26:36.740 --> 00:26:38.540
<v Michael Kennedy>It's really neat to see all the work coming out of there.

00:26:39.120 --> 00:26:40.260
<v Michael Kennedy>Maybe just real quick,

00:26:40.860 --> 00:26:41.900
<v Michael Kennedy>tell us about LLM.

00:26:42.140 --> 00:26:45.660
<v Michael Kennedy>I know you mentioned it, but I know this is a really big project of yours as well.

00:26:46.620 --> 00:26:48.520
<v Michael Kennedy>almost 13,000 GitHub stars.

00:26:48.760 --> 00:26:49.160
<v Michael Kennedy>That's a big deal.

00:26:49.200 --> 00:26:49.280
<v Michael Kennedy>Oh,

00:26:49.520 --> 00:26:49.680
<v Simon Willison>wow.

00:26:50.160 --> 00:26:50.500
<v Simon Willison>Good Lord.

00:26:50.580 --> 00:26:51.760
<v Simon Willison>I haven't looked at the star counts.

00:26:52.160 --> 00:26:54.400
<v Michael Kennedy>12,769 unless I refresh it.

00:26:54.420 --> 00:26:54.640
<v Michael Kennedy>That's pretty good.

00:26:55.100 --> 00:26:55.440
<v Michael Kennedy>Let's see.

00:26:55.800 --> 00:26:55.860
<v Michael Kennedy>Nope.

00:26:56.600 --> 00:26:56.720
<v Michael Kennedy>Nope.

00:26:57.920 --> 00:26:58.800
<v Simon Willison>So this project,

00:26:59.180 --> 00:27:00.120
<v Simon Willison>there's a little part.

00:27:00.160 --> 00:27:01.280
<v Simon Willison>I started this a few years ago,

00:27:01.580 --> 00:27:03.020
<v Simon Willison>back in the sort of GPT,

00:27:03.340 --> 00:27:05.060
<v Simon Willison>ChatGPT, GPT-4 era,

00:27:05.540 --> 00:27:08.480
<v Simon Willison>because I was looking at language models and I said,

00:27:08.560 --> 00:27:08.940
<v Simon Willison>you know what?

00:27:09.200 --> 00:27:10.440
<v Simon Willison>These feel very Unix-y to me.

00:27:10.500 --> 00:27:12.320
<v Simon Willison>There's a prompt, there's input, and there's output.

00:27:12.740 --> 00:27:14.159
<v Simon Willison>Wouldn't it be great if on the command line

00:27:14.180 --> 00:27:15.660
<v Simon Willison>you could type LLM space,

00:27:16.440 --> 00:27:16.500
<v Simon Willison>quote,

00:27:16.840 --> 00:27:19.460
<v Simon Willison>tell me the fifth moon of Mars or whatever,

00:27:19.680 --> 00:27:20.840
<v Simon Willison>and get the result back

00:27:21.020 --> 00:27:21.880
<v Simon Willison>on your console.

00:27:22.100 --> 00:27:25.100
<v Simon Willison>And at the time, I was the only person really messing around with command line

00:27:25.300 --> 00:27:26.960
<v Simon Willison>tools and language models.

00:27:27.520 --> 00:27:30.800
<v Simon Willison>And so I built this thing. I also noticed that the three-letter acronym

00:27:31.240 --> 00:27:35.140
<v Simon Willison>LLM hadn't been taken on PyPI yet. I'm like, oh, that would be cool. That's incredible,

00:27:35.500 --> 00:27:35.620
<v Michael Kennedy>actually.

00:27:35.860 --> 00:27:36.900
<v Simon Willison>Great to get that one. It's,

00:27:37.100 --> 00:27:37.160
<v Simon Willison>yeah.

00:27:37.860 --> 00:27:40.779
<v Simon Willison>So I built it, and it was inspired by Datasit, and it's very

00:27:40.800 --> 00:27:41.360
<v Simon Willison>plug-in driven.

00:27:41.550 --> 00:27:45.440
<v Simon Willison>So you've got plug-ins that add support for other providers and other models and

00:27:45.670 --> 00:27:46.600
<v Simon Willison>all of that kind of stuff.

00:27:46.920 --> 00:27:48.180
<v Simon Willison>And with hindsight,

00:27:48.440 --> 00:27:50.680
<v Simon Willison>I should have doubled down on this because then

00:27:51.020 --> 00:27:54.000
<v Simon Willison>I was like, oh, isn't it interesting to have LLMs in your terminal?

00:27:54.190 --> 00:27:54.640
<v Simon Willison>And then of course,

00:27:55.020 --> 00:28:00.260
<v Simon Willison>Claude Code came along a few years later and is worth half a trillion dollars or something.

00:28:00.730 --> 00:28:04.000
<v Simon Willison>So maybe I should have commercialized something on top of this.

00:28:04.670 --> 00:28:05.100
<v Simon Willison>But anyway,

00:28:06.000 --> 00:28:06.699
<v Simon Willison>LLM is actually two

00:28:06.720 --> 00:28:06.840
<v Simon Willison>things.

00:28:07.000 --> 00:28:09.700
<v Simon Willison>It's a command line tool, so you type LLM quote your prompt,

00:28:09.920 --> 00:28:10.760
<v Simon Willison>and then at the end you can say

00:28:11.040 --> 00:28:12.420
<v Simon Willison>dash M and select a model.

00:28:12.620 --> 00:28:16.020
<v Simon Willison>You can say run this against Claude 4.5 or OpenAI whatever,

00:28:16.360 --> 00:28:16.720
<v Simon Willison>and that

00:28:16.960 --> 00:28:17.360
<v Simon Willison>all works.

00:28:18.460 --> 00:28:22.100
<v Simon Willison>And everything gets logged to SQLite, which is the other connection to data sets. So you

00:28:22.140 --> 00:28:27.380
<v Simon Willison>can build up like SQLite logs of every prompt you've ever used, which is great for comparing

00:28:27.540 --> 00:28:29.040
<v Simon Willison>different models and all of that kind of thing.

00:28:29.260 --> 00:28:30.940
<v Simon Willison>And the other thing it is, is a Python library,

00:28:31.580 --> 00:28:33.020
<v Simon Willison>because a lot of my, a lot of my,

00:28:33.260 --> 00:28:35.060
<v Simon Willison>this is a theme in a bunch of my projects now actually,

00:28:35.380 --> 00:28:35.540
<v Simon Willison>is

00:28:35.800 --> 00:28:37.900
<v Simon Willison>They're both a Python library and a command line tool.

00:28:38.150 --> 00:28:41.300
<v Simon Willison>And anything you can do in the command line tool, you can do in the Python library and vice versa.

00:28:41.680 --> 00:28:46.480
<v Simon Willison>So LLM ended up evolving into effectively an abstraction layer over all of the different models,

00:28:47.540 --> 00:28:52.300
<v Simon Willison>which is quite a complicated thing to build because the models keep on inventing new features

00:28:52.510 --> 00:28:55.100
<v Simon Willison>that you have to adopt into that abstraction layer.

00:28:55.440 --> 00:28:56.900
<v Simon Willison>Most importantly, it handles tool calling.

00:28:57.090 --> 00:29:03.160
<v Simon Willison>So you can build a system where the models can call tools to run extra code or look things up,

00:29:03.340 --> 00:29:03.440
<v Simon Willison>whatever.

00:29:03.940 --> 00:29:06.720
<v Simon Willison>And that'll work against all of the models that LLM has plugins for.

00:29:07.080 --> 00:29:08.860
<v Simon Willison>And this is what enabled Dataset Agent.

00:29:09.060 --> 00:29:11.200
<v Simon Willison>Like Dataset Agent is built on top of LLM,

00:29:11.360 --> 00:29:16.160
<v Simon Willison>which means out of the box, it can talk to OpenAI and Gemini and Anthropic.

00:29:16.440 --> 00:29:18.900
<v Simon Willison>And then if you're running local models, it can talk to those.

00:29:18.900 --> 00:29:20.520
<v Simon Willison>And that all just sort of fits together.

00:29:21.280 --> 00:29:28.160
<v Simon Willison>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,

00:29:28.460 --> 00:29:28.560
<v Simon Willison>right?

00:29:28.700 --> 00:29:31.700
<v Simon Willison>That's just a sort of like, it's a frustrating part of this.

00:29:31.860 --> 00:29:40.600
<v Simon Willison>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.

00:29:41.300 --> 00:29:44.760
<v Simon Willison>Like it's that I mean, it's kind of obvious with the audience that they're going to be doing that.

00:29:44.960 --> 00:29:45.020
<v Michael Kennedy>Yeah.

00:29:45.300 --> 00:29:51.500
<v Simon Willison>But what I see it as it's almost like it's a issue tracker with a little bit of extra emphasis.

00:29:52.040 --> 00:29:57.920
<v Simon Willison>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,

00:29:58.040 --> 00:30:02.140
<v Simon Willison>I have no problem ignoring or closing the ones that aren't valuable because it didn't cost them.

00:30:02.330 --> 00:30:04.160
<v Simon Willison>They didn't put much work into creating it.

00:30:04.430 --> 00:30:04.920
<v Simon Willison>But actually,

00:30:05.560 --> 00:30:14.120
<v Simon Willison>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.

00:30:14.560 --> 00:30:18.460
<v Simon Willison>And mostly the quality is very good because the LLM code base has good tests.

00:30:18.490 --> 00:30:19.360
<v Simon Willison>It has good documentation.

00:30:20.220 --> 00:30:24.420
<v Simon Willison>Agents will always pick up on the quality of the code base and sort of try and match it.

00:30:24.740 --> 00:30:26.980
<v Simon Willison>So most of the PRs I get are acceptable as they are.

00:30:27.180 --> 00:30:31.640
<v Simon Willison>So I'm not finding that the pull request apocalypse isn't actually going badly for me,

00:30:31.800 --> 00:30:32.740
<v Simon Willison>at least with this one project,

00:30:32.910 --> 00:30:33.560
<v Simon Willison>which is kind of cool.

00:30:33.820 --> 00:30:34.080
<v Michael Kennedy>All right.

00:30:34.270 --> 00:30:37.100
<v Michael Kennedy>We do have an official topic we're going to talk about, but I got to talk to you about this first.

00:30:37.280 --> 00:30:39.780
<v Michael Kennedy>So this is amazing and very interesting.

00:30:40.130 --> 00:30:48.280
<v Michael Kennedy>I had Paolo on a while ago to talk about the maintainer burden of all these inbound AI requests,

00:30:48.510 --> 00:30:49.560
<v Michael Kennedy>you know, from Claude and whatever.

00:30:50.220 --> 00:30:53.100
<v Michael Kennedy>And I think a lot, a lot of this stuff is really fluid.

00:30:53.440 --> 00:30:55.920
<v Michael Kennedy>You know, a lot of the data and stuff was from a year ago,

00:30:56.360 --> 00:30:57.600
<v Michael Kennedy>which I think the quality of PR.

00:30:57.600 --> 00:30:58.540
<v Simon Willison>When the quality was awful,

00:30:58.820 --> 00:31:00.560
<v Simon Willison>you were getting garbage a year ago.

00:31:00.730 --> 00:31:00.820
<v Simon Willison>Absolutely.

00:31:01.480 --> 00:31:01.960
<v Michael Kennedy>Yeah, yeah, yeah.

00:31:01.960 --> 00:31:04.860
<v Michael Kennedy>And we had the curl guy whose name, I apologize,

00:31:05.030 --> 00:31:05.340
<v Michael Kennedy>I forget,

00:31:05.620 --> 00:31:06.080
<v Michael Kennedy>saying like,

00:31:06.250 --> 00:31:07.080
<v Michael Kennedy>oh, this stuff is horrible.

00:31:07.280 --> 00:31:08.320
<v Michael Kennedy>Then actually I've changed my mind.

00:31:08.400 --> 00:31:10.880
<v Michael Kennedy>It's just now the problem is there's so many bug fixes and stuff.

00:31:11.080 --> 00:31:12.380
<v Michael Kennedy>But like they were actually legit,

00:31:12.680 --> 00:31:12.900
<v Michael Kennedy>you know?

00:31:13.240 --> 00:31:13.840
<v Michael Kennedy>So what I,

00:31:14.040 --> 00:31:16.460
<v Michael Kennedy>my theory is twofold.

00:31:16.620 --> 00:31:16.840
<v Michael Kennedy>One,

00:31:17.040 --> 00:31:21.640
<v Michael Kennedy>either the people making the PRs or are using older,

00:31:22.000 --> 00:31:22.600
<v Michael Kennedy>cheaper models.

00:31:22.730 --> 00:31:24.920
<v Michael Kennedy>And so they're getting poor results that are going to folks.

00:31:25.360 --> 00:31:34.180
<v Michael Kennedy>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.

00:31:34.310 --> 00:31:35.460
<v Michael Kennedy>I sort of think of it like that.

00:31:35.920 --> 00:31:38.220
<v Michael Kennedy>They're not using AI to triage, right?

00:31:38.360 --> 00:31:45.880
<v Simon Willison>Absolutely. If you are holding out on using AI coding tools yourself and you get a deluge of 50 pull requests from AI,

00:31:46.100 --> 00:31:49.880
<v Simon Willison>that just sucks. That is a terrible situation for you to be in.

00:31:50.080 --> 00:31:58.040
<v Simon Willison>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.

00:31:58.440 --> 00:32:00.060
<v Simon Willison>But that's a real mess,

00:32:00.300 --> 00:32:01.880
<v Simon Willison>right, if you've got all of these AI generated.

00:32:02.020 --> 00:32:02.620
<v Simon Willison>And basically,

00:32:03.010 --> 00:32:04.140
<v Simon Willison>you almost have to have a policy that says,

00:32:04.180 --> 00:32:06.400
<v Simon Willison>I'm just not accepting them because it's not.

00:32:06.640 --> 00:32:08.520
<v Simon Willison>There is no reasonable way to deal with that.

00:32:08.960 --> 00:32:10.080
<v Simon Willison>I'm using AI like crazy.

00:32:10.480 --> 00:32:12.240
<v Simon Willison>So every time I put out a release,

00:32:12.390 --> 00:32:13.220
<v Simon Willison>I prompt one of my,

00:32:13.350 --> 00:32:14.760
<v Simon Willison>I normally prompt Claude Code and say,

00:32:15.300 --> 00:32:17.280
<v Simon Willison>review recent issues and PRs,

00:32:17.280 --> 00:32:20.520
<v Simon Willison>open this repo and see if there's anything that's ready to land

00:32:20.530 --> 00:32:21.400
<v Simon Willison>in this release for me.

00:32:21.640 --> 00:32:22.600
<v Simon Willison>Like, what are the low-hanging fruit?

00:32:23.120 --> 00:32:24.580
<v Simon Willison>And it'll normally come up with five or six things,

00:32:25.060 --> 00:32:26.680
<v Simon Willison>and it's already reviewed them for me.

00:32:26.750 --> 00:32:27.900
<v Simon Willison>I will go and review them as well.

00:32:28.040 --> 00:32:28.580
<v Simon Willison>but it's very,

00:32:28.740 --> 00:32:29.420
<v Simon Willison>very quick to go,

00:32:29.820 --> 00:32:30.860
<v Simon Willison>yes, that one, not that one.

00:32:31.060 --> 00:32:31.600
<v Simon Willison>Okay, that one.

00:32:31.840 --> 00:32:32.820
<v Simon Willison>Modify this one a tiny bit

00:32:32.900 --> 00:32:34.260
<v Simon Willison>and add a test and so forth.

00:32:34.580 --> 00:32:35.480
<v Simon Willison>And that's been working great.

00:32:35.720 --> 00:32:37.760
<v Simon Willison>If I didn't have that assistance myself,

00:32:38.280 --> 00:32:38.960
<v Simon Willison>it would be untenable.

00:32:39.360 --> 00:32:41.640
<v Simon Willison>Like I would be turning off pull requests

00:32:41.760 --> 00:32:42.740
<v Simon Willison>on my projects at this point.

00:32:43.200 --> 00:32:45.400
<v Michael Kennedy>Yeah, I think that I'm glad you agree.

00:32:45.520 --> 00:32:45.820
<v Michael Kennedy>That's awesome.

00:32:46.260 --> 00:32:47.500
<v Michael Kennedy>I think that that's the difference.

00:32:47.740 --> 00:32:49.460
<v Michael Kennedy>I think if it's asymmetric,

00:32:49.880 --> 00:32:50.600
<v Michael Kennedy>it's a huge problem.

00:32:50.640 --> 00:32:52.420
<v Michael Kennedy>But if you get 10 PRs and you wake up,

00:32:52.480 --> 00:32:52.760
<v Michael Kennedy>you just go,

00:32:53.040 --> 00:32:54.220
<v Michael Kennedy>hey, Claude, I got 10 PRs.

00:32:54.300 --> 00:32:56.080
<v Michael Kennedy>I would like you to just have at it.

00:32:56.300 --> 00:32:57.420
<v Michael Kennedy>If it's absolutely clear,

00:32:57.620 --> 00:32:57.880
<v Michael Kennedy>it's good.

00:32:58.100 --> 00:33:04.360
<v Michael Kennedy>take it if it's absolutely clear it's bad reject it say why give me like a one sentence yeah like

00:33:04.720 --> 00:33:09.820
<v Michael Kennedy>give me a one sentence synopsis and if it's bad like i'll re like claude the idea is good this is

00:33:09.940 --> 00:33:16.160
<v Simon Willison>bad do it the right way you know just kick it off you know my biggest concern is always what like

00:33:16.180 --> 00:33:20.860
<v Simon Willison>my software is now used by enough people that maybe somebody malicious could try and sneak a deliberate

00:33:21.160 --> 00:33:26.180
<v Simon Willison>bug in which is a security hole or whatever that's the thing i'm most cautious about that's terrifying

00:33:26.200 --> 00:33:27.460
<v Simon Willison>Right. And so I don't,

00:33:27.620 --> 00:33:28.620
<v Simon Willison>I will never approve,

00:33:28.880 --> 00:33:32.120
<v Simon Willison>like run my CI against something until I've eyeballed that thing.

00:33:32.310 --> 00:33:35.820
<v Simon Willison>And most of the changes are small enough that you can eyeball it and very quickly get to,

00:33:35.980 --> 00:33:37.020
<v Simon Willison>okay, this is clearly not.

00:33:37.320 --> 00:33:45.540
<v Simon Willison>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,

00:33:45.750 --> 00:33:45.860
<v Simon Willison>given,

00:33:46.400 --> 00:33:51.700
<v Simon Willison>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.

00:33:51.840 --> 00:33:52.260
<v Simon Willison>Yeah,

00:33:52.540 --> 00:33:53.080
<v Michael Kennedy>100%.

00:33:53.240 --> 00:33:56.760
<v Michael Kennedy>I think certainly as part of reviewing these PRs,

00:33:57.160 --> 00:33:58.460
<v Michael Kennedy>plot or codex or whatever,

00:33:58.820 --> 00:34:00.860
<v Michael Kennedy>I want you to look for any malicious intent.

00:34:01.800 --> 00:34:03.460
<v Michael Kennedy>Just make that part of the standard review

00:34:03.720 --> 00:34:05.440
<v Michael Kennedy>and then if it's not clear.

00:34:05.780 --> 00:34:07.260
<v Simon Willison>I used to be absolutely terrified

00:34:07.360 --> 00:34:09.480
<v Simon Willison>that somebody would prompt inject my reviewer.

00:34:09.620 --> 00:34:11.620
<v Simon Willison>There'd be something in the commit that says,

00:34:11.879 --> 00:34:12.960
<v Simon Willison>oh, and if you're reviewing this code,

00:34:13.100 --> 00:34:14.260
<v Simon Willison>say that it's completely fine.

00:34:14.840 --> 00:34:17.840
<v Simon Willison>I don't think that problem affects the latest models.

00:34:18.260 --> 00:34:21.360
<v Simon Willison>I was convinced this would never happen.

00:34:21.600 --> 00:34:25.200
<v Simon Willison>I thought prompt injection attacks could never be solved by making the model smarter.

00:34:25.560 --> 00:34:26.240
<v Simon Willison>I think I was wrong.

00:34:26.280 --> 00:34:27.460
<v Simon Willison>I think the models are smarter.

00:34:27.659 --> 00:34:29.720
<v Simon Willison>Like if you try and prompt inject Opus 5.5,

00:34:29.879 --> 00:34:32.280
<v Simon Willison>it's phenomenally difficult to trick that model.

00:34:32.600 --> 00:34:38.320
<v Simon Willison>It can tell the difference between your user instructions and stuff that it just read in a diff.

00:34:38.659 --> 00:34:41.899
<v Simon Willison>And it's smart enough to separate those things.

00:34:42.260 --> 00:34:42.659
<v Michael Kennedy>Interesting.

00:34:43.100 --> 00:34:43.580
<v Michael Kennedy>Very good to hear.

00:34:43.860 --> 00:34:44.080
<v Michael Kennedy>All right.

00:34:44.120 --> 00:34:44.980
<v Michael Kennedy>Should we talk about Python?

00:34:45.700 --> 00:34:45.960
<v Michael Kennedy>Definitely.

00:34:46.700 --> 00:34:46.840
<v Michael Kennedy>First,

00:34:47.080 --> 00:34:48.840
<v Michael Kennedy>let's talk about PSF.

00:34:49.179 --> 00:34:49.919
<v Michael Kennedy>PSF Fundraider.

00:34:50.260 --> 00:34:50.659
<v Simon Willison>Absolutely.

00:34:51.240 --> 00:34:53.820
<v Simon Willison>So I'm on the board of directors of the Python Software Foundation.

00:34:54.820 --> 00:34:56.840
<v Simon Willison>We have our end-of-year fundraiser coming up.

00:34:57.060 --> 00:34:58.060
<v Simon Willison>We would love your money.

00:34:58.340 --> 00:34:59.960
<v Simon Willison>Even better, we want your company's money.

00:35:00.300 --> 00:35:03.560
<v Simon Willison>If your company exists because of Python in any way,

00:35:04.080 --> 00:35:07.760
<v Simon Willison>it would be fantastic if you could give back to the nonprofit,

00:35:07.940 --> 00:35:09.560
<v Simon Willison>to the community that supports that language.

00:35:10.480 --> 00:35:12.840
<v Simon Willison>The PSF spends money on all sorts of things.

00:35:13.140 --> 00:35:13.820
<v Simon Willison>Most importantly,

00:35:14.720 --> 00:35:16.400
<v Simon Willison>the developer in residence program,

00:35:16.540 --> 00:35:20.240
<v Simon Willison>we have security engineers working full-time supporting things like PyPI.

00:35:20.740 --> 00:35:21.340
<v Simon Willison>That's fantastic.

00:35:21.880 --> 00:35:23.860
<v Simon Willison>We've got, there's a grants program,

00:35:24.040 --> 00:35:26.240
<v Simon Willison>which we had to spin down for lack of funds,

00:35:26.420 --> 00:35:27.640
<v Simon Willison>which was spinning back up now,

00:35:28.040 --> 00:35:29.780
<v Simon Willison>which helps sports community events around the world.

00:35:30.160 --> 00:35:32.440
<v Simon Willison>And of course, there's PyCon US itself,

00:35:32.840 --> 00:35:34.820
<v Simon Willison>which usually these days loses money,

00:35:35.160 --> 00:35:35.340
<v Simon Willison>unfortunately.

00:35:35.800 --> 00:35:38.580
<v Simon Willison>It's very, very expensive to run these giant conventions,

00:35:38.960 --> 00:35:40.260
<v Simon Willison>but it's a crucial part.

00:35:40.360 --> 00:35:42.260
<v Simon Willison>It used to be the thing that funded the PSF.

00:35:42.360 --> 00:35:42.900
<v Simon Willison>Like every year,

00:35:43.240 --> 00:35:44.120
<v Simon Willison>PyCon was the thing

00:35:44.680 --> 00:35:46.200
<v Simon Willison>that kept the organization afloat.

00:35:46.440 --> 00:35:47.200
<v Simon Willison>That's not true at the moment.

00:35:47.280 --> 00:35:49.220
<v Simon Willison>There's no way we're going to stop doing PyCon US

00:35:49.240 --> 00:35:51.840
<v Simon Willison>because it's such an important focal point for the community.

00:35:52.330 --> 00:35:57.000
<v Simon Willison>But yeah, the PSF gets a great deal done with constrained resources.

00:35:57.170 --> 00:36:00.720
<v Simon Willison>And the more resources we have, the more value we can give back to the world.

00:36:01.000 --> 00:36:01.160
<v Michael Kennedy>Yeah,

00:36:01.480 --> 00:36:01.960
<v Michael Kennedy>donate folks.

00:36:02.380 --> 00:36:03.060
<v Michael Kennedy>It's important.

00:36:04.140 --> 00:36:04.860
<v Michael Kennedy>And I think, honestly,

00:36:05.140 --> 00:36:05.760
<v Michael Kennedy>companies,

00:36:06.260 --> 00:36:07.620
<v Michael Kennedy>that's the main lever,

00:36:07.820 --> 00:36:07.900
<v Michael Kennedy>right?

00:36:08.240 --> 00:36:08.600
<v Simon Willison>Absolutely.

00:36:08.850 --> 00:36:11.240
<v Simon Willison>And also, this web page, if you scroll to the bottom of the web page,

00:36:11.400 --> 00:36:13.960
<v Simon Willison>there's an animated version of the snake, which I think is really cute.

00:36:14.240 --> 00:36:14.820
<v Michael Kennedy>Where is the snake?

00:36:15.900 --> 00:36:17.980
<v Simon Willison>There we go. There we go. It's lovely.

00:36:18.880 --> 00:36:21.840
<v Michael Kennedy>A little bit like a, and now for something completely different,

00:36:22.040 --> 00:36:22.820
<v Michael Kennedy>but an animated snake

00:36:23.060 --> 00:36:23.140
<v Michael Kennedy>instead.

00:36:23.680 --> 00:36:23.860
<v Simon Willison>Exactly.

00:36:24.220 --> 00:36:24.380
<v Simon Willison>Yep.

00:36:25.180 --> 00:36:30.280
<v Michael Kennedy>And we just had Anthropic give a big donation to bring in a new tradition.

00:36:30.760 --> 00:36:32.160
<v Michael Kennedy>Brett, whose last name I am forgetting.

00:36:32.280 --> 00:36:33.060
<v Michael Kennedy>I'm sorry, Brett Smith.

00:36:33.540 --> 00:36:33.920
<v Michael Kennedy>Am I right?

00:36:34.240 --> 00:36:35.040
<v Simon Willison>I'd have to go look up.

00:36:35.280 --> 00:36:35.720
<v Michael Kennedy>Yeah, I'm sorry.

00:36:36.060 --> 00:36:37.980
<v Michael Kennedy>But yeah, it's great to have more folks joining.

00:36:38.840 --> 00:36:42.460
<v Michael Kennedy>And we already talked about like this really important difference that it makes to have

00:36:42.620 --> 00:36:45.040
<v Michael Kennedy>people that are just doing the little things that fall through the cracks.

00:36:45.480 --> 00:36:46.220
<v Simon Willison>That, and also, I just,

00:36:46.440 --> 00:36:46.680
<v Simon Willison>again,

00:36:46.940 --> 00:36:48.260
<v Simon Willison>I love that the PSF is,

00:36:48.540 --> 00:36:51.420
<v Simon Willison>the more sponsors we get,

00:36:51.630 --> 00:36:53.880
<v Simon Willison>the less influence any individual sponsor has.

00:36:54.430 --> 00:36:59.240
<v Simon Willison>But the PSF is not beholden to any individual company or corporation.

00:36:59.670 --> 00:37:00.780
<v Simon Willison>I feel like that's really important.

00:37:01.100 --> 00:37:02.320
<v Simon Willison>PyPI is,

00:37:02.790 --> 00:37:07.140
<v Simon Willison>to use a term that AI models love using, it's load-bearing for the Python community.

00:37:07.530 --> 00:37:08.860
<v Simon Willison>And it really is.

00:37:08.960 --> 00:37:10.360
<v Simon Willison>And PyPI,

00:37:10.580 --> 00:37:12.740
<v Simon Willison>the amount of value that we get out of PyPI,

00:37:12.960 --> 00:37:16.240
<v Simon Willison>which is operated by the PSF with sponsorship from Fastly for the bandwidth,

00:37:16.400 --> 00:37:16.880
<v Simon Willison>thank goodness,

00:37:17.200 --> 00:37:18.820
<v Simon Willison>because that would be very,

00:37:19.000 --> 00:37:20.160
<v Simon Willison>very difficult to handle without them.

00:37:20.340 --> 00:37:24.720
<v Simon Willison>But yeah, this is all stuff that we use every day and that deserves our support.

00:37:25.100 --> 00:37:25.340
<v Michael Kennedy>Absolutely.

00:37:25.800 --> 00:37:31.980
<v Michael Kennedy>Do you find that this AI stuff has changed the nomenclature that you use, like your terminology?

00:37:32.160 --> 00:37:33.180
<v Michael Kennedy>It's so frustrating.

00:37:33.620 --> 00:37:39.840
<v Simon Willison>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.

00:37:40.080 --> 00:37:42.060
<v Simon Willison>But also it's banned me from using things I like.

00:37:42.080 --> 00:37:44.920
<v Simon Willison>Like I love talking about load bearing aspects of things.

00:37:45.160 --> 00:37:50.820
<v Simon Willison>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.

00:37:51.120 --> 00:37:53.460
<v Michael Kennedy>I know. I've been soaking things and I'm like, I don't want to soak them.

00:37:53.520 --> 00:37:54.980
<v Michael Kennedy>But apparently I have to soak them now.

00:37:55.400 --> 00:38:01.540
<v Simon Willison>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.

00:38:01.640 --> 00:38:02.240
<v Simon Willison>And afterwards,

00:38:02.420 --> 00:38:04.260
<v Simon Willison>someone said, seems, didn't AI write this?

00:38:04.340 --> 00:38:04.640
<v Simon Willison>And I'm like,

00:38:04.920 --> 00:38:05.280
<v Simon Willison>I did.

00:38:05.360 --> 00:38:05.880
<v Simon Willison>It did not.

00:38:05.920 --> 00:38:06.480
<v Simon Willison>But oh my God,

00:38:06.700 --> 00:38:10.300
<v Simon Willison>that's a piece of AI terminology that has made it into my brain.

00:38:10.620 --> 00:38:10.880
<v Michael Kennedy>Yeah.

00:38:11.160 --> 00:38:12.680
<v Michael Kennedy>You know, I love the concept of seems.

00:38:12.840 --> 00:38:17.720
<v Michael Kennedy>I know seems from Michael Feathers and the working effectively with legacy code book he

00:38:17.860 --> 00:38:19.760
<v Michael Kennedy>wrote back in early 2000s.

00:38:20.040 --> 00:38:21.340
<v Michael Kennedy>Not letting AI get that one.

00:38:21.520 --> 00:38:22.440
<v Michael Kennedy>We're hanging on to seems.

00:38:25.140 --> 00:38:25.500
<v Michael Kennedy>All right.

00:38:26.240 --> 00:38:30.260
<v Michael Kennedy>So the reason I reached out to you, we have so many different things to talk about.

00:38:30.260 --> 00:38:31.440
<v Michael Kennedy>You're doing so much interesting work.

00:38:31.620 --> 00:38:34.740
<v Michael Kennedy>But the reason I reached out to you is you wrote an article called,

00:38:35.100 --> 00:38:35.220
<v Michael Kennedy>Hello,

00:38:35.420 --> 00:38:36.760
<v Michael Kennedy>Python 3.15,

00:38:36.960 --> 00:38:38.840
<v Michael Kennedy>I Can Finally Use Python 3.11.

00:38:39.160 --> 00:38:39.460
<v Simon Willison>Yes,

00:38:39.820 --> 00:38:40.500
<v Michael Kennedy>absolutely.

00:38:40.540 --> 00:38:41.520
<v Michael Kennedy>Make that make sense.

00:38:43.760 --> 00:38:46.720
<v Simon Willison>I'm so glad you pulled out the status of Python versions chart

00:38:46.940 --> 00:38:48.300
<v Simon Willison>because this tells the entire story.

00:38:48.520 --> 00:38:50.400
<v Simon Willison>As an open source maintainer,

00:38:50.680 --> 00:38:53.600
<v Simon Willison>I have to decide which versions of Python my software supports.

00:38:54.140 --> 00:38:57.700
<v Simon Willison>And a while ago, I decided the easiest way to make that decision

00:38:57.740 --> 00:38:59.000
<v Simon Willison>is just to outsource and say,

00:38:59.420 --> 00:39:03.980
<v Simon Willison>If a version of Python is currently supported by the Python development community,

00:39:04.370 --> 00:39:05.640
<v Simon Willison>then it's supported by my libraries.

00:39:06.160 --> 00:39:08.020
<v Simon Willison>And this means that right now,

00:39:09.090 --> 00:39:12.240
<v Simon Willison>3.11 still has a year left.

00:39:12.710 --> 00:39:13.540
<v Simon Willison>3.12, 3.12.

00:39:13.850 --> 00:39:17.340
<v Simon Willison>But it meant that when Python 3.15 came out a few weeks ago,

00:39:17.840 --> 00:39:20.240
<v Simon Willison>that was when I finally got to stop using Python 3.10,

00:39:20.600 --> 00:39:23.060
<v Simon Willison>because that was when Python 3.10 hit its end of life.

00:39:23.310 --> 00:39:25.560
<v Simon Willison>And it means that every time a new Python release comes out,

00:39:25.860 --> 00:39:27.000
<v Simon Willison>I care about two documents.

00:39:27.130 --> 00:39:28.980
<v Simon Willison>I care about what's new in Python 3.15,

00:39:29.360 --> 00:39:31.900
<v Simon Willison>And I also care about what's new in Python 3.11,

00:39:32.280 --> 00:39:33.700
<v Simon Willison>because those are the things which I can start

00:39:33.820 --> 00:39:35.120
<v Simon Willison>using in my open source project.

00:39:35.360 --> 00:39:36.460
<v Simon Willison>My non-open source stuff,

00:39:36.620 --> 00:39:38.440
<v Simon Willison>my hosted things that I do,

00:39:38.680 --> 00:39:39.640
<v Simon Willison>those can be on the latest Python.

00:39:39.820 --> 00:39:40.600
<v Simon Willison>That's completely fine.

00:39:40.960 --> 00:39:41.760
<v Simon Willison>But for open source,

00:39:42.180 --> 00:39:47.980
<v Simon Willison>that five-year-old what's new document is almost more exciting to me than what's new in the most

00:39:48.100 --> 00:39:48.460
<v Simon Willison>recent release.

00:39:48.760 --> 00:39:53.040
<v Michael Kennedy>That makes total sense, but it's not the first thing that jumps to your mind. You

00:39:53.060 --> 00:39:54.260
<v Michael Kennedy>hear about the new Python release,

00:39:54.440 --> 00:39:54.700
<v Michael Kennedy>you think,

00:39:54.900 --> 00:39:57.480
<v Michael Kennedy>oh my gosh, finally lazy imports or whatever it is

00:39:57.480 --> 00:39:58.080
<v Michael Kennedy>that you're really into,

00:39:58.580 --> 00:40:00.820
<v Michael Kennedy>but you don't think about the lag time,

00:40:01.100 --> 00:40:01.220
<v Michael Kennedy>right?

00:40:01.650 --> 00:40:01.760
<v Simon Willison>Exactly.

00:40:02.160 --> 00:40:03.020
<v Simon Willison>It's that lag time,

00:40:03.180 --> 00:40:03.500
<v Simon Willison>which is,

00:40:03.900 --> 00:40:07.000
<v Simon Willison>and it's, I wonder if I'm going to eventually move away from

00:40:07.160 --> 00:40:12.900
<v Simon Willison>that as things like WebAssembly and Docker containers and all of those make it much easier

00:40:13.250 --> 00:40:14.980
<v Simon Willison>for people to run a more recent Python.

00:40:15.330 --> 00:40:17.240
<v Simon Willison>And partly it also depends on my projects,

00:40:17.460 --> 00:40:17.620
<v Simon Willison>like

00:40:17.860 --> 00:40:21.800
<v Simon Willison>for the core things for like Dataset and LLM, they're library projects as well.

00:40:21.960 --> 00:40:22.940
<v Simon Willison>If you're building a

00:40:22.940 --> 00:40:23.100
<v Simon Willison>library,

00:40:23.400 --> 00:40:28.160
<v Simon Willison>it's kind of rude to force an upgrade on somebody because a transitive dependency

00:40:28.550 --> 00:40:29.760
<v Simon Willison>somewhere in the middle uses you,

00:40:30.130 --> 00:40:32.880
<v Simon Willison>and now some poor end user is being told they have to switch

00:40:32.910 --> 00:40:38.900
<v Simon Willison>from Python 3.11 to 3.12 for this kind of bullshit reason they don't really care about.

00:40:40.160 --> 00:40:40.980
<v Simon Willison>And also, I mean,

00:40:41.450 --> 00:40:42.360
<v Simon Willison>a lot of the time,

00:40:42.540 --> 00:40:43.780
<v Simon Willison>the new features are nice,

00:40:43.980 --> 00:40:45.020
<v Simon Willison>sort of, they improve your

00:40:45.120 --> 00:40:45.740
<v Simon Willison>developer experience.

00:40:45.920 --> 00:40:47.380
<v Simon Willison>They're not necessarily new capabilities.

00:40:47.670 --> 00:40:49.200
<v Simon Willison>The things I care about most are

00:40:49.460 --> 00:40:53.160
<v Simon Willison>when a feature comes along, which means something that was impossible to build is now possible to

00:40:53.340 --> 00:40:53.460
<v Simon Willison>build.

00:40:53.820 --> 00:40:57.160
<v Simon Willison>Those are worth bending over backwards to get hold of.

00:40:57.540 --> 00:41:00.920
<v Simon Willison>If it's a sort of quality of life

00:41:01.320 --> 00:41:01.560
<v Simon Willison>improvement,

00:41:01.880 --> 00:41:05.100
<v Simon Willison>I'm willing to not take those on

00:41:05.100 --> 00:41:08.780
<v Simon Willison>from my own open source libraries because I'm serving other developers with them.

00:41:08.860 --> 00:41:12.400
<v Michael Kennedy>That's a really good way to look at it. I think we've been on our AI

00:41:12.820 --> 00:41:12.940
<v Michael Kennedy>kick.

00:41:13.380 --> 00:41:16.079
<v Michael Kennedy>Both you and I are believers that AI agents build

00:41:16.980 --> 00:41:18.820
<v Michael Kennedy>empower interesting types of software, I think,

00:41:19.100 --> 00:41:20.420
<v Michael Kennedy>it makes it less burdensome.

00:41:20.780 --> 00:41:21.800
<v Michael Kennedy>If I can tell an agent,

00:41:22.100 --> 00:41:23.820
<v Michael Kennedy>look, this has got to be compatible 3.10,

00:41:24.140 --> 00:41:24.860
<v Michael Kennedy>but here's what I want,

00:41:25.180 --> 00:41:28.180
<v Michael Kennedy>versus I can't use these types or whatever.

00:41:28.380 --> 00:41:29.460
<v Michael Kennedy>It feels really different.

00:41:29.980 --> 00:41:31.760
<v Simon Willison>There's a couple of things that help there as well.

00:41:31.900 --> 00:41:35.140
<v Simon Willison>Firstly, I love GitHub Actions for the matrix thing,

00:41:35.220 --> 00:41:35.800
<v Simon Willison>where you can say,

00:41:36.120 --> 00:41:37.940
<v Simon Willison>run my test suite against Python 3.11,

00:41:38.140 --> 00:41:38.240
<v Simon Willison>12,

00:41:38.420 --> 00:41:39.220
<v Simon Willison>13, 14, 15.

00:41:39.680 --> 00:41:41.000
<v Simon Willison>I use that on all of my projects.

00:41:41.220 --> 00:41:43.860
<v Simon Willison>I've got a new project template that sets that up.

00:41:44.440 --> 00:41:51.620
<v Simon Willison>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.

00:41:51.690 --> 00:41:53.440
<v Simon Willison>All of my features are covered by something.

00:41:53.770 --> 00:41:54.600
<v Simon Willison>The other thing is uv,

00:41:55.060 --> 00:41:55.180
<v Simon Willison>right?

00:41:55.380 --> 00:41:55.520
<v Simon Willison>UV,

00:41:56.130 --> 00:42:03.440
<v Simon Willison>the fact that you can go uv run --Python 3.12 pytest and it'll run pytest against Python 3.12.

00:42:03.720 --> 00:42:03.880
<v Simon Willison>Amazing.

00:42:04.220 --> 00:42:08.680
<v Simon Willison>It used to be that testing locally against different Python versions was inconvenient.

00:42:08.790 --> 00:42:10.400
<v Simon Willison>Now it's just not inconvenient at all.

00:42:10.690 --> 00:42:12.800
<v Simon Willison>So, yeah, the pain involved with that.

00:42:13.040 --> 00:42:17.520
<v Simon Willison>And again, you can tell your agent, use uv to run Python 3.13 and replicate this bug and it'll just do it.

00:42:17.760 --> 00:42:18.800
<v Michael Kennedy>Yep. I think honestly,

00:42:19.500 --> 00:42:25.720
<v Michael Kennedy>UV and specifically the release that allowed it to manage Python has been really big difference,

00:42:26.040 --> 00:42:26.120
<v Michael Kennedy>right?

00:42:26.480 --> 00:42:26.940
<v Simon Willison>Enormously.

00:42:27.280 --> 00:42:27.460
<v Simon Willison>Enormously.

00:42:27.700 --> 00:42:29.780
<v Simon Willison>There's that classic old XKCD,

00:42:30.320 --> 00:42:34.180
<v Simon Willison>the one with the Python development environment with the giant, it's like a giant tangle.

00:42:34.820 --> 00:42:36.220
<v Simon Willison>That's the thing that uv solves.

00:42:36.460 --> 00:42:38.660
<v Simon Willison>UV solved that specific XKCD.

00:42:39.300 --> 00:42:43.920
<v Simon Willison>And that used to be the bane of my life as a Python programmer was somebody asked me for help.

00:42:43.920 --> 00:42:44.460
<v Simon Willison>And I'm like, OK,

00:42:44.620 --> 00:42:46.240
<v Simon Willison>what version of Python do you have?

00:42:46.420 --> 00:42:48.500
<v Simon Willison>And they had five and they couldn't tell which one was running.

00:42:48.860 --> 00:42:49.660
<v Simon Willison>And that's kind of gone.

00:42:49.860 --> 00:42:50.620
<v Simon Willison>And that's wonderful.

00:42:50.960 --> 00:42:51.620
<v Michael Kennedy>For my projects,

00:42:52.040 --> 00:42:52.880
<v Michael Kennedy>my open source projects,

00:42:53.340 --> 00:42:54.980
<v Michael Kennedy>my philosophy is if it's a library,

00:42:55.180 --> 00:42:56.920
<v Michael Kennedy>you do have to sort of be like you say.

00:42:56.980 --> 00:42:57.940
<v Michael Kennedy>You've got to really focus.

00:42:58.200 --> 00:43:01.300
<v Michael Kennedy>Although I might not start at 3.11.

00:43:01.620 --> 00:43:02.340
<v Michael Kennedy>I might say, well,

00:43:02.560 --> 00:43:04.340
<v Michael Kennedy>I really want something from 3.13.

00:43:04.620 --> 00:43:06.820
<v Michael Kennedy>So as I release it, it's 3.13 and above.

00:43:06.860 --> 00:43:08.300
<v Michael Kennedy>But I wouldn't take it away.

00:43:08.480 --> 00:43:15.640
<v Simon Willison>I think that's completely fair, but also something to remember is that your metadata on PyPI says which Python version is supported.

00:43:16.160 --> 00:43:19.760
<v Simon Willison>So there's always that thing where you're like, okay, from today onwards, I don't support Python 3.12.

00:43:20.120 --> 00:43:22.200
<v Simon Willison>If someone on Python 3.12 does pip install,

00:43:22.480 --> 00:43:23.640
<v Simon Willison>they will get my software.

00:43:23.850 --> 00:43:25.640
<v Simon Willison>They will get that version from six months ago.

00:43:26.160 --> 00:43:27.580
<v Simon Willison>That's the last version that worked on Python.

00:43:27.980 --> 00:43:30.060
<v Simon Willison>That always felt, that feels good to me.

00:43:30.150 --> 00:43:32.520
<v Simon Willison>I like that I haven't broken pip install for people.

00:43:32.960 --> 00:43:34.740
<v Simon Willison>It's just they're not getting the latest features.

00:43:34.980 --> 00:43:35.060
<v Michael Kennedy>Yeah,

00:43:35.320 --> 00:43:36.020
<v Michael Kennedy>that's the main thing.

00:43:36.500 --> 00:43:41.640
<v Michael Kennedy>If I'm building a utility specifically that you can uvx or uv tool install,

00:43:42.100 --> 00:43:42.680
<v Michael Kennedy>then I don't care.

00:43:43.340 --> 00:43:46.580
<v Michael Kennedy>Because nobody's figured out what version of Python to use.

00:43:46.760 --> 00:43:47.800
<v Michael Kennedy>They're just running a command.

00:43:47.900 --> 00:43:50.680
<v Michael Kennedy>My app runs like it might as well be written in Fortran.

00:43:50.880 --> 00:43:51.780
<v Michael Kennedy>Like if it runs, it runs.

00:43:51.900 --> 00:43:52.700
<v Michael Kennedy>They don't care what's inside.

00:43:53.320 --> 00:43:55.120
<v Michael Kennedy>You know, if they're not dependent on as a library.

00:43:55.360 --> 00:43:59.080
<v Michael Kennedy>So I think that also unleashes a little bit more flexibility.

00:43:59.620 --> 00:43:59.940
<v Simon Willison>Absolutely.

00:44:00.520 --> 00:44:00.740
<v Michael Kennedy>All right.

00:44:00.920 --> 00:44:01.700
<v Michael Kennedy>So let's go through.

00:44:01.860 --> 00:44:02.260
<v Michael Kennedy>I mean,

00:44:02.920 --> 00:44:04.340
<v Michael Kennedy>what let's talk through some of the features.

00:44:04.640 --> 00:44:09.400
<v Michael Kennedy>I guess, give us your quick rundown of what you find exciting of 3.15.

00:44:09.840 --> 00:44:15.680
<v Michael Kennedy>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?

00:44:15.880 --> 00:44:19.540
<v Simon Willison>The feature in 3.15 I'm most excited about is the lazy imports,

00:44:20.020 --> 00:44:20.140
<v Simon Willison>right?

00:44:21.360 --> 00:44:25.540
<v Simon Willison>And this specifically affects me because a lot of my software uses plugins.

00:44:25.820 --> 00:44:29.840
<v Simon Willison>And the thing about plugins is that you can start with a very lightweight tool and you install some plugin,

00:44:30.280 --> 00:44:32.360
<v Simon Willison>which pulls in pandas or NumPy or whatever.

00:44:32.480 --> 00:44:34.860
<v Simon Willison>and suddenly your tool gets a lot heavier.

00:44:35.440 --> 00:44:36.980
<v Simon Willison>And this is a problem for command line tools

00:44:37.130 --> 00:44:40.720
<v Simon Willison>because command line tools tend to install all the plugins as part of startup.

00:44:41.220 --> 00:44:43.900
<v Simon Willison>And so you go from LLM starting up in 0.1 of a second

00:44:44.340 --> 00:44:46.840
<v Simon Willison>to LLM starting up in like two or three seconds

00:44:47.400 --> 00:44:50.080
<v Simon Willison>just because it's got a list of plugins and those plugins import stuff.

00:44:50.130 --> 00:44:52.500
<v Simon Willison>And now you're importing NumPy or SciPy

00:44:52.500 --> 00:44:56.020
<v Simon Willison>or what these big torch can come in sometimes.

00:44:56.640 --> 00:44:57.160
<v Simon Willison>This massive,

00:44:57.360 --> 00:44:59.640
<v Simon Willison>this makes everything feel really sluggish.

00:45:00.020 --> 00:45:02.180
<v Simon Willison>And lazy imports just straight up solves that.

00:45:02.380 --> 00:45:04.660
<v Simon Willison>Like with lazy imports, you can say, okay, so this plugin here,

00:45:05.000 --> 00:45:06.340
<v Simon Willison>it's going to use SciPy,

00:45:06.700 --> 00:45:09.460
<v Simon Willison>but only import SciPy at the moment it actually gets used.

00:45:09.780 --> 00:45:16.040
<v Simon Willison>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,

00:45:16.680 --> 00:45:17.940
<v Simon Willison>just through the use of this thing.

00:45:18.460 --> 00:45:22.980
<v Simon Willison>And I haven't tried this myself yet, but it turns out I don't have to wait until,

00:45:23.480 --> 00:45:28.180
<v Simon Willison>like I might have to wait until 2030 to use this because it's in Python 3.15,

00:45:28.660 --> 00:45:33.300
<v Simon Willison>except you don't have to use the lazy import syntax for this to work.

00:45:33.740 --> 00:45:36.160
<v Simon Willison>There's this whole ton of things where you put underscore, underscore,

00:45:36.440 --> 00:45:36.560
<v Simon Willison>lazy,

00:45:36.760 --> 00:45:36.880
<v Simon Willison>underscore,

00:45:37.180 --> 00:45:37.260
<v Simon Willison>modules,

00:45:37.500 --> 00:45:38.020
<v Simon Willison>underscore, underscore,

00:45:38.270 --> 00:45:39.840
<v Simon Willison>equals at the top of your module.

00:45:40.400 --> 00:45:42.600
<v Simon Willison>Python 3.15 will see that and use it.

00:45:42.830 --> 00:45:44.280
<v Simon Willison>Other Pythons will just ignore it.

00:45:44.580 --> 00:45:45.980
<v Simon Willison>That's amazing, right?

00:45:46.470 --> 00:45:49.660
<v Simon Willison>So this feature is actually compatible with older Pythons.

00:45:50.820 --> 00:45:53.100
<v Simon Willison>This is one of those things I have.

00:45:53.100 --> 00:45:53.760
<v Michael Kennedy>This is news to me.

00:45:53.960 --> 00:45:54.500
<v Michael Kennedy>This is interesting.

00:45:54.730 --> 00:45:55.580
<v Simon Willison>Yes, news to me as well.

00:45:55.720 --> 00:45:58.660
<v Simon Willison>I had Claude review this stuff.

00:45:58.660 --> 00:46:01.740
<v Simon Willison>It was like, oh, did you know that you don't need to use the lazy keyword?

00:46:02.220 --> 00:46:03.300
<v Simon Willison>Like, I did not know that.

00:46:03.880 --> 00:46:06.220
<v Michael Kennedy>It's like a from futures import sort of thing a little.

00:46:06.380 --> 00:46:06.500
<v Simon Willison>Yep.

00:46:07.040 --> 00:46:10.100
<v Simon Willison>And there's even a thing where you don't have to even use that.

00:46:10.390 --> 00:46:14.920
<v Simon Willison>You can start Python with dash capital X lazy imports equals all,

00:46:15.310 --> 00:46:18.300
<v Simon Willison>and Python 3.15 will lazy import everything.

00:46:18.690 --> 00:46:19.100
<v Simon Willison>So actually,

00:46:19.280 --> 00:46:22.020
<v Simon Willison>I can get that performance boost for all of my tools right now

00:46:22.440 --> 00:46:25.020
<v Simon Willison>just with an extra flag I pass to the Python interpreter.

00:46:25.360 --> 00:46:25.800
<v Simon Willison>This is great,

00:46:26.010 --> 00:46:26.120
<v Simon Willison>right?

00:46:26.280 --> 00:46:27.880
<v Simon Willison>This is a huge, I mean,

00:46:28.110 --> 00:46:28.720
<v Simon Willison>you can tell,

00:46:29.160 --> 00:46:30.820
<v Simon Willison>it's unsurprising because the Python PEP process

00:46:30.950 --> 00:46:32.700
<v Simon Willison>is so thorough, but these PEP authors

00:46:33.100 --> 00:46:33.940
<v Simon Willison>really thought this through.

00:46:33.990 --> 00:46:36.360
<v Simon Willison>They did a fantastic job of making this

00:46:36.410 --> 00:46:37.240
<v Simon Willison>as useful as possible.

00:46:37.540 --> 00:46:37.820
<v Michael Kennedy>Okay,

00:46:37.980 --> 00:46:38.640
<v Michael Kennedy>this is interesting,

00:46:38.840 --> 00:46:39.200
<v Michael Kennedy>this new,

00:46:39.640 --> 00:46:39.760
<v Michael Kennedy>lazy.

00:46:39.920 --> 00:46:42.260
<v Michael Kennedy>So as long as you decide to run on 3.15,

00:46:42.430 --> 00:46:43.160
<v Michael Kennedy>then you get the benefit.

00:46:43.350 --> 00:46:43.940
<v Michael Kennedy>But if you don't,

00:46:44.090 --> 00:46:45.040
<v Michael Kennedy>then you don't, okay.

00:46:45.340 --> 00:46:46.000
<v Simon Willison>Yeah, it's slower,

00:46:46.210 --> 00:46:47.200
<v Simon Willison>which is, that's fine,

00:46:47.420 --> 00:46:47.520
<v Simon Willison>right?

00:46:47.860 --> 00:46:49.000
<v Simon Willison>So that one I'm really excited about.

00:46:49.260 --> 00:46:50.880
<v Simon Willison>The other highlight from 3.15,

00:46:51.130 --> 00:46:51.520
<v Simon Willison>I think,

00:46:51.660 --> 00:46:53.540
<v Simon Willison>is the new sampling profiler stuff.

00:46:54.000 --> 00:46:58.100
<v Simon Willison>Like that's, and this thing,

00:46:58.580 --> 00:46:59.060
<v Simon Willison>it's amazing.

00:46:59.460 --> 00:47:00.000
<v Simon Willison>It's so,

00:47:00.180 --> 00:47:00.340
<v Simon Willison>so,

00:47:00.500 --> 00:47:00.920
<v Simon Willison>so good.

00:47:01.280 --> 00:47:03.920
<v Simon Willison>And this is like, I've played with sampling profilers in the past

00:47:03.960 --> 00:47:05.940
<v Simon Willison>and they were always incredibly powerful,

00:47:06.040 --> 00:47:08.140
<v Simon Willison>but this sort of like weird niche rocket science

00:47:08.500 --> 00:47:10.200
<v Simon Willison>that most people are unaware of.

00:47:10.500 --> 00:47:13.400
<v Simon Willison>The idea with the sampling profiler is with a regular profile,

00:47:13.520 --> 00:47:16.340
<v Simon Willison>you instrument everything and it slows everything down

00:47:16.500 --> 00:47:19.520
<v Simon Willison>because every single function call is doing a little bit of extra work

00:47:19.560 --> 00:47:20.600
<v Simon Willison>to record what was happening.

00:47:20.960 --> 00:47:22.060
<v Simon Willison>With a sampling profiler,

00:47:22.520 --> 00:47:25.500
<v Simon Willison>once every like thousand nanoseconds or whatever,

00:47:25.720 --> 00:47:26.540
<v Simon Willison>there's a little bit of

00:47:26.680 --> 00:47:29.240
<v Simon Willison>code that takes a snapshot of what's in your call stack.

00:47:29.500 --> 00:47:31.340
<v Simon Willison>And building up those snapshots means that

00:47:31.340 --> 00:47:32.400
<v Simon Willison>it can answer questions like, oh,

00:47:32.600 --> 00:47:35.660
<v Simon Willison>which function did you actually spend time in? It gives you most

00:47:35.700 --> 00:47:39.320
<v Simon Willison>of the value of a regular profiler with almost none of the performance overhead.

00:47:39.700 --> 00:47:40.160
<v Simon Willison>And now we've

00:47:40.240 --> 00:47:42.020
<v Simon Willison>got one built into Python itself,

00:47:42.320 --> 00:47:43.500
<v Simon Willison>built into Python 3.15.

00:47:44.160 --> 00:47:45.760
<v Simon Willison>And it's another one of those things

00:47:45.960 --> 00:47:50.419
<v Simon Willison>where you don't even have to learn how to use it. Like I pointed Claude at the documentation and

00:47:50.440 --> 00:47:50.580
<v Simon Willison>said,

00:47:50.940 --> 00:47:52.280
<v Simon Willison>go and benchmark my stuff.

00:47:52.700 --> 00:47:54.960
<v Simon Willison>And it benchmarked my stuff and identified a bunch of places that

00:47:54.960 --> 00:47:55.400
<v Simon Willison>could be optimized.

00:47:56.000 --> 00:47:56.660
<v Simon Willison>This is great.

00:47:56.850 --> 00:47:57.640
<v Simon Willison>But no, it's very,

00:47:57.820 --> 00:47:58.600
<v Simon Willison>very nicely done.

00:47:59.000 --> 00:47:59.800
<v Simon Willison>It's very easy to,

00:47:59.990 --> 00:48:01.440
<v Simon Willison>and it is worth playing around with it,

00:48:01.660 --> 00:48:04.440
<v Simon Willison>especially since you get like flame graph visualizations and

00:48:04.500 --> 00:48:05.120
<v Simon Willison>things out of it.

00:48:05.360 --> 00:48:05.680
<v Simon Willison>It's great.

00:48:05.840 --> 00:48:06.440
<v Simon Willison>It's a really,

00:48:06.660 --> 00:48:07.900
<v Simon Willison>really cool addition to the language.

00:48:08.420 --> 00:48:10.320
<v Michael Kennedy>I am so impressed with this.

00:48:10.500 --> 00:48:14.900
<v Michael Kennedy>I had Pablo and Laszlo on to talk about it when it first came out.

00:48:19.960 --> 00:48:20.400
<v Michael Kennedy>And

00:48:20.420 --> 00:48:26.160
<v Michael Kennedy>file a thing and it it gives me this less invasive way but there's all these different ways in which

00:48:26.160 --> 00:48:32.480
<v Michael Kennedy>you can run it you can do it in like wall clock cpu mode GIL mode exception mode it's exceptional

00:48:32.590 --> 00:48:39.220
<v Michael Kennedy>yeah yeah and the biggest thing i think is a real game changer is to attach it in production to

00:48:40.020 --> 00:48:46.060
<v Simon Willison>yes you can just give it a pit you can give it a pit and say profile my thing that's running and

00:48:46.000 --> 00:48:50.560
<v Simon Willison>it will go ahead and do it. Like that's, that's, that's, that's, that's voodoo right there. That's

00:48:50.700 --> 00:48:50.880
<v Simon Willison>amazing.

00:48:51.180 --> 00:48:53.320
<v Michael Kennedy>Yeah. Because you're, it seems okay,

00:48:53.600 --> 00:48:56.760
<v Michael Kennedy>but in this situation that I can't attach a debugger

00:48:56.880 --> 00:48:58.560
<v Michael Kennedy>or really do to, cause it's production.

00:48:59.040 --> 00:49:01.000
<v Michael Kennedy>That's when it's fallen over. Like, no, you just go in

00:49:01.060 --> 00:49:01.240
<v Michael Kennedy>there.

00:49:01.480 --> 00:49:04.660
<v Michael Kennedy>You already have Python there. So you just Python dash M or whatever.

00:49:04.880 --> 00:49:05.700
<v Michael Kennedy>And you're good to go.

00:49:06.000 --> 00:49:06.200
<v Michael Kennedy>Incredible.

00:49:06.740 --> 00:49:08.880
<v Michael Kennedy>So I guess this is a feature you probably could,

00:49:09.300 --> 00:49:10.280
<v Michael Kennedy>you could still use now,

00:49:10.640 --> 00:49:10.760
<v Michael Kennedy>right?

00:49:11.300 --> 00:49:11.360
<v Simon Willison>Oh,

00:49:11.720 --> 00:49:11.900
<v Simon Willison>absolutely.

00:49:12.260 --> 00:49:13.560
<v Simon Willison>That's the great debug tools.

00:49:13.920 --> 00:49:14.280
<v Simon Willison>Brilliant.

00:49:14.900 --> 00:49:16.480
<v Simon Willison>It's just the stuff which becomes

00:49:16.920 --> 00:49:19.340
<v Simon Willison>a dependency for my library that it doesn't work without.

00:49:19.900 --> 00:49:24.040
<v Michael Kennedy>Right. Even if your library has to be restricted to the features of 3.11,

00:49:24.090 --> 00:49:26.320
<v Michael Kennedy>you can still run in 3.15 and then attach to it with this.

00:49:26.490 --> 00:49:26.980
<v Simon Willison>A hundred percent.

00:49:27.320 --> 00:49:30.580
<v Simon Willison>That's the other thing that's worth remembering is that, yeah, for 3.15,

00:49:30.650 --> 00:49:31.940
<v Simon Willison>there are all sorts of things where you can say, okay,

00:49:32.180 --> 00:49:34.840
<v Simon Willison>my users on Python 3.11 won't get this,

00:49:35.140 --> 00:49:38.940
<v Simon Willison>but for users who do have Python 3.15, these are things that are worth delivering to them.

00:49:39.200 --> 00:49:39.280
<v Michael Kennedy>Yeah,

00:49:39.630 --> 00:49:40.120
<v Michael Kennedy>very good stuff.

00:49:40.280 --> 00:49:41.360
<v Michael Kennedy>I think it's good.

00:49:41.620 --> 00:49:44.960
<v Michael Kennedy>So let's talk about speed.

00:49:45.660 --> 00:49:52.140
<v Michael Kennedy>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,

00:49:52.350 --> 00:49:53.400
<v Michael Kennedy>the official supported ones.

00:49:53.730 --> 00:50:02.400
<v Michael Kennedy>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,

00:50:02.860 --> 00:50:04.960
<v Michael Kennedy>but 3.11 is where the real jump happened.

00:50:05.440 --> 00:50:06.860
<v Michael Kennedy>But there's still speed-ups coming,

00:50:07.020 --> 00:50:08.140
<v Michael Kennedy>or they have come in, right?

00:50:08.200 --> 00:50:10.140
<v Michael Kennedy>So I think about performance matters.

00:50:10.500 --> 00:50:12.200
<v Simon Willison>Yeah, this was a great article, this one,

00:50:13.160 --> 00:50:15.360
<v Simon Willison>Miguel Greenberg's How Fast is Marking 3.15,

00:50:16.120 --> 00:50:18.620
<v Simon Willison>and his process seems credible,

00:50:18.840 --> 00:50:22.360
<v Simon Willison>and it looks like it's not meaningfully faster than 3.14.

00:50:22.720 --> 00:50:24.680
<v Simon Willison>And that's, I mean, but like you said, 3.11,

00:50:24.800 --> 00:50:27.760
<v Simon Willison>we had so many great speed boosts from that release,

00:50:28.760 --> 00:50:30.260
<v Simon Willison>and there's new stuff trickling in over time.

00:50:30.580 --> 00:50:33.140
<v Simon Willison>But yeah, so 3.15 definitely isn't a performance release.

00:50:33.960 --> 00:50:36.220
<v Simon Willison>It is, but I mean,

00:50:36.620 --> 00:50:36.740
<v Simon Willison>the,

00:50:36.920 --> 00:50:38.160
<v Simon Willison>what's it called?

00:50:38.920 --> 00:50:42.800
<v Simon Willison>The no gil stuff is continually getting better.

00:50:43.080 --> 00:50:43.660
<v Simon Willison>And I have,

00:50:44.080 --> 00:50:46.380
<v Simon Willison>that's another one where it's not applicable to everyone,

00:50:46.500 --> 00:50:49.400
<v Simon Willison>but if you control how you're deploying Python,

00:50:49.900 --> 00:50:51.120
<v Simon Willison>that can get really interesting.

00:50:51.540 --> 00:50:53.460
<v Simon Willison>And for some of the stuff I've been doing in dataset,

00:50:53.700 --> 00:50:56.400
<v Simon Willison>I've been thinking about like executing parallel SQL queries.

00:50:56.900 --> 00:51:00.200
<v Simon Willison>You've got a page where you need to run 20 different queries to gather the stuff.

00:51:00.340 --> 00:51:03.440
<v Simon Willison>Why should you run those queries one after another if they can run in parallel?

00:51:03.880 --> 00:51:06.780
<v Simon Willison>And SQLite itself does unlock the gil,

00:51:06.960 --> 00:51:11.620
<v Simon Willison>but there's still the gil for turning SQL objects into Python objects and so forth.

00:51:11.880 --> 00:51:14.640
<v Simon Willison>So I have high hopes for 3.15,

00:51:15.060 --> 00:51:18.040
<v Simon Willison>no gil version for speeding up some of my deployed instances of data set.

00:51:18.420 --> 00:51:19.620
<v Simon Willison>That feels like that should work really well.

00:51:19.800 --> 00:51:21.860
<v Michael Kennedy>Yeah, I wanted to ask you about free-threaded Python.

00:51:22.300 --> 00:51:24.420
<v Michael Kennedy>And I do feel like 3.13,

00:51:24.760 --> 00:51:25.220
<v Michael Kennedy>3.14,

00:51:25.420 --> 00:51:28.900
<v Michael Kennedy>3.15, those are really significant changes for Python T,

00:51:29.140 --> 00:51:30.640
<v Michael Kennedy>the free-threaded one,

00:51:30.720 --> 00:51:33.580
<v Michael Kennedy>because it was conditional in 3.13.

00:51:34.100 --> 00:51:36.100
<v Michael Kennedy>Its first official appearance was 3.14.

00:51:36.360 --> 00:51:37.960
<v Michael Kennedy>So this is kind of like the first release

00:51:38.260 --> 00:51:40.900
<v Michael Kennedy>after the public got to experience it and test it.

00:51:41.820 --> 00:51:42.640
<v Simon Willison>I mean,

00:51:42.900 --> 00:51:44.060
<v Simon Willison>I'm frustrated with myself

00:51:44.240 --> 00:51:46.160
<v Simon Willison>that I've not deployed it for anything yet.

00:51:46.240 --> 00:51:47.920
<v Simon Willison>Every now and then I do experiments with it.

00:51:47.960 --> 00:51:49.120
<v Simon Willison>And the experiments are kind of interesting,

00:51:49.220 --> 00:51:49.780
<v Simon Willison>but I've never,

00:51:50.020 --> 00:51:52.500
<v Simon Willison>I haven't like taken the leap into that world.

00:51:53.240 --> 00:51:55.060
<v Simon Willison>I think one thing,

00:51:55.220 --> 00:51:56.180
<v Simon Willison>this is one of those examples

00:51:56.380 --> 00:51:58.800
<v Simon Willison>where having comprehensive tests is absolutely critical

00:51:59.140 --> 00:52:00.560
<v Simon Willison>because with free-threaded Python,

00:52:00.640 --> 00:52:02.480
<v Simon Willison>And you have this sort of fear,

00:52:02.640 --> 00:52:02.920
<v Simon Willison>uncertainty,

00:52:03.160 --> 00:52:03.980
<v Simon Willison>and doubt almost about,

00:52:04.540 --> 00:52:06.560
<v Simon Willison>is it going to break in weird ways?

00:52:07.020 --> 00:52:15.240
<v Simon Willison>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.

00:52:15.540 --> 00:52:16.540
<v Simon Willison>And I've done some of those experiments,

00:52:16.720 --> 00:52:20.280
<v Simon Willison>but I've not pushed it through into a production instance just yet.

00:52:20.340 --> 00:52:21.200
<v Simon Willison>I really need to do that.

00:52:21.440 --> 00:52:28.900
<v Michael Kennedy>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,

00:52:29.120 --> 00:52:29.620
<v Michael Kennedy>and hyper-force.

00:52:29.630 --> 00:52:29.720
<v Michael Kennedy>Outstanding.

00:52:30.440 --> 00:52:31.320
<v Simon Willison>There was a website for that.

00:52:31.410 --> 00:52:32.100
<v Simon Willison>Was that your website?

00:52:32.720 --> 00:52:33.520
<v Simon Willison>No, that's not my website.

00:52:34.040 --> 00:52:34.660
<v Michael Kennedy>Yeah, is it safe?

00:52:34.660 --> 00:52:35.500
<v Michael Kennedy>That was such a great site.

00:52:35.500 --> 00:52:37.040
<v Michael Kennedy>Are we free-threaded yet or something like that?

00:52:37.180 --> 00:52:37.860
<v Simon Willison>That was the one.

00:52:37.950 --> 00:52:38.660
<v Simon Willison>Yeah, that was beautiful.

00:52:39.200 --> 00:52:39.280
<v Simon Willison>Yeah.

00:52:39.600 --> 00:52:39.700
<v Michael Kennedy>Yeah.

00:52:39.910 --> 00:52:43.340
<v Michael Kennedy>So the thing I released is Chameleon RS,

00:52:43.880 --> 00:52:47.820
<v Michael Kennedy>which is the chameleon language re-implemented

00:52:48.010 --> 00:52:52.640
<v Michael Kennedy>in multi-threaded Rust that is 100% free-threaded safe

00:52:53.060 --> 00:52:53.880
<v Michael Kennedy>to use across.

00:52:54.160 --> 00:52:55.380
<v Simon Willison>Oh, I love this.

00:52:55.580 --> 00:52:56.560
<v Simon Willison>No, I haven't seen this at all.

00:52:56.680 --> 00:52:57.420
<v Simon Willison>Yeah, it's pretty new.

00:52:57.540 --> 00:52:59.580
<v Michael Kennedy>It's like two weeks or something old.

00:52:59.880 --> 00:53:02.600
<v Simon Willison>The Rust and C stuff is getting interesting for me as well,

00:53:02.780 --> 00:53:02.900
<v Simon Willison>because,

00:53:03.680 --> 00:53:05.400
<v Simon Willison>again, this is one of those things that agents unlock.

00:53:05.500 --> 00:53:08.440
<v Simon Willison>I was never brave enough to build a C extension for Python,

00:53:08.740 --> 00:53:13.080
<v Simon Willison>because I know enough about C to know that you can shoot yourself in the foot so, so easily.

00:53:13.640 --> 00:53:15.200
<v Simon Willison>But for simple extensions,

00:53:15.520 --> 00:53:17.480
<v Simon Willison>extensions just add a few optimized functions.

00:53:18.040 --> 00:53:23.260
<v Simon Willison>I have faith in like Claude Opus or whatever to spot the memory leaks.

00:53:23.680 --> 00:53:27.500
<v Simon Willison>Because memory leaks aren't, it's not the memory leaks are particularly complicated in simple code.

00:53:27.600 --> 00:53:30.280
<v Simon Willison>It's just that they're very easy to miss if you don't know what you're doing.

00:53:30.660 --> 00:53:36.100
<v Simon Willison>And so I've been experimenting recently with a few little Python C modules and Rust modules as well.

00:53:36.120 --> 00:53:37.540
<v Simon Willison>But I like C uses less memory.

00:53:37.780 --> 00:53:41.820
<v Simon Willison>I love that you can have a tiny little thing that uses like a megabyte of memory and get something useful done.

00:53:42.100 --> 00:53:47.100
<v Simon Willison>And I haven't, I'm not quite brave enough to have pushed any into production yet, but I'm getting close to it.

00:53:47.480 --> 00:53:47.580
<v Michael Kennedy>Yeah.

00:53:47.760 --> 00:53:49.640
<v Simon Willison>Because it feels like the performance,

00:53:49.800 --> 00:53:51.660
<v Simon Willison>like when something runs 25 times faster,

00:53:51.980 --> 00:53:54.920
<v Simon Willison>it's worth putting in that extra effort to figure out, okay,

00:53:55.000 --> 00:54:00.100
<v Simon Willison>how do I get to a point where this has been had a fuzzer run over it and the test coverage is good

00:54:00.360 --> 00:54:03.220
<v Simon Willison>and I've load tested and I feel like it's safe to start using.

00:54:03.540 --> 00:54:05.100
<v Michael Kennedy>I think this I think we're going to

00:54:05.100 --> 00:54:08.580
<v Michael Kennedy>see more of this I think there's a lot of possibility here just switching the template

00:54:08.800 --> 00:54:13.680
<v Michael Kennedy>engine for the talk python courses and website and the other things I'm doing the overall application

00:54:14.420 --> 00:54:19.820
<v Michael Kennedy>time per request dropped by 20 percent not for rendering the template but like every bit of the

00:54:19.900 --> 00:54:24.320
<v Michael Kennedy>request dropped that much you know like it was really significant so I think it's it's going to

00:54:24.220 --> 00:54:26.420
<v Michael Kennedy>start to be one of these things that we look into.

00:54:27.860 --> 00:54:29.680
<v Simon Willison>And again, it even works in WebAssembly.

00:54:29.800 --> 00:54:31.040
<v Simon Willison>You can take your Chameleon Rust

00:54:31.320 --> 00:54:32.860
<v Simon Willison>and you can get it compiled to WebAssembly

00:54:32.940 --> 00:54:35.340
<v Simon Willison>and now you've got all of that stuff just works as well.

00:54:35.760 --> 00:54:35.840
<v Michael Kennedy>Exactly.

00:54:36.460 --> 00:54:37.280
<v Michael Kennedy>Let's keep going.

00:54:37.560 --> 00:54:37.880
<v Michael Kennedy>There we go.

00:54:38.160 --> 00:54:38.380
<v Michael Kennedy>All right.

00:54:38.620 --> 00:54:39.900
<v Michael Kennedy>So let's do what is new.

00:54:40.220 --> 00:54:41.840
<v Michael Kennedy>What is old is new again?

00:54:42.739 --> 00:54:43.980
<v Michael Kennedy>Let me look at the date here.

00:54:44.060 --> 00:54:44.400
<v Michael Kennedy>What's the date?

00:54:45.739 --> 00:54:46.380
<v Michael Kennedy>So 2022.

00:54:47.360 --> 00:54:47.620
<v Michael Kennedy>2022.

00:54:47.720 --> 00:54:48.120
<v Michael Kennedy>I was going to say,

00:54:48.320 --> 00:54:50.080
<v Michael Kennedy>this might actually have been the same time

00:54:50.200 --> 00:54:51.380
<v Michael Kennedy>that you were on to talk about data stuff.

00:54:51.460 --> 00:54:52.500
<v Michael Kennedy>I know it's off by you.

00:54:53.000 --> 00:54:53.720
<v Michael Kennedy>That would have been fun.

00:54:54.200 --> 00:54:56.660
<v Michael Kennedy>So what's new in Python 3.11 for maintainers?

00:54:57.060 --> 00:55:00.240
<v Simon Willison>So the thing that I'm most excited about is the SQLite improvements.

00:55:00.730 --> 00:55:02.500
<v Simon Willison>Like Python bundles SQLite.

00:55:03.020 --> 00:55:07.400
<v Simon Willison>They added a whole bunch of stuff in 3.11 that I've been wanting to use for ages.

00:55:07.960 --> 00:55:10.560
<v Simon Willison>You can now register custom window functions.

00:55:10.900 --> 00:55:14.820
<v Simon Willison>So you can do like super complicated aggregations and stuff through custom Python code.

00:55:15.180 --> 00:55:16.160
<v Simon Willison>There's set limits,

00:55:16.370 --> 00:55:20.400
<v Simon Willison>which lets you start messing around with some more of the deeper SQLite

00:55:20.420 --> 00:55:24.880
<v Simon Willison>internals for how much memory caps and things like that. Those are super great.

00:55:26.220 --> 00:55:27.360
<v Simon Willison>And I had some

00:55:27.540 --> 00:55:32.260
<v Simon Willison>workarounds in dataset for SQLite stuff that didn't work in 3.10 that I got to drop.

00:55:32.580 --> 00:55:33.280
<v Simon Willison>So already I've

00:55:33.280 --> 00:55:36.540
<v Simon Willison>had little bits of code cleanup from bumping up to 3.11.

00:55:36.720 --> 00:55:38.800
<v Simon Willison>I think TomlLib is a big deal because

00:55:39.620 --> 00:55:45.319
<v Simon Willison>now you can use Toml as your configuration language without thinking about additional

00:55:45.340 --> 00:55:45.640
<v Simon Willison>dependencies.

00:55:46.220 --> 00:55:53.060
<v Simon Willison>Although it's kind of weird that pyproject.toml has been using Toml even back in

00:55:53.100 --> 00:55:55.640
<v Simon Willison>3.10 because they bundled TomlLib into,

00:55:56.040 --> 00:55:58.340
<v Simon Willison>was it the packaging module or one of those,

00:55:58.840 --> 00:56:01.120
<v Simon Willison>or pip or something had TomlLib bundled in. But this is great.

00:56:01.480 --> 00:56:03.640
<v Simon Willison>Toml is a perfectly cromulent

00:56:04.100 --> 00:56:04.660
<v Simon Willison>configuration language.

00:56:04.920 --> 00:56:05.540
<v Simon Willison>It's very stable.

00:56:06.080 --> 00:56:08.960
<v Simon Willison>And now we can just start using that in Python for free.

00:56:09.440 --> 00:56:15.240
<v Simon Willison>Some of the stuff in here, I haven't quite got my head around yet around the async task group,

00:56:15.320 --> 00:56:21.060
<v Simon Willison>groups those feel very important i just haven't used them yet so i haven't they haven't baked them

00:56:21.060 --> 00:56:25.000
<v Simon Willison>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

00:56:25.240 --> 00:56:30.740
<v Michael Kennedy>either but if you're doing like you previously mentioned like hey i've got maybe six llm calls

00:56:30.810 --> 00:56:35.700
<v Michael Kennedy>i got a tool call like why would i do if they're independent why would i wait for one and the other

00:56:36.080 --> 00:56:39.660
<v Michael Kennedy>so i think the task groups are really good for that kind of stuff because if you want to cancel

00:56:39.730 --> 00:56:43.320
<v Michael Kennedy>it then they manage all of them and they can cancel it as a group or if there's an exception

00:56:43.340 --> 00:56:45.360
<v Michael Kennedy>it gathers the exceptions across the different,

00:56:45.690 --> 00:56:46.740
<v Michael Kennedy>like if both of them failed,

00:56:46.810 --> 00:56:47.580
<v Michael Kennedy>but in different ways,

00:56:47.820 --> 00:56:49.800
<v Michael Kennedy>you want to know there were two failures and how.

00:56:49.800 --> 00:56:50.420
<v Simon Willison>It feels great.

00:56:50.780 --> 00:56:51.720
<v Simon Willison>It's just, I just,

00:56:51.940 --> 00:56:54.320
<v Simon Willison>I'm not confident enough in it just yet.

00:56:55.480 --> 00:56:56.800
<v Simon Willison>There's a whole bunch of typing stuff,

00:56:57.040 --> 00:56:57.960
<v Simon Willison>which I've not, again,

00:56:57.990 --> 00:56:59.040
<v Simon Willison>I haven't spent time with yet,

00:56:59.200 --> 00:57:01.880
<v Simon Willison>but feels like a nice sort of develop,

00:57:02.120 --> 00:57:04.040
<v Simon Willison>quality of developer experience upgrade.

00:57:04.600 --> 00:57:04.680
<v Michael Kennedy>Yeah,

00:57:04.860 --> 00:57:05.580
<v Michael Kennedy>we said it before.

00:57:05.590 --> 00:57:09.600
<v Michael Kennedy>I think this one is worth just a 10% to 60% faster

00:57:09.760 --> 00:57:11.160
<v Michael Kennedy>than even 3.10,

00:57:11.490 --> 00:57:12.080
<v Michael Kennedy>like for free.

00:57:12.400 --> 00:57:12.820
<v Simon Willison>Outstanding.

00:57:13.200 --> 00:57:14.140
<v Simon Willison>That's outstanding.

00:57:14.530 --> 00:57:15.820
<v Simon Willison>And then the other one, it's a tiny one,

00:57:16.220 --> 00:57:17.540
<v Simon Willison>datetime.utc.

00:57:17.810 --> 00:57:18.900
<v Simon Willison>I really like that.

00:57:20.880 --> 00:57:24.040
<v Simon Willison>I try to use UTC for basically everything,

00:57:24.270 --> 00:57:27.360
<v Simon Willison>and now it's that tiny bit more convenient to have that as the default.

00:57:27.780 --> 00:57:28.040
<v Michael Kennedy>Yeah,

00:57:28.360 --> 00:57:29.460
<v Michael Kennedy>it's surprising.

00:57:31.880 --> 00:57:33.840
<v Michael Kennedy>It's always a little bit trickier.

00:57:34.300 --> 00:57:34.900
<v Michael Kennedy>It's so hard.

00:57:35.520 --> 00:57:38.920
<v Simon Willison>There's a brand new Rust library that Burnt Sushi,

00:57:39.220 --> 00:57:40.620
<v Simon Willison>who's my favorite Rust developer,

00:57:40.800 --> 00:57:43.460
<v Simon Willison>He did the like rip grep and rust regular expressions.

00:57:43.840 --> 00:57:45.780
<v Simon Willison>He just put out his new time library,

00:57:46.220 --> 00:57:47.420
<v Simon Willison>which is the result of like many,

00:57:47.620 --> 00:57:48.280
<v Simon Willison>many years

00:57:48.820 --> 00:57:50.120
<v Simon Willison>of poking at that problem.

00:57:50.720 --> 00:57:51.380
<v Simon Willison>And that one's,

00:57:51.680 --> 00:57:53.180
<v Simon Willison>even if you don't do any rust at all,

00:57:53.360 --> 00:57:54.640
<v Simon Willison>it's worth reading up on that

00:57:54.820 --> 00:57:58.820
<v Simon Willison>just because it's a masterclass in time-based API design.

00:57:59.340 --> 00:58:00.980
<v Simon Willison>Like you will become a better developer

00:58:01.100 --> 00:58:03.660
<v Simon Willison>if you read the release notes for his time library,

00:58:04.020 --> 00:58:06.640
<v Simon Willison>because it will help you fill in so many of the gaps

00:58:06.800 --> 00:58:08.560
<v Simon Willison>in your sort of mental model of how time should work.

00:58:09.000 --> 00:58:09.020
<v Michael Kennedy>Yeah,

00:58:09.500 --> 00:58:11.780
<v Michael Kennedy>it's the testing of time,

00:58:11.980 --> 00:58:14.160
<v Michael Kennedy>like the ability to like change time with mocking.

00:58:14.360 --> 00:58:14.480
<v Michael Kennedy>It's just,

00:58:14.640 --> 00:58:14.900
<v Michael Kennedy>it's always,

00:58:15.100 --> 00:58:15.900
<v Michael Kennedy>it's endlessly fun.

00:58:16.160 --> 00:58:17.160
<v Simon Willison>And I've spent so much time,

00:58:17.460 --> 00:58:19.280
<v Simon Willison>so much of my career working on event websites

00:58:19.980 --> 00:58:22.360
<v Simon Willison>and time on event websites is so much harder

00:58:22.720 --> 00:58:23.820
<v Simon Willison>because you're dealing with human,

00:58:23.940 --> 00:58:26.180
<v Simon Willison>that's where time zones and daylight saving time stuff

00:58:26.320 --> 00:58:27.500
<v Simon Willison>is absolutely critical.

00:58:27.840 --> 00:58:30.100
<v Simon Willison>You know, you're dealing with these human models of time.

00:58:30.600 --> 00:58:32.500
<v Simon Willison>There's this really common mistake people make

00:58:32.500 --> 00:58:35.080
<v Simon Willison>when they're building event websites or event tools

00:58:35.360 --> 00:58:37.700
<v Simon Willison>where the user says it's happening at 3 p.m.

00:58:38.040 --> 00:58:39.280
<v Simon Willison>on Friday the 15th of November,

00:58:39.580 --> 00:58:40.300
<v Simon Willison>2027.

00:58:40.870 --> 00:58:42.080
<v Simon Willison>And so you say, okay,

00:58:42.240 --> 00:58:42.320
<v Simon Willison>well,

00:58:42.630 --> 00:58:43.560
<v Simon Willison>I know what time zone is.

00:58:43.680 --> 00:58:44.860
<v Simon Willison>I'm going to convert that to UTC

00:58:44.950 --> 00:58:46.620
<v Simon Willison>and I'm going to store the UTC time

00:58:47.080 --> 00:58:49.580
<v Simon Willison>that is 3 p.m. in that country on that date.

00:58:49.970 --> 00:58:51.680
<v Simon Willison>And then between now and that date,

00:58:52.200 --> 00:58:53.860
<v Simon Willison>somebody passes a law that cancels

00:58:54.000 --> 00:58:55.360
<v Simon Willison>daylight savings time in that area.

00:58:55.730 --> 00:58:58.240
<v Simon Willison>And now your time in the database is off by an hour

00:58:58.590 --> 00:58:59.740
<v Simon Willison>and you have no way of telling

00:58:59.890 --> 00:59:01.360
<v Simon Willison>because you didn't write down,

00:59:01.680 --> 00:59:04.360
<v Simon Willison>the user said this is in this particular time zone

00:59:04.430 --> 00:59:05.760
<v Simon Willison>at this day in this location.

00:59:06.240 --> 00:59:07.520
<v Simon Willison>That's the information you need to figure out

00:59:07.520 --> 00:59:08.280
<v Simon Willison>when 3 p.m.

00:59:08.560 --> 00:59:10.240
<v Simon Willison>actually is, really frustrating.

00:59:10.520 --> 00:59:11.760
<v Simon Willison>Like all of these Yeah,

00:59:11.860 --> 00:59:13.320
<v Michael Kennedy>the nuances are just endless.

00:59:13.680 --> 00:59:13.920
<v Michael Kennedy>Oh my

00:59:13.920 --> 00:59:14.100
<v Michael Kennedy>God.

00:59:14.400 --> 00:59:14.920
<v Simon Willison>Absolutely,

00:59:15.120 --> 00:59:15.220
<v Simon Willison>yeah.

00:59:15.540 --> 00:59:15.880
<v Michael Kennedy>They are.

00:59:16.160 --> 00:59:17.120
<v Michael Kennedy>But our podcast

00:59:17.120 --> 00:59:18.480
<v Michael Kennedy>together is not endless.

00:59:18.880 --> 00:59:19.520
<v Michael Kennedy>I think our

00:59:19.520 --> 00:59:20.960
<v Michael Kennedy>time is up, Simon,

00:59:21.380 --> 00:59:21.680
<v Michael Kennedy>but it's

00:59:21.680 --> 00:59:23.160
<v Michael Kennedy>been a really interesting conversation.

00:59:23.540 --> 00:59:24.260
<v Michael Kennedy>And honestly,

00:59:24.520 --> 00:59:25.660
<v Michael Kennedy>if we didn't have a time bound,

00:59:25.980 --> 00:59:26.400
<v Michael Kennedy>we could go

00:59:26.400 --> 00:59:28.140
<v Michael Kennedy>for hours and hours about all that. There's just

00:59:28.140 --> 00:59:29.240
<v Michael Kennedy>so much We really could.

00:59:29.380 --> 00:59:29.980
<v Michael Kennedy>We didn't even

00:59:29.980 --> 00:59:32.060
<v Simon Willison>talk about vibe coding computer games,

00:59:32.220 --> 00:59:33.320
<v Simon Willison>which is my hobby

00:59:33.320 --> 00:59:33.780
<v Simon Willison>at the moment.

00:59:35.220 --> 00:59:36.180
<v Simon Willison>You can build really

00:59:36.180 --> 00:59:37.340
<v Simon Willison>fun computer games these days.

00:59:37.380 --> 00:59:38.180
<v Simon Willison>It's amazing.

00:59:38.620 --> 00:59:38.880
<v Michael Kennedy>That's awesome.

00:59:39.040 --> 00:59:42.240
<v Michael Kennedy>My daughter is really into vibe coding computer games.

00:59:42.400 --> 00:59:44.200
<v Michael Kennedy>She'll play a game and she'll be like,

00:59:44.640 --> 00:59:46.380
<v Michael Kennedy>this game is pretty fun, but it lacks X, Y,

00:59:46.540 --> 00:59:46.680
<v Michael Kennedy>Z.

00:59:46.880 --> 00:59:49.480
<v Michael Kennedy>And she's like, I'm opening code X, I'm fixing it.

00:59:49.640 --> 00:59:50.740
<v Michael Kennedy>You know, and she'll just make her own.

00:59:50.940 --> 00:59:51.280
<v Michael Kennedy>It's amazing.

00:59:51.400 --> 00:59:52.000
<v Simon Willison>How old is she?

00:59:52.360 --> 00:59:53.180
<v Michael Kennedy>She just turned 18.

00:59:53.680 --> 00:59:54.040
<v Simon Willison>Amazing.

00:59:54.440 --> 00:59:56.580
<v Simon Willison>Yeah, that to me, like on the one hand,

00:59:56.980 --> 00:59:59.400
<v Simon Willison>if you're offended by AI generated graphics,

00:59:59.880 --> 00:59:59.980
<v Simon Willison>music,

01:00:00.340 --> 01:00:00.620
<v Simon Willison>writing,

01:00:00.920 --> 01:00:01.500
<v Simon Willison>and code,

01:00:01.860 --> 01:00:02.580
<v Simon Willison>games are all of that.

01:00:02.760 --> 01:00:05.720
<v Simon Willison>It's like the worst possible form of offense

01:00:05.980 --> 01:00:06.640
<v Simon Willison>against human creativity.

01:00:06.660 --> 01:00:09.060
<v Michael Kennedy>Like fingernails on a chalkboard sort of thing.

01:00:09.300 --> 01:00:09.400
<v Michael Kennedy>Exactly.

01:00:10.080 --> 01:00:10.680
<v Simon Willison>But flip side,

01:00:10.900 --> 01:00:13.200
<v Simon Willison>the idea that people don't have to,

01:00:13.280 --> 01:00:14.060
<v Simon Willison>like computer programming,

01:00:14.560 --> 01:00:16.040
<v Simon Willison>program games is also the hardest form

01:00:16.140 --> 01:00:16.900
<v Simon Willison>of computer programming,

01:00:17.140 --> 01:00:17.500
<v Simon Willison>I think.

01:00:17.740 --> 01:00:18.900
<v Simon Willison>And the idea that we're unleashing

01:00:19.420 --> 01:00:21.180
<v Simon Willison>this wave of creativity from people

01:00:21.620 --> 01:00:23.860
<v Simon Willison>who can just try weird, obscure,

01:00:24.360 --> 01:00:25.040
<v Simon Willison>like crazy things.

01:00:25.160 --> 01:00:25.960
<v Simon Willison>And most of them will be terrible.

01:00:26.100 --> 01:00:26.840
<v Simon Willison>It doesn't matter.

01:00:27.240 --> 01:00:28.240
<v Simon Willison>And the ones that aren't terrible

01:00:28.280 --> 01:00:28.960
<v Simon Willison>are going to be incredible.

01:00:29.080 --> 01:00:30.960
<v Simon Willison>I'm really excited to see what comes out of

01:00:31.140 --> 01:00:33.200
<v Simon Willison>the people being unleashed on the world in this way.

01:00:33.500 --> 01:00:34.080
<v Michael Kennedy>It's going to be amazing.

01:00:34.500 --> 01:00:35.340
<v Michael Kennedy>It's going to be interesting.

01:00:35.940 --> 01:00:36.860
<v Michael Kennedy>It's definitely going to be something.

01:00:37.060 --> 01:00:38.120
<v Michael Kennedy>So I'm excited as well.

01:00:38.420 --> 01:00:39.880
<v Michael Kennedy>Simon, final thoughts for maintainers

01:00:39.980 --> 01:00:41.040
<v Michael Kennedy>thinking about this sort of

01:00:41.320 --> 01:00:42.580
<v Michael Kennedy>the old thing is new again.

01:00:42.740 --> 01:00:43.240
<v Michael Kennedy>What do you tell them?

01:00:43.480 --> 01:00:45.020
<v Simon Willison>So I think our responsibility

01:00:45.780 --> 01:00:47.200
<v Simon Willison>with all of the AI stuff,

01:00:47.560 --> 01:00:48.860
<v Simon Willison>there are good ways to apply this stuff

01:00:48.860 --> 01:00:50.200
<v Simon Willison>and bad ways to apply this stuff.

01:00:50.320 --> 01:00:52.280
<v Simon Willison>And we need to stamp down on the bad ways.

01:00:52.600 --> 01:00:55.080
<v Simon Willison>And we need to make sure as many people,

01:00:55.280 --> 01:00:56.520
<v Simon Willison>like make sure that we're using it

01:00:56.580 --> 01:00:57.380
<v Simon Willison>in productive ways

01:00:57.560 --> 01:00:59.500
<v Simon Willison>that add value to human society

01:01:00.040 --> 01:01:00.940
<v Simon Willison>and that we help other people

01:01:01.340 --> 01:01:02.300
<v Simon Willison>figure out how to do that.

01:01:02.640 --> 01:01:04.200
<v Simon Willison>Like that's my sort of approach

01:01:04.220 --> 01:01:05.900
<v Simon Willison>to AI ethics almost from the start

01:01:05.920 --> 01:01:06.020
<v Simon Willison>been,

01:01:06.500 --> 01:01:09.680
<v Simon Willison>I don't think we, this stuff doesn't get uninvented. It's not going to go away.

01:01:10.140 --> 01:01:11.480
<v Simon Willison>How do we make it out?

01:01:11.640 --> 01:01:11.860
<v Simon Willison>What, what,

01:01:12.380 --> 01:01:15.120
<v Simon Willison>what can we do to make the impact as positive as possible?

01:01:15.320 --> 01:01:20.440
<v Simon Willison>Like how can we find the things that it makes better and do more of those and bring as many

01:01:20.540 --> 01:01:21.720
<v Simon Willison>people along for the ride as possible?

01:01:21.900 --> 01:01:22.880
<v Michael Kennedy>It's an exciting time.

01:01:23.180 --> 01:01:24.740
<v Michael Kennedy>And so I, we're not there,

01:01:25.040 --> 01:01:25.620
<v Michael Kennedy>I guess, enjoy,

01:01:26.200 --> 01:01:28.100
<v Michael Kennedy>enjoy the ride and it's going to be interesting.

01:01:28.380 --> 01:01:29.500
<v Michael Kennedy>So you'll be able to say you got

01:01:29.560 --> 01:01:30.100
<v Michael Kennedy>to live through it.

01:01:30.300 --> 01:01:31.060
<v Simon Willison>Oh, it's definitely,

01:01:31.260 --> 01:01:32.880
<v Simon Willison>may you live in interesting times,

01:01:33.060 --> 01:01:34.039
<v Simon Willison>the old curse where

01:01:34.060 --> 01:01:36.560
<v Simon Willison>We're absolutely living through interesting times at the moment.

01:01:36.920 --> 01:01:37.240
<v Michael Kennedy>We are.

01:01:37.440 --> 01:01:38.540
<v Michael Kennedy>Well, it was an interesting podcast.

01:01:38.840 --> 01:01:39.440
<v Michael Kennedy>Thanks for being here, Simon.

01:01:39.740 --> 01:01:40.120
<v Simon Willison>Thanks a lot.

01:01:40.200 --> 01:01:40.880
<v Simon Willison>This has been really fun.

01:01:41.120 --> 01:01:41.420
<v Michael Kennedy>It has.

01:01:41.600 --> 01:01:41.720
<v Michael Kennedy>Bye.

01:01:42.700 --> 01:01:44.820
<v Michael Kennedy>This has been another episode of Talk Python To Me.

01:01:45.200 --> 01:01:45.920
<v Michael Kennedy>Thank you to our sponsors.

01:01:46.140 --> 01:01:47.460
<v Michael Kennedy>Be sure to check out what they're offering.

01:01:47.620 --> 01:01:48.980
<v Michael Kennedy>It really helps support the show.

01:01:49.740 --> 01:01:52.060
<v Michael Kennedy>This portion of Talk Python To Me is brought to you by,

01:01:52.300 --> 01:01:52.460
<v Michael Kennedy>well,

01:01:52.700 --> 01:01:52.820
<v Michael Kennedy>you.

01:01:53.240 --> 01:01:55.940
<v Michael Kennedy>I recently added a membership program to Talk Python.

01:01:56.720 --> 01:01:58.860
<v Michael Kennedy>Membership starts at just $5 a month,

01:01:59.020 --> 01:02:00.360
<v Michael Kennedy>and it really helps support the show.

01:02:00.680 --> 01:02:04.640
<v Michael Kennedy>So become a member and get access to top-tier live tech events and much more.

01:02:05.140 --> 01:02:07.920
<v Michael Kennedy>Visit talkpython.fm/meetups to get started today.

01:02:08.320 --> 01:02:10.160
<v Michael Kennedy>If you or your team needs to learn Python,

01:02:10.380 --> 01:02:13.400
<v Michael Kennedy>we have over 270 hours of beginner and advanced

01:02:13.680 --> 01:02:17.940
<v Michael Kennedy>courses on topics ranging from complete beginners to async code, Flask,

01:02:18.200 --> 01:02:18.340
<v Michael Kennedy>Django,

01:02:18.760 --> 01:02:19.780
<v Michael Kennedy>HTMX, and even

01:02:20.100 --> 01:02:20.440
<v Michael Kennedy>LLMs.

01:02:20.740 --> 01:02:21.140
<v Michael Kennedy>Best of all,

01:02:21.360 --> 01:02:22.940
<v Michael Kennedy>there's no subscription in sight.

01:02:23.480 --> 01:02:25.260
<v Michael Kennedy>Browse the catalog at talkpython.fm.

01:02:25.940 --> 01:02:29.340
<v Michael Kennedy>And if you're not already subscribed to the show on your favorite podcast player,

01:02:29.520 --> 01:02:30.420
<v Michael Kennedy>what

01:02:30.440 --> 01:02:30.600
<v Michael Kennedy>for.

01:02:31.400 --> 01:02:34.040
<v Michael Kennedy>Just search for Python in your podcast player. We should be right at the top.

01:02:34.500 --> 01:02:34.660
<v Michael Kennedy>If you

01:02:34.800 --> 01:02:38.580
<v Michael Kennedy>enjoy that geeky rap song, you can download the full track. The link is actually in your podcast

01:02:38.800 --> 01:02:39.340
<v Michael Kennedy>blur share notes.

01:02:40.200 --> 01:02:40.820
<v Michael Kennedy>This is your host,

01:02:41.020 --> 01:02:41.500
<v Michael Kennedy>Michael Kennedy.

01:02:41.860 --> 01:02:42.960
<v Michael Kennedy>Thank you so much for listening.

01:02:43.150 --> 01:02:43.280
<v Michael Kennedy>I

01:02:43.370 --> 01:02:43.940
<v Michael Kennedy>really appreciate it.

01:02:44.390 --> 01:02:45.100
<v Michael Kennedy>I'll see you next time.