Latest / Talk Python To Me / #524: 38 things Python developers should learn in 2025
Transcript
- 0:00Python in 2025 is different.
- 0:02Threads are really about to run in parallel.
- 0:05Installs, finish before your coffee cools, and containers are the default.
- 0:10In this episode, we count down 38 things to learn this year.
- 0:14Free-threaded CPython, uv for packaging, Docker and Compose, Kubernetes with Tilt, DuckDB and Arrow, PyScript at the Edge, plus MCP for sane AI workflows.
- 0:25Expect practical wins and migration paths.
- 0:28No buzzword bingo, just what pays off in real apps.
- 0:31Join me, along with Peter Wang and Calvin Hendrix Parker, for a fun, fast-moving conversation.
- 0:37This is Talk Python To Me, episode 524, recorded September 22nd, 2025.
- 1:01Welcome to Talk Python To Me, the number one podcast for Python developers and data scientists.
- 1:06This is your host, Michael Kennedy. I'm a PSF fellow who's been coding for over 25 years.
- 1:11Let's connect on social media.
- 1:13You'll find me and Talk Python on Mastodon, Bluesky, and X.
- 1:16The social links are all in the show notes.
- 1:19You can find over 10 years of past episodes at talkpython.fm.
- 1:23And if you want to be part of the show, you can join our recording live streams.
- 1:27That's right.
- 1:28We live stream the raw, uncut version of each episode on YouTube.
- 1:32Just visit talkpython.fm/youtube to see the schedule of upcoming events.
- 1:37and be sure to subscribe and press the bell so you'll get notified anytime we're recording.
- 1:42This episode is brought to you by Sentry. Don't let those errors go unnoticed. Use Sentry like we do here at Talk Python. Sign up at talkpython.fm/sentry. And it's brought to you by Agency.
- 1:54Discover agentic AI with Agency. Their layer lets agents find, connect, and work together, any stack, anywhere. Start building the internet of agents at talkpython.fm/agency, spelled A-G-N-T-C-Y. Hello, hello, Peter and Calvin. Welcome back to Talk Python To Me, to both of you. It's great to be here. Great to be here. Thanks for having us.
- 2:14Yeah, I know you both are very passionate technologists and Pythonistas, and we're going to dive into some really exciting things. What do people need to know as developers and data scientists in 2025? And I'm going to take a wild guess and bet that these trends, most of them carry over to 2026.
- 2:34You know, we're just a few months.
- 2:36So let's just really quickly have both of you introduce yourselves just because not everyone has had a chance to listen to every episode.
- 2:43And even if they did, they may not remember.
- 2:46So Peter, welcome.
- 2:47Who are you?
- 2:48Hi, I'm Peter Wang.
- 2:49I'm a founder of Anaconda and the creator of the PyData community.
- 2:54And I'm sort of leading the advocacy, at least, and been at the center of evangelism for the use of Python in the data science and machine learning world for over 12 years now. I think 13 years at this point. But my day job is at Anaconda. I'm the chief AI officer. So I work on open source community projects, innovation, looking at AI things and how that impacts our community and our users and what good could look like there for us. I mean, there's a lot of discussion on AI, of course, good, bad, and ugly. And I'm really trying to figure out if we as responsible open source community stewards, you know, want to have something meaningful to say here, what are the right things to do? So that's what I spend a lot of my time focused on. Yeah, that's really good
- 3:35work. Yeah, it's really good work. And congrats with all the access you've had at Anaconda. It's thank you made a serious dent. I you were on you were featured in or you were part of the Python documentary, right? That's right. Yeah, that was really great. I really appreciated your words in
- 3:51there. Thank you. Thank you. Yeah, that was great. Really honor to be included in that.
- 3:55Well, tell people, I haven't technically talked about it on the documentary or the documentary on the podcast very much.
- 4:00So you just give people a quick rundown on what that is and why they should check it out.
- 4:04Well, well, anyone who's listening to this podcast should absolutely watch the documentary because it is just got a cast of characters telling the story about how our favorite programming language came to be.
- 4:13All of the not all.
- 4:14OK, not all.
- 4:15But some of the travails that have challenged us as a community over over the period of time since since its inception, you know, 30 years ago at this point.
- 4:24And so it's just a really fun, nice, you know, I think it's weird because Python has been around forever.
- 4:29Right. And yet in many respects, we are still the world is changing.
- 4:33And I think there's lots of amazing new opportunities for Python as a language.
- 4:37And we've been growing, growing so fast and so much and evolving as a language and as a community.
- 4:44This documentary, I think, is a nice way to sort of like check in and say, oh, wow, we got to here.
- 4:49And here's the journey we've been on.
- 4:50And that gives us almost the space to then be a little bit more intentional about talking about where we want to go from here, which I think is something very important that we need to do as a community.
- 4:58So anyway, I just really liked it from philosophically speaking from that perspective.
- 5:02But it's also just fun just to get the perspectives of like the CPython core maintainers and the BDFL and all the stuff on just the language over the years.
- 5:09Yeah, I thought it was really excellent.
- 5:11Yeah, I enjoyed it tremendously.
- 5:14Like I really loved hearing all the old stories.
- 5:17I've been around for a long time in the community and seen all the familiar faces.
- 5:20And I feel like it gives a face and a level of empathy to the community that's needed.
- 5:25Yeah.
- 5:25I would say that the production quality was almost as good as Calvin's camera here.
- 5:31You always look great on these streams.
- 5:35Welcome.
- 5:35Tell people about yourself.
- 5:36Thank you, Michael.
- 5:37I appreciate that.
- 5:40Well, I guess I can give a quick introduction.
- 5:43I'm Calvin Hendryx-Parker.
- 5:44I'm CTO and co-founder of Six Feet Up.
- 5:46We are a Python and AI consulting agency who helps impactful tech leaders solve the hard problems.
- 5:52I've been in the Python community for ages.
- 5:55I probably don't outnumber Peter in years, but at least since 2000, I've been involved.
- 6:00I started with Zope and then through that, the Plone community got very involved in the governance open source project.
- 6:06Now we do a lot of Django, a lot of other Python open source data projects like Airflow, for example.
- 6:13I think that's on the list for later.
- 6:14And so we just enjoy hanging out and being an awesome group of folks who love solving the hard problems.
- 6:20Yeah, excellent.
- 6:21You've been doing it longer than me for sure.
- 6:23I'm the baby.
- 6:25Well, 2000 is about when I got involved in Python as well.
- 6:28So the old manual was supposed to be maybe from 99, but basically 2000.
- 6:32Yeah, my first Python was 2003, and I think there were 250 people in the room.
- 6:38It was amazing.
- 6:39Yeah, you actually beat me by a couple of years.
- 6:40I went to, I went to 05 was my first one at George Washington University.
- 6:45I think it was.
- 6:46Yeah.
- 6:46In DC.
- 6:47And it was about 200 something people.
- 6:48They had a track in the keynote speakers.
- 6:51Wow.
- 6:52I've only been doing this since 2011.
- 6:55So I'm just barely getting started.
- 6:57That used to seem pretty recent ago, but it doesn't anymore.
- 6:59Oddly.
- 7:00No, it turns out it was, yeah, it's a long time ago.
- 7:02We're halfway through the 2020s now.
- 7:04It's crazy.
- 7:05I know.
- 7:05Yeah.
- 7:05Yeah.
- 7:06When you said 2025 things that developers should learn in 2025, I was like, is this a science fiction movie we're talking about.
- 7:12Exactly.
- 7:12What is this like then?
- 7:13It's a dystopian science fiction movie.
- 7:14It's the same crap we had to deal with in 2010.
- 7:18Mostly.
- 7:19Although async back then, it was interesting.
- 7:21We didn't have, you know, we had staff list, I guess.
- 7:24There's a, I don't know.
- 7:262010.
- 7:26There's tornado.
- 7:27Yeah.
- 7:27There were various async systems.
- 7:29Anyway, salary.
- 7:30Yeah.
- 7:31Wow.
- 7:31We've got, we've got free threaded Python.
- 7:33Now we do.
- 7:34Futures now.
- 7:35Yes.
- 7:36Almost.
- 7:36We almost have free threaded Python.
- 7:38Yeah.
- 7:38Yeah.
- 7:38Yeah.
- 7:39Spoiler alert.
- 7:39That may make an appearance in one of the topics.
- 7:42Well, we may not get to 20 things, but they may not be 20 big, bold items, right?
- 7:49Yeah.
- 7:49We have a list of things we want to go through.
- 7:51That's right.
- 7:52Peter, we reserve the right to design the designation of the size of the buckets that define the things.
- 7:57The things, that's right.
- 7:59But I think the plan is we're going to just riff on some ideas we think are either emerging or current important trends or even foundational things.
- 8:08that people should be paying attention to in the zeitgeist right now, right?
- 8:13What are things that maybe you haven't necessarily been tracking or you heard of, but you're like, ah, I haven't got time for that, or it's not for me yet.
- 8:20So I think that'll be fun.
- 8:22Let's start with you, Peter.
- 8:24What's your first...
- 8:25We all gathered up a couple of things that we think might be super relevant.
- 8:29And yeah, what do you think?
- 8:31So I think, well, let's just get started with it.
- 8:33Let's just talk about the free threading bit.
- 8:35And let's really, because this is a kind of, it touches the past, and it also really takes us into the future.
- 8:41And it's this thing that has taken quite some time to emerge.
- 8:44I think the GIL has been a topic of discussion since as long as I've been using Python.
- 8:49And finally, we have, courtesy of the team at Meta, an excellent set of patches that delivered true free threading to Python.
- 8:58And of course, this is both a blessing and a curse, right?
- 9:00You should be careful what you ask for.
- 9:02Because now we end up having to deal with true free threading in Python.
- 9:05And for those who maybe are not so familiar with this whole topic, the global interpreter lock, we call it GIL, G-I-L for short.
- 9:14The global interpreter lock is how the Python virtual machine protects its innards.
- 9:18And so when you use Python and you write code, even if you use threading, like the threading module in Python, ultimately the CPython interpreter itself as a system level process, it only has one real thread.
- 9:30And it has this global interpreter lock that locks many of the internals of the interpreter.
- 9:35The problem is that sometimes you want to have real multi-threading.
- 9:38And so you have to release this global interpreter lock and doing this, doing this is hard to
- 9:44get right, especially if you reach into C modules and whatnot.
- 9:47The most popular C modules are pretty good at handling this kind of thing.
- 9:51NumPy and others come to mind.
- 9:52So we get really great performance from those when they release the gil.
- 9:56But if you want to actually do a lot of Python logic in multiple threads, you end up essentially getting no lift whatsoever by using a threading module with classic single threaded or GIL locked python with the free threading you actually now are able to have threads running in parallel touching things like free lists and stuff like that and and and you know module definitions in the interpreter itself now what this means is a lot of python modules or packages which had been developed when Python was, you know, implicitly single threaded, they now have the potential of thread contention, race conditions, all sorts of weird and unexpected behavior when they're used in a free threaded way. So we have this patch, we have this change now for free threading in the Python interpreter itself. That means that however, what that means is we have to make sure that all of the rest of the package ecosystem is updated and tested to work with free threaded Python.
- 10:51So in Python 3.13, it was incorporated as an experimental.
- 10:56It was in the code base, but it was a build time feature.
- 10:59So you have to compile your own Python interpreter and turn on that flag to get a version of the interpreter that would be free-threaded.
- 11:05In 3.14, it is now supported in the interpreter.
- 11:09It's still not turned on by default.
- 11:11And then at some indeterminate date, it will be turned on by default.
- 11:16The classic behavior with the global interblock will still always be there as a fallback for safety and compatibility and all that.
- 11:23But anyway, we're right now at the point where the core CPython team has said, hey, we're ready to take this thing to supported mode and let the bugs flow, right?
- 11:32So now if you go and install Python,
- 11:36a Python build with, it actually has a different ABI tag.
- 11:39So it's CP313 or 314T for threading or free threading.
- 11:45um so that's available through you know python.org there's a condo bill for it as well and um so right now there's actually a page maybe we'll have the link for it i think in the in the show notes right but there's a page that lists what the status is think of the free threaded wheels um and uh right now 105 out of 360 that are passing basically having the maintainers have updated them um and this is out of the top like oh there it is great yeah out of the top 500 um Python packages, something like this.
- 12:17So you can see we have, as a community, a lot of work to do.
- 12:19So the call to action here is not only should a Python developer learn this, because this is definitely coming and everyone has a multi-core machine now.
- 12:27So this is definitely coming.
- 12:29But you can also, this is a great way to give back.
- 12:31You know, we talk about in the open source community oftentimes, how do we get starter bugs in there for people to start becoming contributing members of the community?
- 12:37This is a great way to give back.
- 12:38If there's some packages you see here that are yellow, you're like, wait, I use AIoHttp.
- 12:42Like, let me go and test that with free threading and see if I can bang, you know, just beat up my beat up with my code in production and see like what what fails there.
- 12:50So these are this is a great way for the community to really get back and help us test and make sure all this works on what is certainly to be the next generation of the Python interpreter.
- 12:58Yeah, there was a great talk at DjangoCon just two weeks ago by Michael Lyle.
- 13:03He gave a talk about using free threaded, free threading in Django.
- 13:07And I think right now your mileage may vary was the answer.
- 13:10Like it kind of depends.
- 13:12I can only imagine going through and trying to commit and help.
- 13:16Threading is hard.
- 13:17It sounds like free threading is harder to wrap your brain around.
- 13:20So I think it'd be tricky for someone starting and learning something new.
- 13:23This may be on the more advanced edge of what someone should be learning.
- 13:28It's more for the advanced crotchety, you know, senior developers.
- 13:32I ain't got time to contribute to open source.
- 13:34You can.
- 13:35You can make your own life better.
- 13:36We can all sort of, this is the sort of stone soup or good old Amish barn raising.
- 13:39We should all get together and chip in.
- 13:41But you're right.
- 13:42Debugging async free threading issues is definitely not a beginner kind of task.
- 13:47Sure.
- 13:47But there's a lot of people who do have that experience from probably more from other languages or C extensions who could jump in, right?
- 13:54Yeah.
- 13:55Actually, if you're a C++ developer who has been forced to use Python because of our success of driving the growth and adoption of the community, and you're really angry about this and you want to show other ways that Python is broken, this is a great way to show how Python has broken is to test really gnarly async and multi-threaded use cases.
- 14:11Actually, one thing about this that I will point out for the more advanced users, Dave Beasley gave a great talk years ago at PyCon about Python parallelism and are you IO bound?
- 14:21Are you CPU bound?
- 14:23You know what?
- 14:23I think he was looking at maybe it was actually relative to PyPy, P-Y-P-Y, and it wasn't about async in particular, but it was a rolling your own distributed computing or something like this.
- 14:33I forget the exact title.
- 14:35but he did a deep analysis of when are we CPU bound or when are we IO bound?
- 14:39And when are we CPU bound?
- 14:40When we get to free threading Python like this, I think we're going to, as a community, be faced with having to up-level our thinking about this kind of thing.
- 14:46Because so far we've done a lot of like, oh, delegating CPU bound numeric stuff to like Python or Pandas or Cython.
- 14:52But with this, now we can really play first class in system level code.
- 14:55And we have to think more deeply about how are we blocking events?
- 14:58How are we handling things?
- 14:59Is this, you know, is this a, you know, event polling kind of thing?
- 15:03or is this more of a completion port thing?
- 15:05Like in Windows, you have different options.
- 15:06So this is a very interesting topic, actually.
- 15:08It goes quite deep.
- 15:09It goes very deep.
- 15:10And I think it's going to be a big mental lift for people in the community, generally speaking.
- 15:16I talk to a lot of people, as you know from the podcast, and then also interact with a lot of people teaching.
- 15:21And I don't see a lot of people stressing about thread safety or any of those kinds of things these days.
- 15:27And I think in general, it's just not in the collective thinking to be really worried about it.
- 15:33There are still cases in multi-threaded Python code
- 15:36where you need to take a lock because it's not one line's gonna deadlock another or something like that, but you've gotta take five steps.
- 15:43And if you get interrupted somewhere in those five steps,
- 15:46the guilt could still theoretically interrupt you
- 15:48in the middle of code, right?
- 15:50It still could be in a temporarily invalid state across more than one line.
- 15:54But I just don't see people even doing anything hardly at it at all.
- 15:58And when we just uncork this on them,
- 16:01it's going to be, it's going to be something.
- 16:03And I don't think we're going to see deadlocks as a problem first.
- 16:06I think we're going to see race conditions because deadlocks require people already having locks there that get out of order.
- 16:11And I just think the locks are not there.
- 16:13Then people are going to put the locks there and they're like, Whoa, it's just stopped.
- 16:17It's total chaos.
- 16:19Yeah. It's not using CPU anymore. What is it doing?
- 16:21Well, now you found the deadlock. You, you, you added the deadlock, right?
- 16:25So it's going to be, it's going to be a challenge,
- 16:27but the potential on the other side of this, if you can get good at it, it's going to be amazing.
- 16:33You know, even on my little cheapo Mac mini, I've got 10 cores.
- 16:37If I run Python code, unless I do really fancy tricks or multiple processes, the best I can get is like 10%.
- 16:43Yeah, and I know this might be a little bit of a spicy take, but like there was, I think, a line that was being held by the CPython core team that we will accept a GIL removal or a gillectomy as it was called.
- 16:55We'll accept a GIL removal patch when it doesn't affect or negatively impact single core performance, right?
- 17:02And like when that first came out in 2000, I think that first time I heard that article was a 2005, six, seven timeframe.
- 17:08Back then that was almost a defensible position.
- 17:11Nowadays, you can't find a smartphone with a single core.
- 17:14You know, I can't find a Raspberry Pi, a $5 Raspberry Pi has dual core.
- 17:17So it's like, I get the general gist of that, but like, come on, we have like 90, like, you know, John Carmacks on Twitter talking about 96 core Threadripper performance with Python.
- 17:27We, you know, we sort of need to lean into that, right?
- 17:29So I'm really, really bullish on this because as you know, like I'm very close to the data science and machine learning and the AI use cases.
- 17:35And those are all just, you know, they're looking for whatever language gives us the best performance.
- 17:40Right now, it happens to be Python.
- 17:41If we as a community and we as evangelists of that community, if we don't lead into that and those users, they will happily go somewhere else.
- 17:48I mean, that is bonusing people $100 million to start.
- 17:51They're not going to wait for your language to catch up.
- 17:53They'll make a new language.
- 17:54Right.
- 17:54But I think there was something in 2025 that these developers should be learning along these lines would be just async programming and when it should be used.
- 18:02That's why the really tactical maneuver today.
- 18:06Yeah, I agree.
- 18:07I think the async and await keywords are super relevant.
- 18:11And the frameworks, I think, will start to take advantage of it.
- 18:14We're going to see what comes along with this free threading.
- 18:16But there's no reason you couldn't await a thread rather than await an IO operation.
- 18:21You know what I mean?
- 18:22My background is C++ and C#, and C# is actually where async and await came from, from Anders Halsberg, I believe.
- 18:30And over there, you don't care if it's IO or compute bound.
- 18:33You just await some kind of async thing.
- 18:35It's not your job to care how it happens.
- 18:38So I think we're going to start to see that, but it's going to take time for those foundational layers to build for us to build on.
- 18:44Yeah.
- 18:47This portion of Talk Python To Me is brought to you by Centuries Seer.
- 18:51I'm excited to share a new tool from Sentry, Seer.
- 18:54Seer is your AI-driven pair programmer that finds, diagnoses, and fixes code issues in your Python app faster than ever.
- 19:02If you're already using Sentry, you are already using Sentry, right?
- 19:06Then using Seer is as simple as enabling a feature on your already existing project.
- 19:11Seer taps into all the rich context Sentry has about an error.
- 19:15Stack traces, logs, commit history, performance data, essentially everything.
- 19:20Then it employs its agentic AI code capabilities to figure out what is wrong.
- 19:24It's like having a senior developer pair programming with you on bug fixes.
- 19:29Seer then proposes a solution, generating a patch for your code and even opening a GitHub pull request.
- 19:35This leaves the developers in charge because it's up to them to actually approve the PR.
- 19:40But it can reduce the time from error detection to fix dramatically.
- 19:45Developers who've tried it found it can fix errors in one shot that would have taken them hours to debug.
- 19:51SEER boasts a 94.5% accuracy in identifying root causes.
- 19:56SEER also prioritizes actionable issues with an actionability score, so you know what to fix first.
- 20:03This transforms sentry errors into actionable fixes, turning a pile of error reports into an ordered to-do list.
- 20:11If you could use an always-on-call AI agent to help track down errors and propose fixes before you even have time to read the notification, check out Sentry's Seer.
- 20:20Just visit talkpython.fm/Seer, S-E-E-R.
- 20:25The link is in your podcast player's show notes.
- 20:27Be sure to use our code, Talk Python.
- 20:30One word, all caps.
- 20:32Thank you to Sentry for supporting Talk Python To Me.
- 20:35Pamela Fox out in the audience throws out that last time she really used locks was in my code for operating system class in college. It doesn't come up much in web dev. That's true. A lot of the times the web, it's at the web framework, the web server level, the app server level, right? It's Granian or it's uvicorn or something like that. That thing does the threading and you just handle one of the requests. I literally just deadlocked and I guess probably broke the website for a couple of people at Talk Python today because I have this analytics operation that's fixing up a stuff and it it ran for like 60 seconds even though there's multiple workers something about the fan out it's still it still sent some of the traffic to the one that was bound up and then those things were timing out after 20 seconds i'm like oh no what have i done and if that was true threading it wouldn't have mattered it would have used up one of my eight cores and the rest would have been off jamming along it would have been fine you know well sort of right and i think this is i think it's
- 21:27i'm really glad pamela brought this up because um we do when we're focused on a particular just the worker thread, it's like, okay, what am I doing? Pull this, run that, and then push this thing out.
- 21:39But if you start getting to more, anytime you start having either value dependent or heterogeneous workload and time boundaries for these tasks, you start having to think about thread contention.
- 21:55To your point, Calvin, I think it's not so far that you have to go before you quickly find
- 22:00yourself thinking about things like grand central dispatch like iowa like mac os has or io completion
- 22:06ports and like oh crap i'm actually slamming it's not under certain cases you know to your point about the analytics maybe you're not doing a gpu-based analytics thing but maybe you're slamming a bunch of stuff to disk or loading a bunch of stuff up from disk and you start getting all these things where at some point one of these things the bottleneck is the cpu is it the you know the code itself is it the disk is the network um and you're just slamming your code into one of
- 22:29these different boundaries stochastically.
- 22:31And as a developer, maybe as an entry-level developer, you don't have to think about it too much, but as any kind of a mid to senior developer, you're going to be running into these problems and they are going to be stochastic.
- 22:41They are value dependent.
- 22:42You're going to hit them in production and you have to sort of know what could bite you, even if it's not biting you all the time in dev.
- 22:49Right, you remove one bottleneck
- 22:51and it starts to slam into a different part.
- 22:53Maybe you take them to the database and it's even a worse console.
- 22:56You never know, right?
- 22:57That's right.
- 22:57We're going to see.
- 22:58It's going to be interesting.
- 22:59But thinking about that in production, you've got new challenges there because you may have containers and you're running in Kubernetes and you've got pods and resource limits and other kinds of constraints that are happening that aren't on your local machine.
- 23:10All of a sudden you're saturating your local machine.
- 23:12You're like, this is great.
- 23:13I'm using all the resources.
- 23:14Look at it go.
- 23:15And now you release that to production and watch calamity and chaos.
- 23:19They get killed off because you've set some.
- 23:22My websites and APIs and databases all have production level RAM limits and things like that, so that if they go completely crazy, at least it's restricted to that one thing dying.
- 23:34Yeah.
- 23:34Everything.
- 23:35Speaking of which, have you got some ideas on what's next, Calvin?
- 23:40Sure.
- 23:40I've been a big believer in containers.
- 23:43I really got turned on to this in 2020 and went down the path.
- 23:48And now we're finally arrived where I believe developers should be learning Kubernetes, even for local development.
- 23:54I feel like that whole front to back story is not as complicated.
- 23:59The tooling has really come up to date.
- 24:01And so being able to use containers to get reliable, repeatable builds, being able to use tools like Tilt.dev, for example, as a developer locally with my Kubernetes clusters, I can now have file systems syncing, use all my local tools.
- 24:18This just literally does take the pains out of, they say microservice development.
- 24:22I think that's a little bit of a buzzwordy explanation there.
- 24:25I will say that it's good for Django development.
- 24:28So if you check out the SCAF full stack template,
- 24:31are you going to change it for me?
- 24:33Perfect, that's perfect.
- 24:35This is exactly where we can use the same tools in production that we use in development so that it's much easier to track down issues.
- 24:44Containers obviously unlocked a lot of those.
- 24:46I feel like the true superpower of Kubernetes, I think a lot of people love it for orchestration or claim it's for orchestration.
- 24:53I really love the fact that it's got a control plane and a URL and an API so you can do things like continuous deployment.
- 25:01So being able to deliver your code, build an image, update a manifest and have things just deploy without you having to think twice about it and be able to roll back with a click of a button and using tools like Argo CD.
- 25:13Argo CD is a great CI CD tool.
- 25:15So we leverage it very heavily.
- 25:16If you want a good example of how to do that, you can check out that same full stack template.
- 25:21We have all the pieces put in there for you in GitHub to understand how that works.
- 25:26So I think it's real.
- 25:29I think developers should be embracing the container world, especially if you have more than one developer.
- 25:35As soon as you have a second developer, this becomes an immediate payoff in the work it took to put it in place.
- 25:42And so I think it hits all the environments too, like not just web dev.
- 25:46I think the data folks benefit from containers,
- 25:50especially if you look at tools like Airflow,
- 25:51be able to deploy that into containers, being able to manage workers that are Kubernetes-based tasks so you can natively handle asynchronous tasks in a cluster and leverage all that power you've got under the covers and scalability of being able to scale out all the nodes, you get a lot of win for adopting a tool that I think a lot of people, and me included, used to consider overkill.
- 26:15Yeah.
- 26:16Well, let's put some layers on this.
- 26:19First of all, preach on, preach on.
- 26:21But you say containers.
- 26:23You said Kubernetes, these some other things.
- 26:26Do you have to know Docker and containers?
- 26:30Is Docker synonymous with containers for you?
- 26:31Do you have to know that before you're successful with Kubernetes?
- 26:36There's a couple of layers of architecture here.
- 26:40Where are you telling people they should pay attention to?
- 26:43I think you have to start with containers.
- 26:45Start with Docker.
- 26:46The dog wants me to play with the toy over here.
- 26:49If you start with the container,
- 26:50because you have to have a good container strategy, even to be able to build and work with containers inside of any kind of a, whether it's Docker Compose or Swarm or using Fargate or some kind of container app service, like on DigitalOcean.
- 27:05- Yeah, count me down as Docker Compose, by the way.
- 27:07I'm a big fan of this.
- 27:08- Yeah, you're a big fan.
- 27:09That's where we started.
- 27:10I really enjoyed the ability to have Compose describe my whole stack and be able to run the exact same version of the exact right version of Redis, the exact right version of Postgres, the exact right version of whatever my dependent other pieces are around me, because that matters.
- 27:27I don't remember folks remember the Reddit 608 to 609, like a very minor release introduced a new feature that was unusable in a very minor release backward. So you want to be able to pin these things down so you aren't chasing ghosts and weird edge cases and containers enable that.
- 27:48whether it's Compose or Kubernetes, it doesn't matter.
- 27:50You get that benefit.
- 27:52I feel like the Kubernetes piece just takes that to the next level and gives you a lot of the programmability of the web with an API and the fact that I'm not logging in.
- 28:02Our preferred way to deploy Kubernetes onto servers is actually to use Talos Linux, which has no SSH shell.
- 28:08There is not a way to shell into that box.
- 28:10There eliminates a whole class of security vulnerabilities because there is no shell on the box whatsoever.
- 28:17You have to interact with it programmatically via APIs.
- 28:20And even the upgrades happen via the same API backplanes.
- 28:25And just that level of control, security, reliability, and comfort helped me sleep really well at night knowing where I've deployed these things.
- 28:36But you do need containers first.
- 28:37I think if you don't understand the layers of the containers, I think that's a quick read.
- 28:42There's some really good resources online.
- 28:45Nana's tech world does a really good job of describing containers.
- 28:48She does a really good job.
- 28:49And she does an awesome job of bringing that down to an every person, most every person level who would even care to want to touch it.
- 28:57I have some thoughts about containers and components and stuff that I want to throw in.
- 29:00But I do especially want to hear, Peter, contrast your take with the, you sort of say the same thing, but for data scientists.
- 29:08Do you need to pay attention to containers and data science?
- 29:12Is that different?
- 29:12I interviewed Matthew Rockland from Coiled recently, and they've got a really interesting way to ship and produce your code without containers that you actually interact with.
- 29:22There's options, but what do you think?
- 29:23Yeah, I think containers are just part of the technical landscape now, so it's good to know them.
- 29:30I think if we were to remove the capabilities of data science from everyone who doesn't know about containers, that we would end up with a deeply impoverished user base.
- 29:39The truth of the matter is that there are a lot of people out there today who, if you think about what containers really do from a software development and a DevOps perspective, it is a mechanism for your dog knows about to say something spicy.
- 29:53No, I'm not trying to be controversial.
- 29:54Just thinking about it on first principles, a container is a way for us to sort of format and rationalize the target deployment environment within the boundaries of the box, within the boundaries of a particular compute node with an IP address or something like this.
- 30:09And then Kubernetes takes the next level up, which is, oh, if your dependencies for your application is if you have like a microservices classic sort of example, if your application is architected in such a way that you need a lot of services to be running.
- 30:21Well, to format that, you need to actually create a cluster of services configured with particular network configuration and various kinds of things.
- 30:30So you're actually shipping a cluster as the first thing you land and then you land, you deploy the airport, then you land the plane.
- 30:36So if you need to do that, if the thing you're doing is so big, and I think that when you think about the U.S. Air Force and Army, the reason why the American military sort of has the dominance it has is because of the logistics chain.
- 30:48They can land just hundreds and hundreds of tons of military hardware and food and personnel into any location on the earth inside of 24 hours.
- 30:57And this is sort of what Kubernetes gives you is that ability to format at that level.
- 31:01But at the end of the day, if you have a Jupyter Notebook, well-known data set, you know how many CPU cores, what kind of GPU you need to run a particular analytic, that can seem like overkill.
- 31:11Because you could say, spin up the CC2 box, get me in there, spin up Jupyter Hub, copy the thing over, and now it's running.
- 31:18You know, yay.
- 31:19So I don't think that containers are necessary.
- 31:21But in life, we don't just do what's necessary, right?
- 31:24I think it is useful to know something about how to ship and work with modern IT environments and cloud native kinds of environments.
- 31:32So it's a useful thing to know.
- 31:34But then, like I said, it's the goal for us as technologists should be empowering those who are less technically inclined than us.
- 31:42And so removing the complexity for them should be the thing that we should be trying to do.
- 31:45And this is the spirit of what I think Matt Rockland talks to.
- 31:48And what we on the sort of Anaconda data science oriented side also hope for, right, is that to make as much of this disappear into the background as possible for people who don't want to learn it, who don't need to know it necessarily.
- 31:59Yeah, I think we want to get it.
- 32:01We all want to score well on the plays well with others scorecard.
- 32:04And so if we can deploy and use containers, that means it's much easier to onboard the next dev.
- 32:10Yeah.
- 32:11And a lot of this, not everyone has to be an expert at it.
- 32:14Correct.
- 32:14A couple of people set up a cluster or some Docker compose system together, and then you all get to use it.
- 32:21It's a little bit like the people that work on Jupyter have to do a lot of JavaScript and TypeScript, so the rest of us don't have to do so much.
- 32:28Right.
- 32:28Although you just whipped out a little HTML editing, so I was pretty slick.
- 32:33Yeah, I think here's a good question from a little bit earlier from Pamela, but I think especially this one goes out to you, Calvin.
- 32:40I think you've walked this path recently.
- 32:43How much harder is Kubernetes versus Docker Compose to learn for a web dev?
- 32:47I think if you have a good template to start from, that's where this becomes a no-brainer.
- 32:52If you were to try and go learn all the things about the Kubernetes stack orchestrators, the storage bits, all these kind of pieces, that could be really overwhelming.
- 33:03And whereas Docker Compose, it's one file, it lists your services, it feels fairly readable, It's just YAML.
- 33:11Kubernetes is going to have a few more things going on under the covers.
- 33:14But again, I'll point to our SCAF example as a minimal, as little as you needed to get going version of being able to do Kubernetes locally and in a sandbox and production environment.
- 33:27So it scales up to all those pieces.
- 33:29So as a web dev, you just develop your code locally.
- 33:31You use your IDE.
- 33:32You're in PyCharm.
- 33:33You're in VS Code.
- 33:34You're editing your files locally.
- 33:36Tools like Tilt are kind of hiding a lot of that complexity out under the covers for you and synchronizing files two-way.
- 33:44So if things happen in the container, for example, you probably want to be able to build, compile your dependencies with the hashes in the target container environment that you're going to release to.
- 33:55Because if you did it locally and you're on Windows or on Mac or on Linux, you're going to get potentially different hashes, different versions of different dependencies.
- 34:02So those kinds of things need to write back from the container to your local file system and Tilt enables that and takes that whole pain away.
- 34:09I think Tilt was the big changing point for me, the inflection point for me when I moved over
- 34:15and fully embraced Kubernetes for local web dev.
- 34:17Interesting.
- 34:18Over at Talk Python, I've got, I think last time I counted 23 different things running in Docker containers were managed by a handful of Docker Compose things that grew them by what they're related to.
- 34:30And it's been awesome.
- 34:32It's been, it really lets you isolate things.
- 34:34The server doesn't get polluted with installing
- 34:37this version of Postgres or that version of Mongo.
- 34:39I think I've got two versions of Postgres,
- 34:41another version of MongoDB and a few other things.
- 34:44Yeah, and it just doesn't matter.
- 34:45Do I RAM and CPU for it?
- 34:47Plenty.
- 34:47Okay, good.
- 34:48And you can run in a one CPU or one server node.
- 34:52You don't need to have five machines running with a control plane and all the pieces.
- 34:57You will have the control plane, You can use like K3S is a minimal Kubernetes project that you can use to deploy, for example, on a single EC2 instance.
- 35:07Spin that up, deploy your containers.
- 35:08Now you can hook it up to your GitHub actions, which I think we should also talk about as something people should learn.
- 35:13You hook that up and away you go.
- 35:15You're now releasing without logging into a server and typing git pole and potentially injecting into it unintended changes from your version control.
- 35:27I mean, it's a peace of mind to be able to know and audit and know what you've released is exactly what you expected to get released.
- 35:34So I want to wrap up this container side of things with two thoughts.
- 35:39First, I'm a big fan of dogs.
- 35:41I don't know if you guys know, but I kind of understand what dogs say a little bit.
- 35:44It's a little weird.
- 35:44I believe Calvin's dog, I don't know, Peter, back me up here.
- 35:47I believe Calvin's dog said, forget containers I edit in production.
- 35:51I think that's what the dog said when it barked.
- 35:53I'm not entirely sure.
- 35:54I mean, he is a black dog.
- 35:56you can only. Yeah, you never know. You never know. They're known for being rebels. That's right.
- 36:02Exactly. Not the black sheep, but the black lab. The black dog. And then the second one I want to kind of close this out with is see for yourself out on YouTube says, I like Python for low code ML with PyCaret. The problem is that Python is now up to 313.3 and very soon 314.0 folks, while PyCaret only supports up to 311. And I think this is a good place to touch on reproducibility and isolation, right?
- 36:25Like you could make a container that just runs 3.11 and it doesn't matter what your server has, right, Peter?
- 36:30Yeah, I mean, the, is the, sorry, if you could pop up the question again, I was, I think it was just that PyCaret, yeah.
- 36:38So this, I guess I don't really see the, I don't see the problem.
- 36:45Like this is a statement of fact, right?
- 36:47The PyCaret only supports 3.11.
- 36:49Are there features that you really want to see in 3.13 or that you really need to use in 3.13 or, I mean, there's...
- 36:57It could be that they work.
- 36:59Yeah, but it could be they get a new Linux machine
- 37:01that's Ubuntu
- 37:02and it's got 3.12 on it.
- 37:04Yeah, that's true.
- 37:05But you never...
- 37:07Okay, this might be where the dog barks again, but you never use the system Python.
- 37:11Well, right.
- 37:13It doesn't matter what the system ships with.
- 37:15What does macOS ship with?
- 37:16I don't know.
- 37:17You either install a distribution like Anaconda, Miniconda or something like this or uv using Python standalone, the virtual environments there have their own, ship their own Python.
- 37:28This is now, because I am who I am, like on the Anaconda side of things, we've known that you have, in order to really isolate your Python installation, you really have to have the interpreter itself be built with the same tool chain and the same versions of the tool chain as all the libraries within it.
- 37:45And so this is what the Conda universe, Conda Forge, BioConda, we've been doing this forever.
- 37:50And then with uv, I think uv has really pushed the spearheading the whole like install a separate Python bit.
- 37:57I know that Pyan has been there, but like it's not, I don't think it was a standard part of,
- 38:02it was considered best practice, right.
- 38:04For people.
- 38:05But, but I'm hoping that, you know, that, that uv helps to change minds in this way as well.
- 38:09But ultimately for, for if you actually, if you do all the bits, right, you actually can have a isolated and separated perfectly isolated Python install without needing to, use containerization. Not that there's anything wrong with containerization, but just sort of saying like, this is a solvable problem. It's just so darn complicated to try to give anyone best practices in the Python packaging world because some guidance can be wrong for somebody, right?
- 38:34But in this case, yes, you could absolutely use containers to isolate that or look to use
- 38:41conda or uv to create an isolated install with just that version of Python just to run
- 38:47then PyCaret inside it. Yeah. I feel like containers is a pure expression of an isolated environment where you can't get it messed up. Like the, if you, if you do anything, just know that the system Python is not your Python. It's near not, you shouldn't be allowed to use it. It should be almost in a user private bin, you know, path that's not usable by people. Calvin, I've been on
- 39:08a journey and it's a failed journey, but it was a long, long, solid attempt. I've been trying to remove Python from my system as a global concept, period.
- 39:18But I'm a big fan of Homebrew and too many things that Homebrew wanted.
- 39:22And I know something's gone wrong when my app falls back to using Python 3.9.
- 39:26I'm like, no, Homebrew.
- 39:27I deleted all my local Pythons, Pyamv and Homebrew, in any packages that depended on it.
- 39:33And I went fully uv and uvx for any tools that would rely on it.
- 39:37And we've also moved to Nix.
- 39:39We've started using Nix for our package management instead of Homebrew for that reason.
- 39:43Okay.
- 39:45This portion of Talk Python To Me is brought to you by Agency.
- 39:48Build the future of multi-agent software with Agency, spelled A-G-N-T-C-Y.
- 39:54Now an open source Linux foundation project, Agency is building the internet of agents.
- 39:58Think of it as a collaboration layer where AI agents can discover, connect, and work across any framework.
- 40:05Here's what that means for developers.
- 40:07The core pieces engineers need to deploy multi-agent systems now belong to everyone who builds on agency.
- 40:13You get robust identity and access management, so every agent is authenticated and trusted before it interacts.
- 40:20You get open, standardized tools for agent discovery, clean protocols for agent-to-agent communication, and modular components that let you compose scalable workflows instead of wiring up brittle glue code.
- 40:33Agency is not a walled garden.
- 40:35You'll be contributing alongside developers from Cisco, Dell Technologies, Google Cloud, Oracle, Red Hat, and more than 75 supporting companies.
- 40:44The goal is simple.
- 40:45Build the next generation of AI infrastructure together in the open so agents can cooperate across tools, vendors, and runtimes.
- 40:53Agencies dropping code, specs, and services with no strings attached.
- 40:58Sound awesome?
- 40:59Well, visit talkpython.fm/agency to contribute.
- 41:03that's talkpython.fm/agntcy the link is in your podcast player show notes and on the episode page thank you as always to agency for supporting talk python to me maybe the next one i want to throw out there to talk about is just is uv it's yeah it was compelling when it was uv pip install and uv venv but i think peter really hit the nail on the head when once it's it sort of jujitsu'd Python and said, okay, now here's the deal. We manage Python. Python doesn't manage us. It just uncorked the possibilities, right? Because you can say uv venv and specify a Python version, and it's not even on your machine. Two seconds later, it's both installed on your machine and you have a virtual environment based on it. And you don't have to think about it. You know, Peter, you talked about PyM. It's great, but it compiles Python on a machine that's super slow and error prone. Because if your build tools in your machine aren't quite right,
- 41:57then well oh yeah no compiling python is no joke no it isn't i've done i used to do it for a while for talk python in production it it was like a 10 minute deal yeah i had it automated it was fine
- 42:06but it took 10 minutes there was no rush and the great you don't need to spend the great irony of
- 42:11this is that again like we in the data science world have spent years trying to convince um certain folks in the um sort of non non data and science python world that you can't solve the Python packaging problem without including the management of Python itself in it. And we just got nowhere. We're just repeatedly told PyCon after PyCon, packaging summit after packaging summit. The scope of a Python package manager is to manage the things inside site packages and anything outside of that system libraries, lib ping, lib tiff, you know, open CV, these things are outside of scope. And, you know, many distributions, there's, you know, Linux distros like Debian or Red Hat, there's distribution vendors of like us and a content that are cross-platform.
- 43:00We were trying to make the case for this, but we just kept not landing that argument.
- 43:04UV comes along and does it.
- 43:06And I was like, oh, this is totally the way to do it.
- 43:08It's like, well, I guess the users finally have, you know, I think that we can follow, we can pave that cow path.
- 43:14And I agree, it is utterly the way to do it.
- 43:16And then we're going to learn, I think on the other side of that is, oh, not only is it great to manage Python as part of the whole thing, But now we actually should care how we build that Python, because your choice of clang, GCC, your choice of what particular libraries you link in, that determines the tool chain for compiling everything else as well.
- 43:33And especially to talk about data, AI, ML kinds of libraries, there's incompatibilities that will emerge as you try to install this, install that.
- 43:42So I gave a talk at PyBay, sorry to sort of toot my own horn a little bit, but I gave
- 43:46a talk at PyBay last fall about the five demons of Python packaging, where I try to unravel why is this perennial problem so gnarly and horrible?
- 43:56And it's because there's many dimensions of it.
- 43:58And most users only care about one and a half of those dimensions.
- 44:02They just really want to install the damn package and just use it.
- 44:05But if you're a maintainer, that's right.
- 44:08You got to have the obligatory Blade Runner.
- 44:11And anyway, so I put that talk together just to sort of get everyone on the same page to understand why we have different tools, why distribution vendors, whether it's an Anaconda or an Ubuntu, a Red Hat, or Nix, right?
- 44:24Why homebrew?
- 44:25These things do matter.
- 44:26And there's a reason people depend on these tools.
- 44:29And anyway, I hope the people who care about Python packaging or want to understand more deeply go and look at this talk because I do try to put time at each of their own topics that make this so complicated.
- 44:41And for Python in particular, because I hear a lot of people talking about, why isn't it as easy as Rust?
- 44:46Or, oh, you know, npm is so nice.
- 44:48Well, I don't hear that very often.
- 44:49Is it?
- 44:50No, no, no.
- 44:51Actually, I don't hear a lot of praise for MPM.
- 44:53Well, like, why doesn't JavaScript have this problem?
- 44:55It's like, well, JavaScript doesn't have a pile of Fortran involved in it, right?
- 44:58Many people don't know, but, you know, there's a fun thing in there.
- 45:01I talk about the fact that if you want to use MB convert, if you want to use MB convert to convert notebook into a PDF, you need a Haskell compiler because Pandoc depends on Haskell.
- 45:10So, like, there's just things like that that are just our ecosystem is replete with these things.
- 45:15And most users don't have to see it if the upstream folks or the distribution folks and packaging people are doing their jobs right.
- 45:21But that doesn't mean that it's not hard.
- 45:22It doesn't mean that it's not real labor that goes into making it work.
- 45:25Yeah, look in the chat.
- 45:26Pamela points out that even using uv, there are now multiple ways, which is tricky.
- 45:31And I would refer to myself as one of the old school people.
- 45:35I still use uv kind of in a agnostic way.
- 45:39Like if people don't want to use uv and they take one of my projects, they can still use pip and they can still use pip-tools and so i'll use things like uv venv or uv pip install or you know pip compile especially to build out the pin requirements but if you don't like it you just pip install -r requirements.txt instead of using what i was doing right and then there's this other way of embracing like let it sort of manage your pyproject.tomal entirely and create it and
- 46:06so on so i think there is some a little bit of confusion but i think yeah it's probably good It's good they made that compatibility path, though.
- 46:16It helps people be comfortable because change is hard.
- 46:19As humans, we don't like change.
- 46:21But this is a really good change.
- 46:23That speed is a feature that Charlie talks about.
- 46:26It's 100% I'm on board.
- 46:28Yeah, I agree.
- 46:29And it's changed even my Docker stuff.
- 46:32Now, one of my Docker layers is just uv Python install.
- 46:37Really, I think it just creates a virtual environment, which also installs the Python.
- 46:40That's a two second, one time deal.
- 46:42And it's after the races.
- 46:43It's really, really nice.
- 46:44All right.
- 46:45We have probably time for a few more topics.
- 46:48However, if I put this out into the world, it may consume all of the time as it does pretty much all of the GPUs.
- 46:55What are your thoughts on Agenda coding?
- 46:59What are your thoughts on them?
- 47:00On LLMs and Agenda coding AI and that whole soup of craziness.
- 47:05I'm shocked how many people are not diving in headfirst on this.
- 47:10I literally started talking to some developer last week.
- 47:14And I was like, hey, we tried Claude Code.
- 47:16And they were like, no, what's that?
- 47:18I was like, oh my.
- 47:19What?
- 47:20Yeah, exactly.
- 47:21Well, we've got Copilot.
- 47:22I think the issue is in the enterprise,
- 47:24a lot of people have opted to purchase Copilot because it's a checkbox and a one-click purchase.
- 47:31So it's easy.
- 47:32But they're not giving them Copilot Studio, which is the agentic version of it.
- 47:35They're just like, yeah, you've got your LLMs now.
- 47:37Go have fun.
- 47:38I think they're really missing out on the true power of like a tool that can inspect your file system, a tool that can like look at things and do actions.
- 47:45Now, obviously that introduces risk.
- 47:47So a lot of these security people in these environments are not excited about that level of risk.
- 47:52I don't have a good answer for that other than if you're a developer and you're going to turn on energetic coding, you kind of have to like sign up and be accountable for what it's going to do.
- 48:00I've got some ideas and some concrete recommendations for you.
- 48:03But Peter, I want to hear what you have to say first.
- 48:06So first of all, I think vibe coding is simultaneously oversold at the same time.
- 48:13I'm very bullish on where this can go.
- 48:15The ultimately the Transformers models and that style of current era AI has some structural mathematical limitations.
- 48:25The recent OpenAI paper about hallucinations are inevitable and sort of part of the math sort of shows that, yeah, we're going to end up.
- 48:32It is to some extent glorious high dimensional autocomplete.
- 48:35But oh my God, is it glorious when it's right.
- 48:37So it is steerable.
- 48:38It's like trying to fly a very, very awkward airplane before we've really figured out aerodynamics.
- 48:43But it kind of still does work.
- 48:45So people should absolutely 100% be looking at what this can do for them.
- 48:50And thinking really right now, like I would say actually the limitations, the known, the visible limitations of vibe coding should actually, you should be grateful for that.
- 49:01because that gives us time and space to think about how would we design projects?
- 49:06Because I know for myself, the way I code is I write doc strings and comments and sort of class structures first.
- 49:13And then I think about what needs to play with what and you're writing documentation.
- 49:17And if I can just have the code itself just get filled out with that, like, holy crap, like, of course, right?
- 49:22So everyone should be doing this so they can think about it and really think about where this stuff will go because it's definitely going to get better.
- 49:29But if you're worried about the data leakage and the compliance and all this other stuff, use local models.
- 49:35Go and buy expense a couple of GPUs.
- 49:383090s actually work fine with the newer, smaller models.
- 49:41If you work for a richer employer, maybe you can get a couple of 5090s.
- 49:46Sacrifice a gaming PC.
- 49:47Come on.
- 49:48It's also a gaming PC.
- 49:49It's also a gaming PC.
- 49:51An M4 Mac with 64.
- 49:52I have an M4 Mac with 64 gig of RAM.
- 49:54And it's wonderful.
- 49:55I've got DevStroll running.
- 49:56I've got the OSS GPT running.
- 49:59all those tools run on a on just yeah base model on base model i have mac yeah i have a 32 gig
- 50:08mac mini running here and i'm running the 20 billion parameter open ai model on it just to be shared with all my computers my laptop yeah and there's and there's um there's there's also
- 50:17you know the chinese models are um really freaking good you know and and the i mean i think i don't know we'll see what happens with ces next year but i feel like this year was the year of small models. This year was the year, I mean, we started the year with DeepSeq, right? And so it's like, not just Chinese labs saying, we don't need your stinking whatever. But over the course of the
- 50:37year, we got Kimi, we got Quinn, we got GLM, we got, we're just going to keep getting these.
- 50:41And that's not even, that's just on the code and the text prompting side. That's not even on image generation. So the Chinese image and video generation models are just jaw-droppingly good.
- 50:49So I think what we're going to see here is by the beginning of next year, well, this is a 25 slash 26 podcast, right? So in 26, you probably have no excuse to say, why are you not, you know, like you're, you're, you know, professional CAD and engineering people have big workstations as a dev. Maybe you just have a big workstation now, or a fat 128 gig, you know, a unified memory for Mac, but like, you're just going to have that as your coding station and everything is local.
- 51:15You're going to be careful with tool use, of course, but still like you just run all locally.
- 51:19I think as a developer, one of the key skills you should learn is going to be context engineering
- 51:25and using sub processes.
- 51:28The models now support basically spinning off parallel instances of themselves.
- 51:33And you can spin off parallel instances with a limited amount of context to kind of really shape how they understand things.
- 51:39Because Google introduced the Gemini with like a 1 million token context window limit.
- 51:46So what?
- 51:46What are you going to do with that?
- 51:47it's really not useful to just feed a million tokens into it because it can't, it just as much as you try to like stuff your brain.
- 51:53Well, it tapers off at the end as well.
- 51:55It's not really a million tokens.
- 51:57Right, you don't get a million tokens.
- 51:58And it's also, it's just going to be thoroughly confused by all the context you just threw at it.
- 52:02But if you can give a really narrow focus context, small diffs, that's one of the things I liked about AiderChat.
- 52:08If you've not checked out AiderChat, it has a diff mode
- 52:10that really limits the amount of tokens it consumes.
- 52:12So actually it's a little more efficient on tokens than like Claude Code, even if you're using the Anthropic models the same way, because it'll do diffs and send smaller context.
- 52:21And if you can leverage that with like sub models or sub prompts and Goose, the chat agent from Block has recipes that actually operate in like a sub model.
- 52:32So it's basically like you're building your own little tools that are just descriptions of like what MCP pieces it should use, what tools should be available and use this context and only pass me back that bit and throw away the extra context once you're done.
- 52:44So you're not polluting your context window with a whole bunch of unneeded operation.
- 52:48And now you get back really what's needed
- 52:50for whatever you're trying to work on.
- 52:52Yeah.
- 52:52So I want to kind of take it a little bit higher level back real quick.
- 52:55How about I'm with you?
- 52:56If you have not seen this, and I've talked to a lot of really smart devs who are like, yeah, I tried Copilot or I tried one of these things and their experience is largely, I think with the multi-line autocomplete.
- 53:08And to me, that, I just turn that off.
- 53:10That's like garbage.
- 53:12I mean, it's not garbage, But it's, I'll put it, let me put it more kindly.
- 53:15Like half of the time hitting tab is glorious.
- 53:19And the other half, I'm like, I want the first half, but the second half is wrong.
- 53:23So do I hit tab and then go down and delete it again?
- 53:25Like, you know what I mean?
- 53:25I got to like, it's giving me too much and it's not quite right.
- 53:29But the agentic tool using part is stunning.
- 53:32Not with the cheap models, but with the models that cost like $20 a month.
- 53:36It's a huge difference from the very cheap model to like.
- 53:38Which is like, that's not even a latte a week, right?
- 53:41Like just like we're talking to an audience of probably mostly professional developers, right?
- 53:46Yes.
- 53:47You know, a hundred bucks a month, $200 a month for what literally is transforming the future of your entire industry is worth it.
- 53:53Like, why would you not subscribe to your employer and your employer should be paying for this?
- 53:56Like they should be handing you all.
- 53:58Well, but if they do actually.
- 53:59So here's the thing.
- 54:00I'm actually two minds of this.
- 54:01I think every dev for their own purposes, for their own application, you're paying for their own because the employers will have limitations on what they're allowed to use.
- 54:08They may have to sign up for an enterprise thing, which has then data, you know, data retention policies, yada, yada, yada.
- 54:14And you want to just go full blast.
- 54:16What is absolute cutting edge being released by various things?
- 54:19Yes.
- 54:19But I would still, again, my little, you know, nerd like open source heart would not be stated unless I've made the comment here.
- 54:27Please play with local models.
- 54:28Please like have do work in a data sovereignty mode.
- 54:33Because this is actually the closest, the first time I think we've had real tech that could potentially move people away from a centralized computing model, which has been, I think, so deleterious to our world, actually.
- 54:47And the last thing that we don't have time for, but the last thing I was going to just throw a shout out for was for people to check out Beware, because that is the way that we can build Python mobile applications and really be shipping applications that don't necessarily, like, we should be deploying to mobile.
- 55:00so many Python developers are web devs, storing state in the Postgres somewhere, and we're part of that data concentration, data gravity problem.
- 55:08Whereas if we flip the bit and just learn for ourselves, how do we Vibecode an actual iOS platformer?
- 55:13Like, let's go do that, right?
- 55:14Or an Android thing, which is a little bit easier to deal with.
- 55:16These are things that we can actually do as Python.
- 55:18Totally doable, though, yeah.
- 55:19Yeah, totally doable.
- 55:20I want to give a shout out to you, Peter, and Anaconda in general for all the support for Beware and some of the PyScript and some of those other projects.
- 55:27Those are important ones, and yeah, good work.
- 55:30Yeah, thank you.
- 55:30Start to fight the good fight.
- 55:31Yeah, for sure.
- 55:32Thank you.
- 55:32I'm not quite done with this AI thing, though.
- 55:35I do want to say, I do want to point out this thing called Klein that recently came out that's really pretty interesting.
- 55:42Have you guys heard of this?
- 55:43Yep.
- 55:44Yep.
- 55:44Yep.
- 55:44Yeah.
- 55:45So it's open source.
- 55:46It's kind of like Cursor.
- 55:47But the big difference is they don't charge for inference.
- 55:49You just put in an API key or you put in a link to a URL to a local model.
- 55:54So you use local with it.
- 55:55Yeah.
- 55:56Yeah.
- 55:56Yeah.
- 55:57I recommend if you're using local models and you really want to go all in on the data sovereignty pieces, use tools like Little Snitch on your Mac to know if it's sending something someplace you didn't request it to send to.
- 56:07You can be totally eyes wide open and maybe exercise a little more reckless abandon if you know that a tool like that can catch an outbound connection that you didn't expect.
- 56:16Yeah, I think I'll give you how many, how much I know what I'm doing on this.
- 56:21I will give you guys an example that I think probably will, if, let me put it this way, if you've done a lot of web development and web design mix, this will probably catch your attention.
- 56:33So I want to add some new features to talkpython.fm.
- 56:37I got some cool whole sections coming and announcements, but talkpython.fm was originally created and designed in 2015 on Bootstrap.
- 56:47Do you know how out of date 2015 Bootstrap is with modern day front end frameworks a lot.
- 56:53But there's like 10,000 lines of HTML designed in Bootstrap, early Bootstrap.
- 57:00It still renders great on my phone though.
- 57:02And the LLMs are very aware of old Bootstrap documentation and issues.
- 57:07Peter, it looks great and it works well, but here's the thing.
- 57:10I want to add a whole bunch of new features and sections to it.
- 57:13And I've got to design that from scratch.
- 57:14I'm like, oh, I can't do this in Bootstrap 3.
- 57:17I just don't have the willpower for it.
- 57:19It's going to make it so hard, you know?
- 57:21And so I'm like, well, I really should redesign it, but that's got to be weeks of work.
- 57:25And one evening around four o'clock, I'm just hanging out, you know, enjoying the outside, sitting, working on my computer, trying to take in a little more summer before it's gone.
- 57:34And I'm like, you know what?
- 57:34I bet, I bet, Claude Sonnet and I bet we could do this quicker than two hours later, the entire site, 5,000 lines of CSS, 10,000 lines of template, HTML files, all rewritten in Bulma. Modern, clean, doesn't look at all different except for the few parts. I'm like, oh, I don't like that. Rewrite that actually. To the point where you just take a screenshot of what you do want, throw it in there and go, make it look like this. Oh yeah. Okay. I see the picture.
- 57:58Let's make it look like that. And it's just a couple hours. That would be pulling your hair out the most tedious, painful work for a week or two. And now it's, if I want to add something to the
- 58:08site, it's just, oh yeah, it's just modern Bulma. Off it goes. Or I could have chose Tailwind or
- 58:13whatever. I think Bulma works a little better with AIs because it doesn't have build steps and all that kind of stuff. It's a little more straightforward. But those are the kinds of things that like literally I wrote down a markdown plan. I said, here's what we're going to do.
- 58:24And I planned it out with AI. Then I said, okay, step one, step two. And then we just worked it
- 58:28through till it was done. There's a few little glitches. I'm like, this looks weird. Here's a
- 58:31screenshot. Fix it. Okay. AI is really good at these kinds of tasks. Yeah. And if people have
- 58:36not seen this in action, I think it just doesn't. They're like, I tried to use ChatGPT and it gave me an answer, but it doesn't help that much. I could write that. Or I used a free cheap model and it got it wrong and I had to fix more than it helped me. There are these tools that are crazy.
- 58:51There's something that people don't, I think, have an intuitive feeling for because they're encountering a cognitive reactive system for the first time. I'm not saying sentient or conscious, by the way, but just cognitive. And so it's going to be as deep as how you probe it.
- 59:09So if you ask it a dumb, shallow thing, it will give you a dumb, shallow response.
- 59:13If you, you know, but if you get really deep or nerdy, and I was using it to, I was using early incarnations actually a couple of years back.
- 59:19I remember when I first figured out this effect, I was reading some philosophy books, as one does.
- 59:24And I was thinking, well, I could use this as a co-reading tutor.
- 59:27And I noticed I would just ask for some reason, give me some summaries and like, well, that's reasonable, but you know, okay, whatever.
- 59:32But then I still got deeper into some of the content and I was asking for contrasting opinions from different other perspectives and some critiques and all this stuff, and I started getting into it, it would go very deep.
- 59:42And this is like GPT just 4.0, it just come out kind of thing, like timeframe.
- 59:47So I think the same thing is true now, especially with like GPT-5 research.
- 59:50I've had feedback from friends who are like, yeah, some people say 5.0 is a nothing burger, but 5.0 research is a thing.
- 59:57Because I'm able to do, this is this other person, not me,
- 1:00:00but this other person saying, quote, I'm able to get graduate level feedback, like stuff that is deeply researched in arcane parts of mathematics.
- 1:00:08And I check it.
- 1:00:09And I mean, I use Claude to check the GPT-5.
- 1:00:11And it basically is correct as far as I can tell.
- 1:00:14So I think the thing to go to these people with is like, if you're not getting anything out of it, it's because you're not squeezing hard enough, right?
- 1:00:21Approach it as if it were a super intelligence
- 1:00:23and see how little it disappoints you.
- 1:00:26Because it will not disappoint you that often if you really get into it.
- 1:00:29Yeah, I want to take a slightly different take, but I 100% agree.
- 1:00:32I think you should treat it a little bit like a junior developer who knows 80% of what you want, but he's kind of guessing that last 20%.
- 1:00:40And if you gave this work to a junior dev and they got it 95% wrong and there's a little mistake and you had to go and say, hey, really good, but this part you got to fix up a little bit.
- 1:00:50That would be a success for that junior developer.
- 1:00:52Yeah.
- 1:00:53I don't know why we expect 100% perfection.
- 1:00:55If there's any kind of flaw whatsoever from such a creation process, they're like, well, it's broken.
- 1:01:01It's a joke.
- 1:01:02You're expected to make a few mistakes and you've got to be there to guide it, but the huge amount it gets right is so valuable.
- 1:01:08This doesn't negate the standard software development lifecycle process of having code review.
- 1:01:13You still need to have those kinds of things in place and the code review is you with your junior developer who's an LLM now.
- 1:01:19Well, yeah, the SCLC isn't negated, but the thing I think that's deeply counterintuitive is we're used to, I mean, the modality.
- 1:01:25Think about how this manifests.
- 1:01:28We're typing things still into a text window, right?
- 1:01:31And so we as developers are used to that being a very precise, predictable input, output, transformational process.
- 1:01:37We're not used to the idea of coding with a semantic paintbrush, right?
- 1:01:41Like a Chinese or Japanese calligrapher doesn't care exactly which horsehair got ink on which part of the paper.
- 1:01:47They got a brush and they're like doing their calligraphy.
- 1:01:49And I think we have to get over ourselves and think about I'm painting with a semantic paintbrush, splattering it, certainly using my fingers with keyboard.
- 1:01:57But soon it'll be dictation, right?
- 1:01:58And so we're really splattering ideas into this canvas and it's auto rendering the stuff for us into a formal system.
- 1:02:05And I think just the modality of, wow, you can see the clouds are going over the sun and like my color temperature changes in my video.
- 1:02:14It's the AI doing it.
- 1:02:15The AI is doing it because I'm getting passionate about this, right.
- 1:02:18So no, but I think that's the key thing.
- 1:02:20We are used to this modality of fingers on keyboard textual input being an input to a formal system, not an informal probabilistic system, which is what these things are.
- 1:02:30So once you make that mental bit flip, then it's like you just learn to embrace it, right?
- 1:02:34Yeah, I think voice is a great option here.
- 1:02:37We use Fireflies for our meeting recording bot.
- 1:02:41You can also just open up your phone and launch the Fireflies app and start talking to it.
- 1:02:45And it has an MCP server.
- 1:02:46So you can go into Claude Code and be like, grab the last transcript where I was just talking about this and pull it in or have a discussion about the specifications, about the journey, the epic, the customer's story, and bring those in as artifacts really, really quickly now.
- 1:03:02Yeah. Older than ballgame.
- 1:03:03It is a crazy ballgame.
- 1:03:04That's what I learned. It's a whole new ballgame.
- 1:03:05Yeah.
- 1:03:07All right. Anything else that is burning on your list of topics that we should do a lightning round because we're out of time on?
- 1:03:13We should lightning round on DuckDB.
- 1:03:15Okay, you two riffed on it because I'm knowledgeable, but you all are the ones who use it.
- 1:03:20If you've not played with it, it is an incredible little embedded, like kind of SQLite, but way more.
- 1:03:28And if you've got files on a disk someplace, they're now your database.
- 1:03:32If you've got stuff in an S3 bucket someplace, that's now your database.
- 1:03:36It's incredibly flexible.
- 1:03:38It's got so many cool extensions built into it.
- 1:03:40It can do geospatial stuff.
- 1:03:42It's got JSON capabilities that are really incredible.
- 1:03:45I mean the speed is a little bit mind-blowing it's kind of like the first time you use uv or rough like how is that so fast and then you use duck db and it's it's really I think folks should go check it out and learn a little more because it's it may change how you think about deploying a an at edge thing or a little local thing or even a big data analysis piece you may actually be able to fit that into memory on your machine and duck db and get some incredible results out of it I'm sure Peter has way more to talk about this than I do, but I don't use it that much.
- 1:04:16But man, if I had a use case for it, I would be 100% picking that tool up.
- 1:04:20Yeah, it's a fantastic little piece of technology.
- 1:04:23I don't mean little in a pejorative sense here, but at a technical level, I would say it is a highly portable, very efficient and very versatile database engine.
- 1:04:34So the name is almost wrong because it's exactly it liberates you from databases.
- 1:04:39We are used to thinking of databases at places where data goes to, well, not die, but to be housed at rest and have an extreme amount of gravity attracted to it.
- 1:04:47And then DuckDB takes the opposite of that.
- 1:04:50It says any data representation you have should be searchable or queryable if only you had the right engine.
- 1:04:58And it inverts the whole thing, which is the brilliant piece of it.
- 1:05:05And again, what data isn't just representation.
- 1:05:08It's somewhere on a disk or over a network or a memory.
- 1:05:11So it pairs very nicely with the PyData stack of tools.
- 1:05:15And so I know one of the topics we had on here as well was Arrow.
- 1:05:19So if you care about representation for a variety of reasons, then Arrow is great.
- 1:05:23If you want a query interface, you want a SQL-style query interface that's agnostic as to representation, that's your DuckDB.
- 1:05:32And of course, the fact that it plays so well with WebAssembly means Edge, you know, worker, Cloudflare workers or whatever, or PyScript and WebAssembly workers.
- 1:05:41You know, we have some we have some demonstration examples using PyScript where you have an entire analytics stack running entirely within the browser full on.
- 1:05:48You know, you got pandas and psychic image, scikit-learn, you know, map, hot lip stuff going on.
- 1:05:53And you've got you're hitting S3 buckets through with query with real full blown SQL queries using DuckDB because it all runs on WebAssembly.
- 1:06:01and this is just a taste i mean none of this is mainstream yet i think some of these use cases are a little bit on the edge but the vision this takes us to as a world where we really are just we were living a much more portable world so your fees can just move and give someone a web page a static web page it's a full-blown app and actually if you look at web gpu and transformers js web lm kinds of stuff you can fit a little tiny model in there actually and you have a totally local entirely client-side experience with AI in it.
- 1:06:30So I'm very excited about this.
- 1:06:32And DuckDB is really part of that equation.
- 1:06:33Yeah, bring your query engine to where your data is.
- 1:06:36Exactly.
- 1:06:37That way around, which always takes time.
- 1:06:39Yeah, excellent.
- 1:06:41I know people are very excited about it.
- 1:06:42It's got the built-in your program.
- 1:06:46You don't have to run another server aspect, which I think is good as well.
- 1:06:49And the WebAssembly stuff, maybe there won't be local DB and local SQL or WebSQL, all those things that we can just do DuckDB in the browser with WebAssembly.
- 1:07:00Be nice.
- 1:07:01So very interesting.
- 1:07:03We barely scratched the surface, you guys.
- 1:07:05Like there's more people need to know,
- 1:07:08but I think these are probably some of the hotter topics.
- 1:07:11We may have to do a part two, but a 2026 edition.
- 1:07:14That's just a continuation.
- 1:07:16But if people take the time, invest in putting some energy into these things, it's going to make a big difference, I think.
- 1:07:22Thanks for being on the show.
- 1:07:23And yeah, it's been great.
- 1:07:25Yeah, this was awesome.
- 1:07:25Thank you so much for having us.
- 1:07:27Yeah, thanks, Michael.
- 1:07:27I enjoy talking about all the cool new tech and tools.
- 1:07:29Yep.
- 1:07:30Bye, guys.
- 1:07:31This has been another episode of Talk Python To Me.
- 1:07:34Thank you to our sponsors.
- 1:07:35Be sure to check out what they're offering.
- 1:07:37It really helps support the show.
- 1:07:39Take some stress out of your life.
- 1:07:41Get notified immediately about errors and performance issues in your web or mobile applications with Sentry.
- 1:07:47Just visit talkpython.fm/sentry and get started for free.
- 1:07:51And be sure to use the promo code TALKPYTHON, all one word.
- 1:07:55Agency. Discover agentic AI with agency. Their layer lets agents find, connect, and work together, any stack, anywhere. Start building the internet of agents at talkpython.fm/agency, spelled A-G-N-T-C-Y. If you or your team needs to learn Python, we have over 270 hours of beginner and advanced courses on topics ranging from complete beginners to async code, Flask, Django, HTMX, and even LLMs.
- 1:08:23Best of all, there's not a subscription in sight.
- 1:08:26Browse the catalog at talkpython.fm.
- 1:08:28Be sure to subscribe to the show.
- 1:08:30Open your favorite podcast player app, search for Python, we should be right at the top.
- 1:08:34If you enjoy the Geeky Rap theme song, you can download the full track.
- 1:08:38The link is your podcast player's show notes.
- 1:08:40This is your host, Michael Kennedy.
- 1:08:42Thank you so much for listening.
- 1:08:43I really appreciate it.
- 1:08:44Now get out there and write some Python code.
- 1:08:58I'm out.