NumPy already releases the GIL. So threads should already pay off for your NumPy code, right? Christopher Ariza tested that. He summed the rows of a 10,000 by 10,000 array on Python 3.14. Sequential took 360 milliseconds. A thread pool took 373, slower than doing nothing. The same code on free-threaded Python 3.14t took 83.7 milliseconds. Free-threaded Python is officially supported as of 3.14. The GIL isn’t gone, though. It’s a zombie. Import one compiled package that hasn’t opted in, psycopg2 for example, and the GIL comes back for your entire process. You get a warning, not an error. Chris is the creator of StaticFrame and its C extension library ArrayKit. We dig into when threads beat plain NumPy, how to tell if you’re actually running free-threaded, and conditional-futures, his drop-in thread pool that stops your code from getting slower when the GIL wakes back up. Episode sponsors Talk Python Membership Talk Python Membership Talk Python Courses Links from the show Guest Christopher Ariza: github.com GIL Guard project: mkennedy.codes chameleon-rs: mkennedy.codes diskcache-oxide: mkennedy.codes Black Friday at Talk Python: talkpython.fm/black-friday episode 204: talkpython.fm Fetter: fetter.io PyBay 2026: pybay.org StaticFrame: github.com Free-threaded row-wise apply: static-frame.readthedocs.io Getting Started with Free-Threaded Python Using NumPy: github.com Free-threaded Python: docs.python.org abi3t: peps.python.org TonIO: talkpython.fm did a whole course: training.talkpython.fm psycopg2: pypi.org ArrayKit: github.com 217 of the top 360: hugovk.dev Quansights free-threading guide: py-free-threading.github.io conditional-futures: github.com rayon: github.com Watch this episode on YouTube: youtube.com Episode #570 deep-dive: talkpython.fm/570 Episode transcripts: talkpython.fm Theme Song: Developer Rap 🥁 Served in a Flask 🎸: talkpython.fm/flasksong ---== Don't be a stranger ==--- YouTube: youtube.com/@talkpython Bluesky: @talkpython.fm Mastodon: @talkpython@fosstodon.org X.com: @talkpython Michael on Bluesky: @mkennedy.codes Michael on Mastodon: @mkennedy@fosstodon.org Michael on X.com: @mkennedy
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Michael KennedyNumPy already releases the gill, so threads should already pay off for your NumPy code, right? Christopher Orisa tested that. He summed the rows of 10,000 by 10,000 arrays on Python 3.14. Sequentially, it took 360 milliseconds. A thread pool took 373 milliseconds, slower than doing it in single-threaded mode. The same code on free-threaded Python took 83 milliseconds. Free-threaded Python is now officially supported in Python 3.14,
Michael Kennedyand that's a huge opportunity for us. But this came as a surprise to me, and it may to you as well. The gil isn't actually gone. It's a zombie. If you import one compiled package that hasn't opted in, for example, at the time of recording, Psycho PG2, the gil comes back on for your entire free-threaded process. You get a warning, not an error. Christopher is the creator of StackFrame and its C extension library, ArrayKit. And we dig into when threads beat plain NumPy, how to tell if you're actually running free
Michael Kennedythreaded and conditional futures, his drop-in thread pool that stops your code from getting slower when you run into a single threaded or gil-based situation. This is Talk Python To Me, episode 570, recorded October 13th, 2026.
Michael KennedyWelcome to Talk Python To Me, the number one Python podcast for developers and data scientists. This is your host, Michael Kennedy. I'm a PSF fellow who's been coding for over 25 years. Let's connect on social media. You'll find me and Talk Python on Mastodon, Bluesky, and X. The social links are all in your show notes. You can find over 10 years of past episodes at talkpython.fm. And if you want to be part of the show, you can join our recording live streams. That's right. We live stream the raw uncut version of each episode on YouTube.
Michael KennedyJust visit talkpython.fm/youtube to see the schedule of upcoming events. Be sure to subscribe there and press the bell so you'll get notified anytime we're recording. It's Black Friday week here at Talk Python. The entire library is $50 off with the Everything Bundle. And there's a new starter set of courses, four courses, for learning Python in the age of AI. And that's only $56. The Talk Python in production book is 25% off and membership at Talk Python is 30% off,
Michael Kennedywhich gets you into our discords and monthly meetups. Visit talkpython.fm/Black Friday. The sales end December 2nd. Thanks for supporting the show. I'm really excited about this upcoming conversation with Chris about free threading in Python. It's something that he and I both care a lot about. And while it's been fine that Python doesn't really have true threading, now that we do, it's important that we actually have libraries and tools that actually use it. Chris has a bunch of really awesome advice and some great open source libraries
Michael Kennedyhe's created to help manage free threaded and GIL-based apps that both have to run on the same code base. I'm somewhat inspired by his conversation and previous work I was already doing. I actually created three new open source projects related to free-threaded Python that I just want to give a quick heads up to you all about. I would have certainly brought them up during the conversation with Chris, but they didn't exist at that time. The magic of time-shifting and podcasting. The first one is called GilGuard. It's a pure Python library that, if included in your app, will alert you and even raise an exception if you want
Michael Kennedyif one of your imports turns the Gil back on in free-threaded Python. The second one is Chameleon RS, a thread-safe, free-threaded, optimized, Rust-based Chameleon template engine. And the last one is new, DiskCacheOxide. This is the DiskCache library we've discussed previously on the show, rewritten to be, you know it, free-threaded, safe, in Rust, highly optimized, so it can take full advantage of free-threaded Python. All three of these projects have links in the podcast show notes, so check them out. Thanks to Chris for inspiring Gilgard.
Michael KennedyLet's jump into the conversation. Chris, welcome back to Talk Python To Me. Amazing to have you here.
Christopher ArizaThanks, Michael. It's really good to be back.
Michael KennedyWell, more dynamicism, less static frames this time. Had you on for static frame last time?
Christopher ArizaYeah, yeah. It's been a while. The static frame has grown even more static with a lot of work in static typing. And TypeVar Tuple last year I was doing a lot of work with. So it's even more static. But today we can talk about more dynamics.
Michael KennedyWell, we can. though I and I know we will. However, I do think static things, immutable things actually have a really important place in this topic.
Christopher ArizaYeah, that's right. You know, as we move more into a multi-threaded universe in Python, having immutable containers is even more important. And so, you know, I've been waiting for Python's immutable frozen dictionary for so many years. And finally, we get that with Python 3.15. And I think that attention to immutable data structures is really going to become important in Python.
Michael KennedyYeah, the frozen dict, which is really interesting. We get, you know, all this stuff came out October 9th, which is a little later than originally planned. But it came out October 9th, which is four days before the recording. So for us, even depending on when people listen, but for us, this is a brand new Python 3.15. It's amazing.
Christopher ArizaYeah, that's right.
Michael KennedyTell people quickly about yourself. It's been a little while since we've talked on the show. And so.
Christopher ArizaSure. So I, for 14 years, I've been at Research Affiliates, which is a small finance firm located in Newport Beach. I started there as a software engineer and moved my way up to lead some teams and ultimately became the chief technology officer. And I held that role for a couple of years. This year, the company sold off its index business and has restructured into a new entity. That was a big project for me for about a year and a half working on that transaction.
Christopher ArizaBut that is done. And as such, I'll be leaving the firm at the end of the year and we'll be moving on to other endeavors.
Michael KennedyWell, congratulations, I guess. And, you know, that's a very long run. And it's cool to kind of lead a big group of people working on big projects, right? the CTO side of things and all that.
Christopher ArizaYeah, exactly. I mean, that's what I already miss working with all my AI agents is the camaraderie of working with people and building teams and building engagement. I can have all my agents do a ton of work, but I miss the banter. I miss the shared ideas and the creativity that comes from working with people on all those things. But we can get a lot done.
Michael KennedyYeah, it's just nothing but business, folks. Let's go. Let's go. so for me obviously i've been working on my own for for quite a while i worked it before of course but since 2016 it's just been me and my own business and so i totally get what you're saying about this like being around people and so on luckily i get to talk to folks like you on the show every week which is great but when when the ai stuff came around i actually it was actually a little unnerving to me how impersonal and third person it would be like the user has reported the
Michael Kennedyis unacceptable. We are now refactoring. Please stop. You're the only thing I talk to all day. Don't call me the user in third person. Like Michael, my name is Michael. Address me. Right. And I got it too. And now it's like, Hey, Michael, we're working on this. And then like Michael said, if we want to do that, I'm like, okay, it's a little bit better. It's a little bit better.
Christopher ArizaThat's hilarious. Yeah. I've just recently I've done this strange thing where after, you know, a huge agent session running hours, you know, if I'm really pleased with the work at the end, I'll say something like, you know, excellent work today, we really accomplished a lot. And the responses I get at from that are just really surprising, because actually, very often what I'll find I use Claude Code very often, I'll find that what it says back is, it'll say thanks, or I appreciate that, or that's lovely to hear. And then it will go on and say, well, actually, your insights
Christopher Arizawere the ones that led to this and this and this. And so it will like instinct, I don't know, instinctively is not the right word. It will somehow go to point out where my contributions were in the interactions we had had working on that session, which is fascinating. It is fascinating.
Michael KennedyAnd I know there's, there's two, we're not gonna make this an AI show, but there's two minds around this. Well, there's one, obviously, like, stay away from AI. I hate it. I want nothing to do with it. That's one. But of the people who interact with them, there's the kind that kind of try to treat it as a co-worker or a collaborator, which sounds like you and I are kind of in that camp. And other people have come up with terms to specifically sort of like diminish it a little bit in a way that you don't get connected with. Like clanker is a common term for these, right? Like I yelled at
Michael Kennedythe clanker. It's like, you don't love your clanker. It's a thing in the corner. Clankety clank is a bad noise. It's like uncomfortable. I don't know. It's just, we live in a weird time.
Christopher ArizaI mean, I think I think Clanker is a little bit more derogatory, right? Because I look to the Star Wars reference where, you know, Clankers is what they would say before they usually destroyed the robot. So it's a little bit more derogatory. But yeah, no, I mean, I have, you know, you hear people tell lots of stories about one shot coding things. You hear people tell stories about, you know, not even looking at the code anymore. And yes, I don't I can't look at all of the code. Every time I look at the code, I find things to improve materially. Every time I fully understand what's going on,
Christopher ArizaI'm able to provide better feedback, better refinements. So it's I think the best results for now, right now, come with the human interaction. Without that, you get good results, but you can actually get better with engagement. And I believe human insight.
Michael KennedyAt least for now. I'm not in the just like send it and just, you know, the mayor and the accountant and the builders all get together. And two weeks later, here's my app. Like, I'm not here for that. All right. So what's next? You said you're leaving the firm. Are you willing to share your plans? Are you going to sit on the beach for a while? What's happening?
Christopher ArizaNot just yet. There will be some time on the beach. But I think come new year, I'll have a couple of things that are ready to release and talk about. But for now, we're just going to wait and see. All right.
Michael KennedyThe suspense. We've only got a few months. The end of the year is not that far away.
Christopher ArizaI know. I know. I know. Tell me about it. Yeah.
Michael KennedyAll right. Well, let's get into our main topic. And I want to maybe kick it off by way of a quick shout out to PyBay. So you and I just met up at PyBay. And that's how I knew about this topic and how you're interested in it. I mean, I knew pre-threaded Python existed, but I honestly learned quite a bit from your talk. And that was the fun. What was your thought on PyBay?
Christopher ArizaYeah, PyBay was great. You know, in the last couple of years, I've been to a few more of the smaller Python conferences. I was at Pi Texas in Austin, which was a really nice conference. Pi Beach in Santa Monica last year was also really great. Pi Bay, a little bit bigger, right? It's a two-track conference, which makes it just a little bit bigger than some of these other ones. And yeah, very well organized. Much appreciation to the organizers for all the hard work to get it going.
Christopher ArizaAnd yeah, the quality of talks I thought was really good.
Michael KennedyYeah, I did too. I actually got a lot out of the talks. I thought the conference was great. So recommend people check it out if they're either in the area or they feel like going next year. I hear there's already plans for next year. So that'll be great. Now your talk, your talk was interesting. I feel like first your delivery was great, but I feel like your delivery also kind of embodied the topic because you didn't have a super long time to speak. And so you had a lot to cover. So it kind of went quick and like, Right. So I feel like,
Michael Kennedyhey, we're picking up speed. We're doing free threading. This is like parallelism. Let's go. Let's go. Let's go. You know?
Christopher ArizaYeah, that's true. A 30 minute window can be a 25 minute talk or a 20 minute talk. And at the 20 end, it gets a little tight.
Michael KennedyOh, it definitely does. You know, my talk was fine in terms of I had a little bit of a gap at the end, but if it was 20 minutes, then definitely it would have been flying. All right. So your talk, you actually have the slides on GitHub and I'll be sure to link to them. Well, getting started with free threaded Python using NumPy. And that's, that's an interesting angle. I think all the stuff, all the video, all the talks were recorded and the videos will be released. I don't know the timeframe for that, but they have been traditionally. So,
Michael Kennedyand I know there were cameras there because we weren't allowed to walk around that much. We like, you stay here. The camera's focused here. Like, okay. But so eventually, actually, maybe by the time people listen to this, we'll see if the talk is out a link to it. But right now, about the slides and we've got your GitHub repo, which is pretty cool.
Christopher ArizaYeah.
Michael KennedySo tell us what was the premise of the talk in the using NumPy. Tell us what's that.
Christopher ArizaSure. Well, obviously, when I started to hear, well, then when I first started to hear about free threaded Python, I only heard bad news. I heard it was slower. Everything is slower. And that actually was the case, I think, three years ago or longer when they first started experimenting at the level of the CPython core team with free threaded Python. So I came away thinking, oh, you know, that's unfortunate. This is going to be bad. Then I started to hear a bit more positive things.
Christopher ArizaAnd I think it was early last year or the fall of the previous year with Python 3.14 out, I decided it was time to experiment with this. And the first place I looked was, of course, in Static Frame, a data frame library, and where I had already built in the ability to use multithreading and multiprocessing very easily whenever you do operations like apply a function to rows or columns.
Christopher ArizaSo I'd already built in the functionality to do that. And so I was eager to see, well, what happens when I try free-threaded Python with this? Am I going to have to change things? Is it going to work? And I just started it with free threaded Python and everything just worked and everything was just faster. And I nearly fell out of my chair when I saw an operation take half the time or less just out of the box without me changing any code. And under the hood, it was using the standard library utilities for free for threading.
Christopher ArizaI assumed that we were going to have to change things with free threaded, but we didn't. They just actually work the way we always hoped they would. So that was my start working with large data frames. But then I was like, well, what about with NumPy? Like NumPy is already super fast. It already is releasing the gil. It's already using SIMD operations to go as fast as possible. Is it possible that with free-threaded Python, we could do the summing of rows, a built-in NumPy operation that's already super fast?
Christopher ArizaCould we do that faster with threads? And you can't for every shape, But for some shapes of two-dimensional arrays, you can. And that just blew my mind that we were actually able to go faster than native NumPy with threads.
Michael KennedyYeah, you have a bunch of graphs and I'm sure we'll get to them and talk about them a bit. But your slides that we're linking to certainly have graphs. And maybe the short version before we get to there is if you don't give enough work to each thread, then the overhead overwhelms any advantage you get, right?
Christopher ArizaYeah, that's right. But for most folks doing real work, they're going to get there pretty quick. Like using NumPy sum on a row is extraordinarily fast. Threads are rarely going to help with that. But as soon as we start doing more work with each row, as you said, the barrier is much lower now to actually get real meaningful performance benefits by using multithreading.
Michael KennedyYou're right. Free threading had a bit of a bumpy road. It's been kind of the white whale of the core developers in a sense, you know?
Christopher ArizaYeah.
Michael KennedyLike always chasing it, never quite able to get there, risking your life to do it or whatever. I mean, maybe that's a bit dramatic. But there was a lot of work done and a ton of engineering effort put into trying to somehow free things from the GIL. You know, Larry Hastings is famous for his years of gillectomy work and reports at the conferences and things like that. And then Sam Gross from Meta and the Cinder team finally cracked it around 3.12 timeframe and started seeing if we could get it into Python proper.
Christopher ArizaYeah, it's a really challenging problem. And I know there's many challenges. But to me, the one that stands out is reference counting. Reference counting is obviously so important to how Python works and how it gets its excellent dynamic behavior. And as I understand, a large part of the reason the GIL was there was to make reference count mutations on pi objects atomic using a lock on the interpreter. Now, that lock served other purposes, but reference counting was a really critical one.
Christopher ArizaAnd when you look at how they've solved the problem now, it's quite extraordinary because there's multiple solutions and multiple layers of solutions really to handle the handling reference counts in the face of multi-threaded concurrency.
Michael KennedyYeah, you're right. And one of the things that was the big problem was all the solutions that said, well, let's try to enable threading all hinged around this reference counting idea. And so it's like, well, we could bring four threads. And if we brought four threads, we can actually make it two times as fast. But the single-threaded case actually is 40% slower, which is why we need four threads instead of two or whatever. And for a long time, the position of the core devs, pretty rightly so, I think, was if you're going to do a solution that's going to dramatically slow down Python,
Michael Kennedyits most common use case, which is single-threaded, we're not going to do it, right?
Christopher ArizaRight.
Michael KennedySo I don't know how many people out there really day-to-day think about the reference counting side. What that means is every single interaction with anything has to go and increment a value. If I create the number seven, and seven's a little special. If I create the number 700, if I create the string Chris, if I create a new customer, all of these things are PyObject things out on the heap, right? People say, we don't have to worry about pointers in Python. Well, like actually everything is a pointer in Python. Like literally even numbers and stuff that normally wouldn't be are pointers.
Michael KennedyAny interaction like x equals 7, that has to go and increment the count on that pi object. And if you say y equals x, you got to go and increment it on that x thing again, right? It's just every little step of anything happening has to work with this reference counting. And that's where the challenge really got to be. So pretty amazing that they cracked that.
Christopher ArizaYeah, that's right. If you take some time to try to write your own Python C extensions or study some Python C extension code, the challenge of doing Python reference counting obviously really becomes front and center. One of my most surprising things I learned in writing Python C extensions was that I had to increment the reference count of none. I was like, what? Why would I have to increment the reference count of none? Well, you don't anymore because it's immortal. Because it's immortal. So you don't need to anymore. And that's also one of the changes they made is
Christopher Arizaincreasing and broadening the number of immortal objects that are there. So that something like none, we never have to touch its reference count. It's allocated once and it's just shared over the life of the process, which makes a lot of sense. But yeah, I mean, most Python C, a huge part of Python C extension code is reference count management.
Michael KennedyAnd your comment on none and it being immortal. And so that goes back to our opening section that was static and immutable objects. If they're immutable, and especially if they're going to be around forever, then why should we worry about its reference counting? Because it's just life of the process, right? Yeah, that's right.
Christopher ArizaAnd it makes you think, well, what if we could actually declare our own objects to be immutable? That's not available yet.
Michael KennedyNo, not yet. Yeah, and that's the reason I said, wait, 7 is special. Because even some of the numbers, it's negative 5 to 255 pre-allocated the runtime. And they also, when you say the number seven, at least as a literal seven, not like six plus one or whatever, it refers back to that same seven instead of a new seven, right? Right,
Christopher Arizaright.
Michael KennedyIt uses the so-called flyweight pattern where you pre-allocate and just point at things. And you can do that because they're immutable, right? So I think this immutability story is going to get more attention as we start to work our way into multithreading.
Christopher ArizaYeah, yeah, that's right.
Michael KennedyVery interesting. Another thing, big deal. So we have over here in 3.15, so this is like four days old, we now have a stable ABI for three-threaded builds, which is kind of interesting.
Christopher ArizaYes. So a huge part of StaticFrame's performance comes from a C extension library called ArrayKit. And that was one of my first tasks was to upgrade that C extension library to support free-threaded Python. So all C extension packages need to be explicitly rebuilt for free threaded Python and explicitly opt into that behavior. So that was one of the first things I set out to do. But then I realized that in my continuous integration,
Christopher ArizaI was going to need to create twice as many wheels. So I support Python 3.10 to 3.14, soon to be 3.15. so I have four python versions three platforms that's 12 wheels and then with free threaded we now have 24 wheels and uh I'm like okay well you know luckily this is all in a in a GitHub action I'm not too worried but this is a lot of binaries to deal with so um as I understand I haven't played with this yet but the stable abi for three threaded builds will enable us to have one wheel
Christopher Arizathat works both on free-threaded and non-free-threaded Python, which really is a positive direction.
Michael KennedyYeah, that's great. So basically how C extensions interact with the Python runtime and whether it's threaded one or the not-threaded one.
Christopher ArizaYeah.
Michael KennedyOkay, so let's talk about getting free-threaded Python. We've got uv, which has absolutely made life easier, right?
Christopher ArizaFor sure.
Michael KennedyBut if I just go, somehow I have Python, I have the word Python, something comes up. Maybe I got to type Python 3, depending on how I installed it. Would I import free threading? Like, you know, how does it work?
Christopher ArizaYeah, I mean, this is a bit of a challenge right now. And it's one of the things I kind of pointed out in my talk because it's very easy to be confused about this aspect. And this is why I think most people actually haven't tried free threaded Python yet, I would say is probably true. And it's because as of now, it's a separate binary. There's two versions of the binary and you have to either download or build or install different Python. The convention is, though not entirely uniform,
Christopher Arizathat there will be a little T at the end of your Python 314 or soon to be Python 315 T. So once you download a binary or build your own, the best way to reference this is with a binary that has that little T at the end. But to make things very confusing, if you create a virtual environment with a free-threaded version of Python or you compile your own locally, you're going to get a version of Python that doesn't have that T on the binary. And so it's very easy to get confused about what's going on here.
Christopher ArizaAnd this would be unsustainable, I think, in the long term. But my strong belief is that this is all going to go away and eventually free-threaded Python is just going to be Python.
Michael KennedyI agree. I think the way that free-threaded Python came into Python, maybe I just haven't paid enough attention, but I've never seen anything like this. And if it happened before, it's just, like I said, it didn't catch my attention. In 3.13, it was like, well, there's this free-threaded thing. We accept it. I think it was at 7.08, I don't know, something like that. 7.03. Anyway, we accept it conditionally. We'll try it this year, but we reserve the right to eject it back out of Python. And I'm like,
Michael Kennedywhat? that is crazy. And moreover, I think this is where this all came from. It was like you described, you got to get a separate build of Python. Like normal Python doesn't have, it has the guild, doesn't have that free threaded Python capability. So yeah, you really got to do a lot of work. I threw up here onto the screen, my uv Python list --manage Python about what I got installed. and I've got 3.15 installed, but apparently I've not yet installed Python 3.15 free-threaded,
Michael Kennedybut I do have the free-threaded one for 14, right? So I guess for people out there, if they want to install it, obviously they have uv because it's 2026. So uv Python install 3.15t is all you got to write, and then boom, you have it.
Christopher ArizaYeah, it cracks me up because there it says free-threaded. Different packages call it free-threading. Some call it no gill, like the app, DeviantUbuntu app is no GIL. And some just call it 314T. So it's just, it's kind of a mess right now.
Michael KennedyIt is a mess, but it's gotten to, it's officially accepted. You know, it's made it through its probationary period of 313 or whatever it was. And now it's here and it's just a matter of working well with it, make it go faster. Honestly, it's an ecosystem challenge, not a Python runtime challenge now.
Christopher ArizaYeah, so I think a lot of the work of the CPython development over the last couple of years has been making the standard library thread safe and making thread safety possible without compromising performance. I think that was a big part of what kind of went wrong earlier, three, four years ago in the first attempts where the degradation to standard library performance was so great. a lot of folks were like, I don't know if this is going to work. But to the great merit of the
Christopher ArizaCPython core devs, they've put a ton of work into not only handling the reference counting issue, but handling all the containers and standard library pieces that we depend on to make them thread safe and performant under multiple threads.
Michael KennedyYeah, we've got the free threaded guide, right? From the free threading guide, you're making me a little conscious about...
Christopher ArizaAll the different ways that people say this. The different ways to say it, exactly.
Michael KennedySo I believe I've talked a little bit about this before on the show. This is from the QuantSite folks who do a ton of great stuff in mostly the data science side, but all over. So they put up this guide about the status, installing it, et cetera, et cetera. But maybe the most important thing is the tracker, right? That shows you which Which packages support it? I don't know. There was another one that I had somewhere that actually had a...
Christopher ArizaThere's a link I have in my slide to another stair disc.
Michael KennedyYeah, I got it from your slide. That's right. Yeah,
Christopher Arizathat's it.
Michael KennedyThis is from Hugo. So it's free-threaded wheels. And honestly, this looks pretty good. 218 out of 360 top packages support it.
Christopher ArizaYeah. And this is, of course, the pattern that was set for migrating to Python 3, the last sort of big, heavy migration we had to go through. And it's an effective way to help communicate. But this number is very good. I mean, 218 out of 360 critical packages supporting free threading already. It's really a minority interest at this time is, I think, really great.
Michael KennedyI totally agree. And I definitely get the feel that there's a lot of data science here. I feel like the data science folks have an extra motivation to make this work because data science folks, way more than web and sort of DevOps-y and whatever other people are doing, there's not as much computational need in the same way, you know, but if you got a billion rows and you want to jam on them, all of a sudden you're like, why do I have 20 processors and I'm using one?
Christopher ArizaYeah. I mean, your escape hatch has been try to run it on a GPU or try to do multi-processing or try to implement it in C, but implementing your own homegrown multi-threaded code in C or C++ isn't great. You can use Rust. Rust's multi-threaded support is fantastic. And of course, we've seen a ton of Python C extension or rather extensions written in Rust, where the threading story is excellent. And we can get performance there. But to have it in the language,
Christopher Arizathere are places where we have to deal with heavy Python objects and being able to do big stuff with them concurrently with lightweight threads is just a huge change.
Michael KennedyIt is a huge change. I'm a little nervous about all of this stuff. I don't know. Not because I used to do a lot of C++ and a lot of C# and scientific computing and visualization type stuff. And in the early days of my work, we did all kinds of threading and so on to get advantage of all the computation we can do, you know, in those worlds, you think about pointers, shared data, allocations, race conditions, deadlocks, like they're just always something that's kind of like, well, as I'm thinking through architecture or how this works or if it's correct check check you like they're going through your
Michael Kennedymind i don't think that's happened traditionally in the python space and i talk to people i don't hear them going oh and we're using the re-entered lock here because of this and then we have a semaphore so that we don't overwhelm like that just isn't there and so builds and ci passes for free threading and actually is free of threading bugs or race conditions or deadlocks those are two different things and so yeah yeah that's i don't know how you feel about that what do you think
Christopher Arizause immutable data structures and don't try to mutate things in place while you're doing your multi-threading and you solve a huge number you just avoid a ton of the problems and i think that's that's i think that's true if you can if you can avoid doing in-place mutation while doing your multi-threading it just removes a ton of the challenges that all of those different types of locks that you mentioned are there to handle i think it's pretty rare that you really need to get into that.
Christopher ArizaBut again, what's fascinating is that Python has had all of the resources necessary to handle locking as needed for multi-threaded code for a decade, probably. It already has, all the tools are there. So if you do get in a complicated situation, the tools are already there in the standard library. But I think the other thing you bring up that is quite relevant is the testing regime of making sure that our CI is actually getting at the multi-threaded scenarios that we need to exercise.
Christopher ArizaAnd that's something that I think you're right. A lot of Python projects haven't had that in their sort of CI battery of testing.
Michael KennedyYeah. I think that agents, the AI agents actually could help a lot. I want a barrage of stress tests for this thing using parallelism. And we all have many, many core machines these days, right? So you could do it. You could do it.
Christopher ArizaYeah, absolutely. Absolutely.
Michael KennedyI just, so I wanted to adopt this. I'm like, oh, let me try for one of my websites because that would be really cool, right? Is if I could somehow just say, we're going to turn on multi-threading and server as eight cores. So we're just going to have eight threads. I mean, that gives me like eight X amount of processing on the CPU side without, you know, farming that out to other workers and raising the RAM. Like this is a big part of my talk, actually, at 5A. But the free threading would make a huge bonus, a huge benefit to that, I think. But then while we were talking, I just ran a little WC-L and I have 270 plus packages
Michael Kennedyin my virtual environment. Now, some of those are like porting stuff for just the developer mode. So let's call it 150. What's the chances all 150 are green on this list? I will bet you strongly that it's zero. They don't all have to be, right? Like the thing that does markdown parsing is probably only parsing a single. You know, like it doesn't necessarily mean that I have to have all 150 checked off, but it's got a little bit of a two to three feel, fortunately. Like if you've got one thing that doesn't cross over,
Michael Kennedyare you able to still make that move? I mean, you could do the lock again. Like, OK, we're just going to force single thread it onto this part of my code if it's really, really important. But what do you think?
Christopher ArizaWell, so what you're pointing out is the challenge of thread safety when we have to resort to a lock. But the other thing that we need to keep in mind, and this is sort of the peculiar situation we're in at this time, is that if you first of all, if you have a package that is native Python, there's no concern. native Python packages will load in free-threaded Python, though they may not be thread safe. But they will load and the gil will remain disabled. The real issue that people have to be aware of, and I think the issue that's a challenge for adoption,
Christopher Arizais that if you load a package that is a binary, that has not opted into free-threaded Python, like PsychoPG as I show,
Michael KennedyThe most popular Postgres database adapter for Python for the most popular database.
Christopher Arizayeah so if you load any wheel that is not compiled for three-threaded python it will re-enable the GIL and that's a particularly troubling thing so to say it as i say in my slides the GIL is a zombie right now in the free-threaded binary of python the GIL is not removed it is disabled and we can turn it back on at the start of the python free-threaded python we can it can also get enabled because you import a wheel.
Christopher ArizaSo that's not compatible. So what that means is any time in the life of your program, if you happen to have a process that or a function that has an internal import, or you finally call on some routine, it's going to re-enable the GIL dynamically in a moment. And so if you had been counting on free threaded performance and the GIL then gets enabled, your free threaded performance is going to go away and potentially your performance is going to get much worse so i think that's the real check independent of getting uh you know thread
Christopher Arizasafety that's another challenge but just having the basic compatibility in the wheels is critical to ensuring that your process remains without the gale for its full run yeah and i'm looking for
Michael Kennedywhere the common is in your slides but somewhere you actually show the message so if you import psycho pg which one was it psycho pg2 or whatever it was yeah i think it's then yeah then you get a a warning, not an error, just a warning. Well, we're not ready for a free threaded Python. So we've turned it off for the process for everything. You're like, wait, what? You can just turn it off. No, no, no, no. Don't just turn it off. Like that's super subtle, right?
Christopher ArizaYeah. Yeah. And so like people opting into people who were using free threading are probably using it for the performance and it's the stakes are high because if the same free threaded code on standard python will in many cases go slower and sometimes a lot slower whereas with free threaded python it can go half the speed or an order of magnitude faster that's night and day and so you are so right now writing libraries or writing routines processes to depend on free threaded python is great but you have to be super careful that uh you don't
Christopher Arizaincidentally import something that re-enables the GIL and you wonder why now things are taking you
Michael Kennedyknow 10 times as fast as a lot and it's using not one core but all the cores and more memory you're like wait it's using it more my compute or my server or whatever and it's slower this is going slower i'm here for yeah yeah yeah that's right that's right i found it so your slide the title raising the dead yeah yeah so you can actually ask the system is the GIL enabled right yeah so it's
Christopher ArizaSo it's a private method, I guess, because it's still experimental. It's a leading underscore is gil enabled, but that is your runtime check to see if the gil is enabled. Now, I think what I'm not quite certain about, so it does give a warning, but I think what it says is that if you start free threaded Python with the flag of the gil always disabled, it might err instead of giving you a warning. I haven't experimented with that yet. So there might be a way to lock it down and say, if anything tries to re-enable the gil,
Christopher Arizafail, which is kind of the default I would prefer.
Michael KennedyYes. But actually, I think it's YOLO. Let me read the message. So here's the code. Run free-threaded Python. Import this. Is gil-enabled? No. Import Psycho PG2. Big message I'm about to read. Is gil-enabled? Yes. Right? So it's turned it back on, which is just the fact that that can happen at all is very weird to me.
Christopher ArizaYeah.
Michael KennedyBut OK, here's the message. 491. runtime warning, not error, the global interpreter lock gil has been applied, has been enabled to load the module psychoPG2.underscorePsychoPG, which has not declared that it can run safely without the gil. And here's why I think it's YOLO. To override this behavior and keep the gil disabled at your own risk, run with Python underscore gil equals zero.
Christopher ArizaYeah.
Michael KennedyAnd the environment. So because the at your own risk, rather than it's going to stop, it's going to be like Right,
Christopher Arizaright, you're right. Let's
Michael Kennedyroll, baby. Let's roll.
Christopher ArizaYeah, so that will ignore compatibility, but it's not making any claim for thread safety. I think that's what's doing. At least the gil won't be dynamically re-enabled, but what they're saying is you have no idea what's going to happen with this package.
Michael KennedyYeah, we've explicitly said that this is probably going to have a threading bug.
Christopher ArizaSo,
Michael Kennedyyou know.
Christopher ArizaYeah.
Michael KennedyThen again, these libraries are complicated. There's often so much of them, and I think this kind of drives me crazy. We're not as bad as the JavaScript people. Let's just feel a little better about yourself. Look in that direction. However, why do I have 270 packages in my web app? Like that is ridiculous. I'll bet you there's a bunch of them that I'm using some package and it said, oh, I need like some random small little piece that this other much more complicated library offers. I'm going to add that random,
Michael Kennedythat library so I can have that random small piece. I think there should be a lot more vendoring in or just, hey, Claude, I need to resolve a DNS. Can you just write me the code to give me the, given a DNS name, give me the IP address instead of depending on a DNS library that depends on four other things? You know what I mean? That's probably 20 lines of code that I don't have to write. And we could have this dependency story down to 20 or something instead of 200.
Christopher ArizaYeah.
Michael KennedyAnd that makes it much easier. I don't know. I don't know how to solve this problem, but that's the place we're in.
Christopher ArizaYeah, I definitely feel that pull as well in my own work where, you know, I can look for a small library to do something or I can have my agent just write it and have it be, you know, 95% or 100% of what I need. So we don't get as much reuse through that mechanism, but it does avoid a lot of dependency problems.
Michael KennedyYeah, it avoids this threading issue if the third level transit of dependency is not thread ready yet. You could tell your agent, make these 20 lines of code thread safe, but it's really hard to tell it to make like all of these dependencies you don't control behave in a way, you know?
Christopher ArizaYeah, that's right.
Michael KennedyThe other one that is honestly a 2026 top hit as well. Not as much as AI, but supply chain attacks and vulnerabilities. And you know what you don't get if you have a static file that has got 20 lines of Python you wrote in? Supply chain exposure. Not on that file anyway. You know what I mean?
Christopher ArizaYeah, that's true too. I mean, that's absolutely the case. there is a benefit from reducing your dependency exposure for not only supporting new features like this, but also for security. Absolutely.
Michael KennedyYou work, at least for a while, in a very high stakes industry. What have you all been doing with dependencies and supply chain concerns? Like, has this been something that's concerned you as well?
Christopher ArizaYeah, absolutely.
Michael KennedyKeeps you up in light, right? You're like, oh God.
Christopher ArizaOh, yeah. So when I took the role of CTO, I started getting really involved in cybersecurity. And when I looked at the security platform my organization had, I was quite impressed. We had so many things covered. But one aspect that was clearly not as secure as it could be was how we were managing Python dependencies, which we were using Python heavily. And we essentially let people download and install and try whatever they want,
Christopher Arizawhich for a small org is very practical. And developers like that freedom, but there's tremendous risks with that approach. Big organizations will turn to things like JFrog Artifactory or AWS. I forget their tool of the same name. It was, of course, the JFrog artifactory that the rogue OpenAI agents hacked to enable them to communicate and escape their sandbox.
Michael KennedyYeah, that was a hugging face incident that they basically hacked artifactory, but not to do anything nefarious, but to use it as a command and control and conversational back channel so they could get out. It was so weird.
Christopher ArizaYeah, absolutely. So and then the thing that bothers me, though, is, you know, people, unless you have unless users in your organizations have completely locked down systems, even if you set up an alternate pip or an artifactory on your in your network, if someone takes their laptop to another network, they can just go to pip or they can just download the package through another side channel and bring it in. So what I found was that in my view, there seemed to be no really foolproof way to control what packages end up on your system without going to an extremely draconian level of controls on user level systems.
Christopher ArizaAnd that level of control wasn't where my org was ready to go. So that was a big part of why I created this tool called Fetter, which is a Rust-implemented local scanner that can find all of the Pythons, all of the Pythons on your system, all of the site packages directories in every single place, and give you a list of all of the packages that have CVEs and rank them and do a bunch of fun stuff with that. So that was kind of my exploration of how to solve that problem.
Christopher ArizaIt's slow. Someone may have downloaded a package and Fedder is not going to notice until it does a scan. But when I see a report about a Python package that has been compromised or whatever, I can do one little search and find out if anyone in my organization has that package. And that's at least better than not knowing.
Michael KennedyYeah, it definitely is. I don't know. It's a very challenging problem because some of the magic of these modern programming languages is some incredible feature is just install or uv pip install away, right? I mean, we've got the import anti-gravity, right?
Christopher ArizaYeah.
Michael KennedyThat's literally was basically what it was about was the XKCD. And by the way, if you don't know this, type import anti-gravity into your ripple. But, you know, it's like the old cartoon is like there's someone up there flying. How are you flying? Python. I learned it last night. Just import this. I just typed import anti-gravity. Off it goes, right? Yeah. so gotta be careful bashing on it too hard right but at the same time it can get too i don't know it can be it can be a bit too much yeah we'll get back to free 30 but i just one more thought is i
Michael Kennedyhave you know i in the week most weeks with some extra ai credits not this week is today my credits reset and i've got three three percent left that i'm saving if i need them for something like but in general i've got a you know i've got 30 40 percent of whatever i didn't use just hanging around. I've considered just going into like, okay, what packages do I use? Let me just do a deep analysis of the threading, write a bunch of tests and find any bugs and kind of just try to work my way one at a time through my dependencies until I can be all green on that.
Michael KennedyAre we free threaded yet? Checkbox. Maybe I'll do that at some point. That'd be fun.
Christopher ArizaWell, I think the, if the performance you're looking for is overwhelmingly in your web server, I think that's the first place you need to look and see if the web server you're using, what its thread story is. And I would start off by kind of just building some isolated tests with that and see if you really get better performance. I think that's a key question.
Michael KennedyIt is a key question. I think it would. I definitely think it would. Right now I have it turned off because I don't think it's worth it. However, because all the operations are async, so it's kind of in a sense thread. But if I could, if I could turn on true threads, I certainly would. I certainly would.
Christopher ArizaI mean, we were all excited when our web servers, our Python web servers got async. We were like, this is fantastic. And then that was like a whole project. But all the while, yes, async can do a lot. But if you have performant lightweight threads, they can do more.
Michael KennedyYeah, absolutely. Let's see if I can find your slides again. Here we go. I don't know where I put it. Oh, here they are. Maybe you could talk us through some of the trade-offs. Like what you found, because you've got a bunch of graphs and sometimes this was better and sometimes it wasn't. So maybe we can talk a bit about that. What do you think?
Christopher ArizaSure. Yeah. So the.
Michael KennedyAnd then I want to talk about your thread pool magic.
Christopher ArizaSure. Yes. So.
Michael KennedyKeep loading.
Christopher ArizaYeah. So the. In my work in data frame libraries, I was constantly frustrated by people showing performance tests on an arbitrary frame. And it's like, OK, so you made it go faster here. But what I found through systematic performance analysis is the shape of the frame. Is it wide? Is it tall? Is it square? Makes a big difference. And for some operations, the types, are they floats? Are they integers? Are they strings? Will make a huge difference as well. So that led me to adopt this kind of pattern.
Christopher ArizaWhenever I'm doing performance tests on tabular data, I systematically vary the tables into tall, square, and wide groups. And depending on the types of operations you're doing, this can show a great diversity of performance. Now, for this study, I was doing one type of operation, which is row-wise function application. In a lot of financial data modeling, this is a common paradigm where you have a bunch of data in a table,
Christopher Arizaand maybe those columns are characteristics, and you go and you want to apply a function to every row in that table to do something with those characteristics and derive a new column or a new data set or what have you. So row-wise computation is something that comes up all the time. And so the first thing I looked at here was if I have a simple giant table of a NumPy two-dimensional array of integers, and I'm just calling sum on each row, can I go faster by doing those row sums with
Christopher Arizamultiple threads. And this here, if the table is tall... Are you talking summing multiple columns,
Michael Kennedylike summing purchase and discount or something like that? Just summing a row.
Christopher ArizaJust summing each
Michael Kennedyrow. A single row, okay.
Christopher ArizaA single row, yeah. And so if the table is tall, those rows are relatively short and there's many more rows. If the table is wide, each of those rows is more work and there's fewer of those rows. So my first tests of working with some on a two-dimensional NumPy array of, I think that's 100 million elements total, shows that with the gill, every application of threads is worse. And that's expected. That's what we're used to in Python,
Christopher Arizaeven though this is NumPy. With the no gill, I was able to show that for tall and square tables, performance degraded. But actually able to get a reduction almost to maybe two thirds the performance just by using, I think that was eight threads on summing the rows of an umpire array. And that was like one of the first insights where I was like, I can't believe this is possible. Even though the other cases don't work out well, having that one work was just a really positive sign.
Michael KennedyYeah, that's awesome. So there are certain situations, and this is kind of what I was hinting at before, like if you don't give it enough work, it just doesn't pay off. But your next example for even square sums or something along those lines, basically doing more work per row than any form of wideness, square or wider, it would start to be really effective, right?
Christopher ArizaYeah, that's right. And this came out of, so in implementing concurrency for static frame, I put the opportunity to use multiprocessing and multithreading because even five or 10 years ago, I started to see that there were cases where multi-threading standard NumPy would give you better performance. But those cases were hard to find and they really had to be tuned. And that really depended on how much work was happening purely in NumPy C code,
Christopher Arizawhere it often releases the GIL versus how much work was happening at the Python layer. So with this next set of examples, we have operations that are using intermediate NumPy arrays. So we're finding all the even numbers. That gives us back a Boolean array. And then we're using that Boolean array to select a subset from another array. So while the bulk of the work is in NumPy, we have intermediary Python objects that are coming back. And that additional overhead is enough to really tip the scales where when we remove the gill,
Christopher Arizaa square two-dimensional array or a wide two-dimensional array can deliver truly an order of magnitude better performance, which is my gold standard. If I can go an order of magnitude faster, I have every reason to be happy.
Michael KennedyYeah, absolutely, absolutely. So I want to close this out by talking about your thread pool story. So we've got a thread pool and we've got a multiprocessing pool in Python since way back when. The thread pool is of marginal use. If you're doing certain things where those operations are releasing the gill, then the thread pool can be really valuable. But if it's all just pure Python and you're not releasing the gill, it's still just kind of serial anyway. The multiprocessor one, on the other hand, does a lot more.
Michael KennedyBut you built a cool library that kind of takes some of the best practices around threading and works them into Python based on whether or not the GIL is enabled or not and things like that, right?
Christopher ArizaYeah. So the concurrent futures library in Python is just gorgeous. I mean, it's been it's one of the one of my favorite Python pieces, and it gives you a singular interface to do multithreading and multiprocessing. And that made it so easy for me to switch back and forth for the over the last decade and kind of see where our threads working yet, our threads working yet. And I think they've also added the same interface for sub interpreters, which we haven't talked about today. But sub interpreters was the other escape hatch for concurrency in Python.
Christopher ArizaAnd I think they've made the concurrent futures pool interface available for sub interpreters, which is super cool. But as we talked about before, right now and for I'm not sure how many years into the future, if you want to use free threading, you take a risk that someone's going to use your code and not be running free threaded Python. either because you're distributing a library and someone might not have free threaded python or someone's environment they've imported a wheel that's not compatible and the GIL gets re-enabled
Christopher Arizaso my thinking was if i want to start building code that really is counting on free threaded availability i i i need a tool that will identify if the GIL is enabled and if the GIL is enabled stop doing concurrency. So that's what this conditional futures package is. And I was really pleased with this title because I love the idea. Conditional futures. You may get a thread pool with threads or you may get something that looks like a thread pool with threads
Christopher Arizabut is actually just conventional serial processing. And what makes the determination is if the gil is enabled. So we dynamically check before every call. It's a context manager, just like normal thread pool creation. It has the same thread pool interface. It's a subclass. It's type compatible. And what it will do is it will use threads if the gil is disabled. The gil is not disabled. It will just use the same code, but only use a single threaded operation in the parent thread.
Christopher ArizaIt won't even spawn a new thread, really giving you the best of both worlds.
Michael KennedyThis is great because it lets you write code, if I get to the right one, it lets you write code as if it was multi-threaded. And then it kind of degrades to, well, we can really only have one thread. So the worker count falls back to one, right? But you don't have to do any conditional, like does the conditionals, even though it's called conditional thread pool executor. You don't have to mess with it. You just treat it like you have free-threaded Python fully and it will manage it, right?
Christopher ArizaYeah, exactly. And it will fall back to just executing in the parent thread. And again, the reason we need this right now, if you're trying to rely on free threaded Python, is that if you happen, if your code happens to run with the gil enabled, your performance will degrade materially, like very bad. So it's like to avoid that, we can just fall back into running everything in the parent thread, not creating any new threads. But this gives us one Python interface to do that.
Michael KennedyAnd to be clear, when you say it degrades, It doesn't mean if I could have got a 5x speed up with threading, it only gives you one. It's actually slower than single threaded work. Like it adds all this overhead of the threads and the context and the memories, but it doesn't have any more compute to hand to it. So it just slows down slower than if you did never do any threading, right?
Christopher ArizaYeah, absolutely. It can be really bad. It can be very bad.
Michael KennedyAnd so my big takeaway from your talk was I knew about a lot of the GIL stuff and I knew about a lot of the patterns and trade-offs of threading. I didn't know that GIL could be re-enabled in free-threaded Python. That caught me off guard.
Christopher ArizaYeah, yeah. And that's, I think, it's a curious choice, but I think it's the strange period we're in right now. And so it is, I think, the number one thing for people to watch out, again, if they're starting to try to depend on free-threaded Python, and especially if they want to distribute libraries that depend on free-threaded Python, because you just don't know which version of Python your users are going to use or if they're going to implement a wheel that re-enables the guild.
Michael KennedyI think that's also, you know, I kind of lamented that a lot of folks in the Python space aren't thinking about parallelism, deadlocks, race conditions, et cetera. I think a lot of where the free threading Python stuff is going to show up is in libraries and stuff. And people may not even directly interact with it.
Christopher ArizaYep.
Michael KennedyRight. But they're like, well, I got this other library and it's really fast because it's free threaded. All I did is call the one, you know, non-async function and it just ran. But internally, it did something like your conditional thread pool or something.
Christopher ArizaYeah, and that's why I'm so excited about this because in Python, the opportunities for using concurrency were very few. They were big, heavy processes that use multiprocessing that you would never really, that wouldn't work with threading. And you wouldn't really put into a library because a library can't make assumptions about number of cores or amount of work to really tune the concurrency to be sure that you would get a benefit. But for the first time in Python, we now have lightweight true thread concurrency.
Christopher ArizaThat means that there's this whole range of small to middle sized work units that can now take advantage of concurrency and deliver material results. Lots of little bits of concurrency that we just didn't have access to before. And so, yeah, I think you're exactly right. Library authors and maintainers can start to integrate multi-threaded routines into standard operations and have good confidence that their users on whatever system they're running are going to get good results.
Michael KennedyFor sure. Also mentioned talking to your agents. We talked about making them more friendly, but specifically with regard to concurrency.
Christopher ArizaYeah. So this is one of my favorite points is that agents generally in Python, I found them to be serial first. But even in Rust, a language that has excellent multi-threaded support and libraries, I find the agents to be serial first. an example in python is a situation where you're downloading a bunch of files in a loop this is the classic example of where python threading has always been effective and you may not want to
Christopher Arizawrite that little additional code to make it free threaded but if you just select that code and say hey make this free threaded your agent will do it and but it takes looking at the code realizing it's serial, and then asking. And then on the Rust side, you know, libraries like Rayon provide really awesome high level tools to, for example, if you have a loop that's computing, doing a bunch of work on each iteration of that loop, Rayon gives you very nice high level utilities to make those work units multi-threaded.
Christopher ArizaAnd again, I find that the agents don't reach for that first, you really need to prod them and say, hey, use Rayon to make this loop multi-threaded and it'll do it and it'll be great.
Michael KennedyThat's awesome.
Christopher ArizaMost of the time, most of the time.
Michael KennedyThat's fair, that's fair. Most of the time this threading will be great. Except for when your program just doesn't respond and it has zero CPU usage and you're just like, why? What is happening there? Bingo.
Christopher ArizaYeah, yeah, yeah.
Michael KennedyAll right, Chris. Well, that's probably what we got time to cover. give people some advice on adopting free-threaded Python, what we got to look forward to in the next couple of years.
Christopher ArizaGreat. Thanks. Yeah, I'm eager to see this evolve in the Python community. You know, as I said in my talk, there's a lot of effort has been put towards making Python faster over the last three to five years. And a lot of those that work, we've seen the benefits. But I feel this one is a real game changer for certain kinds of work that really will be a much more material benefit for a lot of folks.
Michael KennedyI agree. We can make our libraries 30% faster, and that's a lot to celebrate. But if we can make it run actually on 20 cores, that's more than 30%.
Christopher ArizaExactly. That's right.
Michael KennedyAll right. Thanks for being here. It's been really fun to dive into this free threading thing, and your talk was really great. So I'll link to it. People can check it out when it comes out.
Christopher ArizaGreat. Thanks. Happy to be here.
Michael KennedySee you later.
Christopher ArizaAll right. Thank you.
Michael KennedyThis has been another episode of Talk Python To Me. Thank you to our sponsors. Be sure to check out what they're offering. It really helps support the show. It's Black Friday week here at Talk Python. The entire library is $50 off with the Everything Bundle. And there's a new starter set of courses, four courses, for learning Python in the age of AI. And that's only $56. The Talk Python in production book is 25% off and membership at Talk Python is 30% off, which gets you into our discords and monthly meetups.
Michael KennedyVisit talkpython.fm/Black Friday. The sales end December 2nd. Thanks for supporting the show. 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, HTML, and even LLMs. Best of all, there's no subscription in sight. Browse the catalog at talkpython.fm. And if you're not already subscribed to the show on your favorite podcast player, what are you waiting for? Just search for Python in your podcast player.
Michael KennedyWe should be right at the top. If you enjoyed that geeky rap song, you can download the full track. The link is actually in your podcast blur show notes. This is your host, Michael Kennedy. Thank you so much for listening. I really appreciate it. I'll see you next time. I'm out.
Should your agent call an MCP server or just run a CLI? Pamela Fox joins us to share how she thinks about connecting AI and her data. She’s taught MCP workshops from PyCon to WeAreDevelopers. And, every week, an agent...
Where does your Python code actually run? A server in Virginia? A container in Frankfurt? Pyodide put Python into the browser. Cloudflare put the browser into the server. Combine the two and you get Python Workers, now...
The most popular Python project you've probably never heard of has 252,000 GitHub stars and merged over 1,800 pull requests in a single week. It's Hermes, a self-hosted AI agent you program just by talking to it. And it...
Which of your Python tools would you still pick if you started fresh today? For a long time, the answer was easy. The stack felt settled. AI has reopened almost every one of those choices. Some tools got faster. Others...
Do you know what's actually slow in your Python app? Or are you guessing? Until now, profiling Python meant a tracing profiler that made your code 2 to 3 times slower. Or a third-party tool that broke with every new...