Latest / Talk Python To Me / #529: Computer Science from Scratch
Transcript
- 0:00Michael Kennedy: A lot of people building software today never took the traditional computer science path.
- 0:04Michael Kennedy: They arrived through curiosity, or a job that needed automating, or a late-night itch that
- 0:09Michael Kennedy: made something work. This week, David Kopec joins me to talk about computer science for
- 0:14Michael Kennedy: exactly these folks, the ones who learned to program first and are now ready to understand
- 0:18Michael Kennedy: the deeper ideas that power the tools they use every day. This is Talk Python To Me,
- 0:23Michael Kennedy: episode 529, recorded October 26, 2025.
- 0:44Michael Kennedy: Welcome to Talk Python To Me, the number one Python podcast for developers and data scientists.
- 0:49Michael Kennedy: This is your host, Michael Kennedy. I'm a PSF fellow who's been coding for over 25 years.
- 0:55Michael Kennedy: Let's connect on social media.
- 0:57Michael Kennedy: You'll find me and Talk Python on Mastodon, Bluesky, and X.
- 1:00Michael Kennedy: The social links are all in your show notes.
- 1:03Michael Kennedy: You can find over 10 years of past episodes at talkpython.fm.
- 1:06Michael Kennedy: And if you want to be part of the show, you can join our recording live streams.
- 1:10Michael Kennedy: That's right.
- 1:11Michael Kennedy: We live stream the raw uncut version of each episode on YouTube.
- 1:14Michael Kennedy: Just visit talkpython.fm/youtube to see the schedule of upcoming events.
- 1:19Michael Kennedy: Be sure to subscribe there and press the bell so you'll get notified anytime we're recording.
- 1:23Michael Kennedy: This episode is brought to you by Sentry.
- 1:26Michael Kennedy: Don't let those errors go unnoticed.
- 1:27Michael Kennedy: Use Sentry like we do here at Talk Python.
- 1:29Michael Kennedy: Sign up at talkpython.fm/sentry.
- 1:33Michael Kennedy: And it's brought to you by NordStellar.
- 1:35Michael Kennedy: NordStellar is a threat exposure management platform
- 1:38Michael Kennedy: from the Nord security family,
- 1:40Michael Kennedy: the folks behind NordVPN,
- 1:41Michael Kennedy: that combines dark web intelligence,
- 1:44Michael Kennedy: session hijacking prevention,
- 1:46Michael Kennedy: brand and domain abuse detection,
- 1:48Michael Kennedy: and external attack surface management.
- 1:50Michael Kennedy: Learn more and get started keeping your team safe
- 1:53Michael Kennedy: at talkpython.fm/Nordstellar.
- 1:56Michael Kennedy: David, welcome back to Talk Python.
- 1:58David Kopec: Thank you so much for having me back, Michael.
- 2:00David Kopec: It's really an honor.
- 2:01Michael Kennedy: Got some really fun stuff to talk about,
- 2:04Michael Kennedy: computer science from scratch.
- 2:06Michael Kennedy: What does that even mean?
- 2:07Michael Kennedy: We're going to find out
- 2:08Michael Kennedy: because you wrote the book on it.
- 2:10David Kopec: Yeah, I'm excited.
- 2:11David Kopec: And this book just came out,
- 2:13David Kopec: so it's kind of fresh off the press.
- 2:14David Kopec: And I want to thank you
- 2:15David Kopec: for being the technical reviewer
- 2:17David Kopec: on the book, actually.
- 2:18Michael Kennedy: Yeah, it was really fun.
- 2:19Michael Kennedy: You reached out and asked me,
- 2:20Michael Kennedy: and I don't normally do things like that,
- 2:21Michael Kennedy: but I'm like, you know,
- 2:22Michael Kennedy: that'd be kind of fun. It would be a good experience. And I do think it was. It taught
- 2:26Michael Kennedy: me some about creating books and I guess that pays off as well. And congratulations, by the way,
- 2:31David Kopec: on Talk Python in production coming out. Yeah, thanks. I started that last December and it came
- 2:36Michael Kennedy: out, I think the beginning of this month, maybe end of September, something like that, but pretty
- 2:41Michael Kennedy: recently. So yeah, I really appreciate it. It's going really well. We're in kind of the same phase
- 2:45David Kopec: because computer science from scratch officially came out end of September also. So we're just in
- 2:50David Kopec: this kind of, you know, one month out from these books coming out. And so it's both, I think it's
- 2:55David Kopec: an exciting time for both of us. And I've started reading Talk Python in production, and I'm really
- 2:59Michael Kennedy: loving it. So congrats on it. Awesome. Thank you. And I really enjoyed your book. And I had to read
- 3:03Michael Kennedy: it with a little more detail than just appreciate it, right? I had to like take notes and help you
- 3:08Michael Kennedy: with some feedback. So that was a really cool experience. And thanks. You know, it's been six,
- 3:12Michael Kennedy: almost a little, it's over five years, let's put it that way. It's been over five years since you've
- 3:16Michael Kennedy: on the show, we talked about classic computer science programs in Python, I believe it was.
- 3:22Michael Kennedy: And yeah, that was really a fun and popular episode. But let's do a quick refresher,
- 3:26Michael Kennedy: a quick introduction for you to everyone who's new to the show in the last five years.
- 3:30David Kopec: Okay. So I'm a computer. My name is David Kopec. I'm a computer science professor
- 3:35David Kopec: at Albright College in Redding, Pennsylvania. Actually just moved over here from Champlain
- 3:40David Kopec: College, where I was for the past nine years in a similar role. And I'm also the program director
- 3:45David Kopec: of Computer Science and Information Technology. We're launching three new majors, a little plug
- 3:49David Kopec: for Albright, a revamped computer science major, an artificial intelligence major, and cybersecurity.
- 3:55David Kopec: And so I'm managing the launch of those for fall 2026. My background is for the past decade,
- 4:02David Kopec: obviously, as a computer science educator. I've written five books on computer science and
- 4:06David Kopec: programming, the most successful of which was Classic Computer Science, Problems in Python,
- 4:11David Kopec: which of course I was on the show five years ago about. And this book, Computer Science from Scratch,
- 4:17David Kopec: is kind of for a similar audience. Both books are for Python programmers, folks who are intermediate
- 4:22David Kopec: or advanced Python programmers, but maybe who want to fill in the kind of computer science topics
- 4:28David Kopec: that they don't know, maybe because they're self-educated. Maybe they learned Python on
- 4:31David Kopec: their own. They didn't have a formal CS degree, or maybe they did have a formal CS degree,
- 4:36David Kopec: but now they're preparing for interviews or transitioning to a more CS in-depth role.
- 4:41David Kopec: And they want to refresh on some of these topics.
- 4:43David Kopec: So both books are for folks who know Python, but want to go deeper on CS.
- 4:48Michael Kennedy: Right. They're not, here's how you do a loop in Python, or here's what itertools is.
- 4:53Michael Kennedy: It's true computer science topics, right?
- 4:56David Kopec: Right. And I think somebody at that stage will be very frustrated by the books.
- 5:00David Kopec: They really are. And so we have to put that preface in.
- 5:03David Kopec: And they really are for intermediate or advanced Python programmers.
- 5:07David Kopec: So, you know, so I'm trying to reach the same audience, but they're totally different books
- 5:12David Kopec: in terms of the type of topics they cover.
- 5:14David Kopec: So classic computer science problems in Python was more of a data structures and algorithms
- 5:18David Kopec: type of book, did some AI type topics as well, but very much on the algorithm side.
- 5:24David Kopec: Computer science from scratch is more, let's build up the layers of the software stack from
- 5:29David Kopec: the bottom up that Python kind of runs on top of. So you understand what's actually happening under
- 5:33David Kopec: the hood. So how does an interpreter work? What's the hardware software interface like? We get that
- 5:39David Kopec: with emulators. And then there is still some algorithmic stuff as well, different topics than
- 5:44David Kopec: in the prior book, but stuff like a little computer art stuff, a little bit of machine learning. So
- 5:49David Kopec: we try, it's still a survey book. It's still pretty broad, but it's more about the layers of
- 5:54David Kopec: the software stack than classic computer science problems in Python was. Yeah. And there's some
- 5:58Michael Kennedy: pretty low-level stuff and it's interesting you're doing in python you know a lot of i think a lot of
- 6:02Michael Kennedy: times that would be taught in um at least a pointer based language you know like c or even c c being
- 6:09Michael Kennedy: taught in assembly like you're talking to the machine like literally absolutely and you know
- 6:13David Kopec: if you took these classes like if you took an um architecture class which i'm going to be teaching
- 6:19David Kopec: next semester at albright it's going to be an assembly language right and if you took a compilers
- 6:23David Kopec: course, it's usually in something like C or today it might be in a Rust, a low level language where
- 6:29David Kopec: you do have that direct access to memory. But I wanted to make the book accessible. And Python is
- 6:34David Kopec: the most accessible language in the world. It's the most popular language in the world. And it's
- 6:38David Kopec: the language that we're increasingly using in computer science education anyway. So it is
- 6:42David Kopec: actually a little unusual to cover some of these topics in Python, but it makes the topics accessible
- 6:48David Kopec: to a much wider audience.
- 6:50Michael Kennedy: It definitely makes it accessible to a wider audience.
- 6:53Michael Kennedy: Let's take a step back and talk about this role you have
- 6:56Michael Kennedy: in this new college, university you're at.
- 6:59Michael Kennedy: You said that you're revamping the CS program.
- 7:02Michael Kennedy: You're adding AI and cybersecurity.
- 7:04Michael Kennedy: That's a big shift.
- 7:05Michael Kennedy: Do you want to just talk to people about how that's changing,
- 7:08Michael Kennedy: why you decided to change?
- 7:10Michael Kennedy: I look at a lot of CS programs,
- 7:12Michael Kennedy: and I don't know how connected they are to the real world.
- 7:15Michael Kennedy: So imagine some of these changes are to sort of realign it with what's happened recently.
- 7:21David Kopec: Absolutely.
- 7:21David Kopec: Yeah.
- 7:22David Kopec: So I'm coming from a college, the Champlain College in Vermont, where I was at for nine
- 7:27David Kopec: years, which was a professionally focused college.
- 7:29David Kopec: So it was a college where we were preparing students for their careers.
- 7:33David Kopec: I moved now to Albright, which is a liberal arts college.
- 7:36David Kopec: So it's a college that's more teaching people how to think, creating great citizens.
- 7:40David Kopec: And hopefully we prepare them for their careers very well, too.
- 7:43David Kopec: but there's that liberal arts foundation underneath everything.
- 7:46David Kopec: So one of the challenges in developing these three new majors
- 7:50David Kopec: was how do you fit them into a liberal arts curriculum?
- 7:52David Kopec: And how do you make them relevant to careers
- 7:54David Kopec: while still being true to the liberal arts?
- 7:56David Kopec: And so what I found the best way to do it
- 7:58David Kopec: is to still focus on how to help people think computationally.
- 8:03David Kopec: And so there's a firm foundation of computer science
- 8:05David Kopec: and mathematics throughout all three majors.
- 8:08David Kopec: So whether you're doing cybersecurity,
- 8:10David Kopec: artificial intelligence, or computer science,
- 8:12David Kopec: you're going to have a lot of classes in common with one another. And we also need to infuse some
- 8:16David Kopec: of the issues we see in the workforce today. Like all of them will have a computer ethics course
- 8:21David Kopec: that's incorporated. And all of them will have an internship course that's incorporated. So
- 8:26David Kopec: students are getting real world experience as they're going through these majors.
- 8:29David Kopec: I think that's a great idea. It's really important to have done software engineering
- 8:35Michael Kennedy: hands-on with other companies, real products, and real product managers,
- 8:39Michael Kennedy: in addition to just knowing the algorithms and foundations.
- 8:42David Kopec: Absolutely. I couldn't agree more. And so we're trying to blend the two. And that's been one of
- 8:48David Kopec: the exciting things. And you asked why I changed. I was excited about this opportunity to build these
- 8:52David Kopec: new majors from the ground up. We'll be one of the first teaching colleges, small teaching colleges,
- 8:57David Kopec: to offer an artificial intelligence major. It's just been in the last five years that we've seen
- 9:02David Kopec: colleges start to offer an undergraduate major in artificial intelligence. And it's mostly been
- 9:06David Kopec: big name brand colleges like CMU that are offering these first artificial intelligence bachelor's
- 9:14David Kopec: degrees. But we get to be at the forefront of how do you fit that into a small liberal arts college
- 9:19David Kopec: and still make it career relevant and still have that firm liberal arts foundation.
- 9:23Michael Kennedy: Are you concerned about letting all these hackers in on your network if you're teaching a cybersecurity?
- 9:28David Kopec: Well, I won't be teaching the cybersecurity courses. So I'm firmly just in the computer
- 9:32David Kopec: science education course, and we're hiring additional faculty in cybersecurity and in
- 9:36David Kopec: artificial intelligence. I'm more on the management side of those two programs. But, you know, look,
- 9:41David Kopec: it's more relevant than ever. When you look at actually the number of students going to college
- 9:46David Kopec: for cybersecurity, it's been exploding over the last decade. You know, I just talked about how
- 9:52David Kopec: artificial intelligence has just come about as a bachelor's degree. Cybersecurity was kind of there
- 9:56David Kopec: 15 years ago. So cybersecurity started out as maybe you took a computer security course at the
- 10:01David Kopec: end of your computer science degree. Then it became a concentration you could do within some
- 10:05David Kopec: computer science degrees. And then in the 2010s, it broke out and became its own bachelor's degree.
- 10:10David Kopec: And so we're seeing the same thing right now with AI. It started out, you know, when you did
- 10:14David Kopec: undergrad computer science, maybe in the 90s, or like me and the OOs, you might have one course,
- 10:19David Kopec: like an intro to AI course that you have at the end of your bachelor's degree. Then it started to
- 10:23David Kopec: be something where you do a concentration at Champlain. I developed a concentration in
- 10:27David Kopec: artificial intelligence. Now, just in the last five years, we're seeing it break out from being
- 10:31David Kopec: just a part of a CS degree to being its whole own, you know, adjacent degree. So I think it's an
- 10:38David Kopec: exciting time for that. Of course, there's a hype cycle right now about AI. So a lot of colleges
- 10:42David Kopec: are jumping in and I think some of them are doing it the right way. And, you know, having that firm
- 10:47David Kopec: foundation in computer science and mathematics, so it's durable. And some of them are doing it in
- 10:52Michael Kennedy: kind of a shallow way. We're trying to do it the right way. Yeah, that sounds great. And obviously
- 10:56Michael Kennedy: cybersecurity is one of those things that's highly valuable. Nobody wants to be in the news
- 11:01Michael Kennedy: for that reason, right? So companies are certainly looking for people with those skills.
- 11:06Michael Kennedy: Let's talk one more thing about the university and not the AI focus, but just AI. One of the
- 11:12Michael Kennedy: things I think is of all the places that's getting the most scrambled, changed, under pressure,
- 11:19Michael Kennedy: whatever you call it, from AI, I think it's education in general. And I'm not talking just
- 11:24Michael Kennedy: college. I'm talking, I don't know, like third grade. As soon as the kids can start using AI,
- 11:28Michael Kennedy: they're like, this is like the calculator with a rocket booster on it. You know what I mean? Like
- 11:32Michael Kennedy: this will solve the problems. And I think there's a really big challenge for you as universities to
- 11:38Michael Kennedy: connect with students, keep academic integrity as well. But there's also a huge problem, I think,
- 11:43Michael Kennedy: for the students to not let it undercut their education and end up going, well, all I know
- 11:49David Kopec: to do is to do ChatGPT. You're absolutely right. I mean, it's a huge challenge in computer science
- 11:54David Kopec: education. And I don't think the computer science education community has yet completely figured it
- 12:00David Kopec: out. Well, basically what it breaks down to is exactly what you said. Students are just using
- 12:05David Kopec: ChatGPT or GitHub Copilot to do their homework. And if you're in a first year or second year class,
- 12:12David Kopec: I've been mostly teaching upper level CS for the past like six plus years. And I'm teaching an
- 12:17David Kopec: intro class for the first time in a long time this semester. And it's been eye-opening for me
- 12:22David Kopec: to see how many students are trying to just do every assignment with ChatGPT. And we still have
- 12:28David Kopec: to give them basic assignments. When you're first learning how to do a for loop or what a function
- 12:33David Kopec: is or what an if statement is even, right? You got to write some of those things.
- 12:36Michael Kennedy: You can't say implement a database and get back to me next week. You got to start somewhere.
- 12:40David Kopec: So we still have to teach these fundamentals, but we have this opponent to us in some sense
- 12:45David Kopec: of this ease of access to something that can just do all the work for you. And so I'm sure that,
- 12:51David Kopec: you know, like you mentioned, mathematics educators had similar challenges in the 1970s,
- 12:55David Kopec: 1980s as calculators became prominent. So what I've done and I've been adjusting as since chat
- 13:02David Kopec: GPT came out in fall 2022, I've been constantly adjusting and reevaluating, but I have had to go
- 13:08David Kopec: back to the future a little bit and people might find this a little anachronistic, but I've heard
- 13:12David Kopec: about it from other CS educators as well, going back to doing some paper exams. I know that sounds
- 13:18David Kopec: crazy and I know that sounds like bizarre, but at some point you need to evaluate if students
- 13:24David Kopec: actually know how to write a for loop because, you know, while we think, some people think LLMs are
- 13:29David Kopec: going to replace software engineers in the next two years, you still need to understand what it's
- 13:33David Kopec: outputting. And I don't think it's, I don't know about you, Michael, but I don't think they're
- 13:36Michael Kennedy: completely replacing software engineers in the next couple of years. And that's coming, I don't
- 13:41Michael Kennedy: know how many people maybe don't necessarily. I'm a huge fan of agentic coding and what it can do
- 13:47Michael Kennedy: for productivity. And it's incredibly powerful, but it's one of those things that it needs someone to
- 13:53Michael Kennedy: guide it who knows how to do that. And then it becomes a superpower. If you don't, you end up
- 13:58Michael Kennedy: with like, how do we end up on React? I thought this was a Rust project. You're like, what happened
- 14:02David Kopec: here? Yeah. And you need to understand when it makes mistakes, you need to know how to correct
- 14:06David Kopec: those mistakes. And of course, you need to be understanding everything that it's outputting,
- 14:11Michael Kennedy: so you're auditing it. This portion of Talk Python To Me is brought to you by Sentry's Seer.
- 14:18Michael Kennedy: I'm excited to share a new tool from Sentry, Seer. Seer is your AI-driven pair programmer that finds,
- 14:25Michael Kennedy: diagnoses, and fixes code issues in your Python app faster than ever. If you're already using
- 14:31Michael Kennedy: Sentry, you are already using Sentry, right? Then using Seer is as simple as enabling a feature on
- 14:37Michael Kennedy: your already existing project. Seer taps into all the rich context Sentry has about an error.
- 14:43Michael Kennedy: Stack traces, logs, commit history, performance data, essentially everything. Then it employs its
- 14:48Michael Kennedy: agentic AI code capabilities to figure out what is wrong. It's like having a senior developer
- 14:54Michael Kennedy: pair programming with you on bug fixes. Seer then proposes a solution, generating a patch for your
- 15:00Michael Kennedy: code and even opening a GitHub pull request. This leaves the developers in charge because it's up to
- 15:05Michael Kennedy: them to actually approve the PR. But it can reduce the time from error detection to fix dramatically.
- 15:12Michael Kennedy: Developers who've tried it found it can fix errors in one shot that would have taken them
- 15:17Michael Kennedy: hours to debug. SEER boasts a 94.5% accuracy in identifying root causes. SEER also prioritizes
- 15:25Michael Kennedy: actionable issues with an actionability score, so you know what to fix first. This transforms
- 15:32Michael Kennedy: Sentry errors into actionable fixes, turning a pile of error reports into an ordered to-do list.
- 15:38Michael Kennedy: If you could use an always-on-call AI agent to help track down errors and propose fixes before
- 15:43Michael Kennedy: you even have time to read the notification, check out Sentry's Seer. Just visit talkpython.fm
- 15:50Michael Kennedy: slash Seer, S-E-E-R. The link is in your podcast player's show notes.
- 15:55Michael Kennedy: be sure to use our code talkpython one word all caps thank you Sentry for supporting talk
- 16:01David Kopec: Python so we are having a real challenge especially in those intro classes of how do you
- 16:08David Kopec: kind of force students to not use these tools essentially because you're not learning anything
- 16:13David Kopec: if the tool writes the for loop for you when you're first learning how to do a for loop and so you have
- 16:18David Kopec: to find ways to to encourage it to to win hearts and minds i think of course that's a big part of it
- 16:24David Kopec: is convincing students and being dynamic and enthusiastic about how good it feels to really
- 16:31David Kopec: understand how this actually works. But then there has to be enforcement too. And sometimes that feels
- 16:36David Kopec: a little anachronistic being forceful about it or going back to doing tests on paper. But we have to
- 16:41David Kopec: have ways of ensuring the knowledge is actually there. I feel like this is not just a college
- 16:47Michael Kennedy: student issue, but I think it's especially relevant in that part of your career that the struggle is
- 16:52Michael Kennedy: not in the way. The struggle is often part of what unlocks your thinking. It's part of what
- 16:59Michael Kennedy: cements the knowledge and makes you feel a true sense of accomplishment. When you're like,
- 17:03Michael Kennedy: I tried this and I couldn't get it to work. But three hours later, I finally figured it out. And
- 17:09Michael Kennedy: I now understand iterators. Finally. You know what I mean? And it's just so easy to push the easy
- 17:15Michael Kennedy: button and just say, chat, why? Yeah. You know? And that's what feels good about being a teacher
- 17:21David Kopec: is being there for those aha moments with students.
- 17:24David Kopec: I had some moments like that last week
- 17:26David Kopec: and they reminded me,
- 17:27David Kopec: this is why you're in this career.
- 17:31David Kopec: It's really something that can become addictive
- 17:34David Kopec: to students actually.
- 17:35David Kopec: When they start having those aha moments,
- 17:37David Kopec: they want more of them and it spurs on.
- 17:40Michael Kennedy: That's how you end up at like 3 a.m.
- 17:42Michael Kennedy: really hungry,
- 17:43Michael Kennedy: wondering why you haven't gone to sleep
- 17:45Michael Kennedy: but still programming.
- 17:45Michael Kennedy: You're like, this is amazing, I can't stop.
- 17:48David Kopec: Right, right, right.
- 17:48David Kopec: And it takes a certain mindset to be able to appreciate those moments.
- 17:54David Kopec: And, you know, this is like a sidebar, but one thing we're also seeing in computer science education is we see a lot of folks who go into it sometimes for the wrong reasons.
- 18:03David Kopec: Folks sometimes go into computer science just because they hear, this is a great way to get a good job.
- 18:08David Kopec: And if that's your only motivation going into it, you're probably not going to be successful in it, unfortunately.
- 18:15Michael Kennedy: It's going to be tough. Yeah, it's going to be tough.
- 18:17Michael Kennedy: But a lot of people are there for the right reasons. So I think that that's good.
- 18:21David Kopec: Absolutely. And I hope with a book like this, folks who came in from the other side,
- 18:25David Kopec: folks who came in because they had that interest, but they didn't have the chance to either go to
- 18:31David Kopec: university, maybe they couldn't afford it, maybe they studied something else and they're later in
- 18:35David Kopec: their career. This will hopefully give them a bunch of those aha moments and about topics that
- 18:41David Kopec: are deeper than just how to write a for loop. Yeah, absolutely. Well, good. I mean, I feel like
- 18:46Michael Kennedy: there's probably some middle ground you might be able to accomplish if you're like, all right,
- 18:51Michael Kennedy: we're going to give you a laptop, a testing laptop that has no internet. Like we've gone in there and
- 18:56Michael Kennedy: crushed the network card. Yeah. Here, take the test. And here's your thumb drive to submit your
- 19:01Michael Kennedy: work and potentially, you know, potentially. Yeah. Yeah. And when we do stuff like that,
- 19:04David Kopec: like I just did a test on, you know, an online test for my students and I'm just monitoring to
- 19:10David Kopec: make sure nobody's using the tools. You know, but there is something said still for paper exams.
- 19:15David Kopec: I'll tell you why. Sometimes even today on today's tools for giving exams, sometimes you want students
- 19:19David Kopec: to draw something, especially if it's a data structures and algorithms class, you might want
- 19:23David Kopec: them to draw a tree and it's just actually easier for them to do that on paper. So when people hear
- 19:27David Kopec: paper, they might be like, oh my goodness, what are you doing that for? No, there's real reasons.
- 19:32David Kopec: Yeah, of course. But yeah, we have monitoring tools too. Yeah, very good. All right. Let's maybe
- 19:37Michael Kennedy: take a couple of different examples or different chapters in the book and talk through them.
- 19:41Michael Kennedy: The first one, the first main topic is the smallest possible programming language, right?
- 19:48David Kopec: Yes, yes.
- 19:49Michael Kennedy: Tell us about this.
- 19:50David Kopec: Yeah, the premise of the chapter is what's the minimum that we need to have a programming language?
- 19:56David Kopec: And there's a famous programming language.
- 19:57David Kopec: I'm actually not going to use the name of the language on the show, I think, just because it has the F word in it.
- 20:02David Kopec: And I didn't make up the name of the language.
- 20:04David Kopec: It was developed 30 years ago, but we'll just call it BF, okay?
- 20:07David Kopec: Yeah.
- 20:09David Kopec: Brain F star.
- 20:10David Kopec: Yeah, sure.
- 20:11David Kopec: or in AppStar. This language, it only has eight symbols in it. I mean, it literally only has eight
- 20:17David Kopec: symbols in it, yet it's what we call Turing complete. And I'm not going to, I won't go into
- 20:22David Kopec: the full details of what it means for something to be Turing complete, but let me put it this way.
- 20:25David Kopec: A language that is Turing complete can theoretically solve any of the same algorithmic
- 20:31David Kopec: problems as any other language that's Turing complete. And every programming language that
- 20:35David Kopec: you use is Turing complete, whether it's Java, Python, C, whatever, of course, they're all
- 20:39David Kopec: Turing complete. This language with only eight symbols in it is also Turing complete. So while
- 20:44David Kopec: you could code something like Quicksort in Python, you could also code it in BF with just eight
- 20:50David Kopec: symbols. While you could code a JSON parser in Python, you could also code a JSON parser in BF.
- 20:56David Kopec: So by learning this really, really basic language and actually implementing it,
- 21:00David Kopec: so implementing an interpreter for it, something that can actually run programs written in it,
- 21:04David Kopec: you really get to understand just how little we need to solve computational problems.
- 21:09David Kopec: We don't need much.
- 21:10David Kopec: We need very minimum amount of computing machinery and very minimum amount of syntax to be able to solve most problems.
- 21:20David Kopec: Now, would you want to solve most problems in PF?
- 21:22David Kopec: Of course not.
- 21:23David Kopec: We just use it as an illustrative example to show this is how simple a programming language can really be
- 21:29David Kopec: and still have all the same capabilities as a more advanced programming language.
- 21:33David Kopec: And you might wonder then why do we have such much more advanced programming languages?
- 21:37David Kopec: Because they give us a lot more developer productivity.
- 21:39David Kopec: They have more abstractions that let us think as human beings instead of thinking like machines.
- 21:43David Kopec: The expressiveness, absolutely.
- 21:45David Kopec: And so that's great that we have all of that.
- 21:48David Kopec: But if you really want to understand essentially what the language is doing at the lowest levels, you only need these few bits.
- 21:55Michael Kennedy: So what's the key message here?
- 21:57Michael Kennedy: Obviously, you're not trying to get people to become BF experts, right?
- 22:00Michael Kennedy: I mean, maybe learn Cobalt over BF these days.
- 22:05David Kopec: It could work for the Social Security Administration.
- 22:07David Kopec: Yes, exactly.
- 22:08Michael Kennedy: There's going to be some high-paying Cobalt jobs out there.
- 22:11Michael Kennedy: But this is more about writing an actual interpreter, very much like CPython itself, in a sense, conceptually.
- 22:19David Kopec: Conceptually.
- 22:20David Kopec: I mean, much, much, much simpler.
- 22:22David Kopec: And actually, in the next chapter, we get to writing a basic interpreter, which is just one step up from BF.
- 22:28David Kopec: And we can talk about that in a minute.
- 22:29David Kopec: But yeah, it's about understanding how it works at a low level.
- 22:34David Kopec: Like what's it actually doing?
- 22:35David Kopec: And, you know, it feels good to make something that can run programs.
- 22:39David Kopec: A lot of people, when they get into computer science, are actually excited about like making their own language.
- 22:45David Kopec: So by doing these first couple of chapters of the book, you're actually on the path to that.
- 22:48David Kopec: I think after reading these first two chapters, you could go implement your own simple language and really make that kind of dream that a lot of us have come true.
- 22:57David Kopec: So it's about understanding how it works at a low level.
- 22:59David Kopec: I have to say the book is not a practical book.
- 23:02David Kopec: It's not like talk Python in production
- 23:05David Kopec: where you're going to learn,
- 23:06David Kopec: you know, here's some useful tools
- 23:08David Kopec: and tips and strategies.
- 23:09Michael Kennedy: Install this thing and set up that config
- 23:11Michael Kennedy: and then run it this way.
- 23:12David Kopec: To do something right now.
- 23:13David Kopec: Right.
- 23:13David Kopec: Computer Science from Scratch
- 23:14David Kopec: is not going to help you build your next app
- 23:16David Kopec: like that you're building.
- 23:18David Kopec: Not directly.
- 23:19David Kopec: Not directly,
- 23:20David Kopec: but it is going to help you understand
- 23:22David Kopec: a lot more about what's happening
- 23:24David Kopec: under the covers,
- 23:25David Kopec: which is ultimately going to make you think
- 23:27David Kopec: more broadly as a software developer
- 23:29David Kopec: and understand different strategies that you might be able to use.
- 23:32David Kopec: I'll give you an example with this interpreter stuff.
- 23:35David Kopec: You might be writing a program that needs to have some kind of configuration files,
- 23:39David Kopec: and you want to maybe be able to parse those configuration files.
- 23:43David Kopec: Well, part of writing an interpreter is writing a parser,
- 23:46David Kopec: something that understands the syntax of the programming languages
- 23:50David Kopec: and starts to get towards the semantics.
- 23:52David Kopec: And you might want to be able to write a parser later on
- 23:55David Kopec: for some very specific configuration type format that you've come up with
- 23:58David Kopec: for some, or maybe even just a file format for more of like an office type program.
- 24:03David Kopec: And you're going to need some way of understanding the techniques of how to parse that. Learning how
- 24:08David Kopec: an interpreter works will help you write that program later on. So it's about learning computational
- 24:12David Kopec: techniques, learning problem solving techniques more than it is about like something that's going to
- 24:17David Kopec: necessarily be, this is exactly how you do this for the next app you're going to build.
- 24:20Michael Kennedy: It's not something that you would just stumble across most of the time, I think, right? You'll
- 24:28Michael Kennedy: across, you know, oh, here's an ML library or something, but you don't typically stumble across
- 24:33Michael Kennedy: and here's how you build a parser from scratch. Right. And so, you know, there has to be that
- 24:38David Kopec: curiosity there. So I will admit that, you know, if you have no interest and you're not the type
- 24:43David Kopec: of person who wants to understand how things work, you won't like this book. And you know,
- 24:46David Kopec: that is some folks and that's okay. There's folks who go into programming because they're only
- 24:50David Kopec: interested in what they can build and they're not so interested in how things work. And if that's
- 24:55David Kopec: you, this is probably not the book for you. But if you're the type of person who has that curiosity
- 24:59David Kopec: and you really want to understand how everything's actually working under the covers, then this is a
- 25:04Michael Kennedy: great book. Yeah, absolutely. And it's a simple enough thing that you can grasp the ideas pretty
- 25:10Michael Kennedy: quickly with this BF language, right? It's not so complicated that you, you know, a day later,
- 25:15David Kopec: still trying to make the thing parse. Absolutely. I mean, what's crazy is to interpret BF,
- 25:22David Kopec: you only need about 30 lines of code, 30 lines of Python.
- 25:26David Kopec: And then you actually have something that can run any program written in this language.
- 25:31Michael Kennedy: And to be clear, you have like something.bf files that you can put the language into,
- 25:36Michael Kennedy: and then you say Python, this module, that file,
- 25:40Michael Kennedy: and it'll run it as if it were an interpreter for that thing, right?
- 25:43David Kopec: Exactly. Yeah.
- 25:44David Kopec: You're literally implementing the whole programming language in like 30 lines of Python.
- 25:48David Kopec: And I think what's great about this too,
- 25:50David Kopec: is it takes away the feeling that everything is magic.
- 25:54David Kopec: That's another thing I love when people read
- 25:56David Kopec: also class computer science problems in Python
- 25:58David Kopec: is sometimes when you think about how these things work,
- 26:01David Kopec: like in that book, we cover the A-star algorithm,
- 26:04David Kopec: which is something that Google Maps work uses.
- 26:06David Kopec: When you think about Google Maps,
- 26:08David Kopec: it feels like magic when you use it.
- 26:10David Kopec: But actually there's really understandable,
- 26:13David Kopec: logical algorithms that are underneath the surface.
- 26:16David Kopec: It's the same thing here.
- 26:17David Kopec: Python itself might feel like magic to a lot of folks.
- 26:19David Kopec: But by the time you get through these first couple chapters, especially through the basic interpreter chapter, you'll start to be on the road to think, oh, you know what?
- 26:26David Kopec: I bet I could dive into the CPython source code with enough additional training and really understand it.
- 26:32David Kopec: It gives you that confidence that this is not just magic.
- 26:35Michael Kennedy: You just got to look at the byte codes and look at it go.
- 26:40David Kopec: Yeah.
- 26:40David Kopec: Not to say there's not a lot more there, but it just gets you on that journey and makes you see it's not magic.
- 26:44Michael Kennedy: Right.
- 26:45Michael Kennedy: Well, it's that zero to one sort of gap that's the hardest to cross.
- 26:49Michael Kennedy: Yeah.
- 26:49Michael Kennedy: Yeah.
- 26:50Michael Kennedy: You know, like the second language, second programming language you learn or the third
- 26:55Michael Kennedy: or the fourth, they only get easier to learn, not harder to learn.
- 26:58Michael Kennedy: Whereas, you know, maybe when you're first starting out and you're trying to get something
- 27:01Michael Kennedy: to compile and it won't even run, you're like, oh my God, how am I going to do?
- 27:04Michael Kennedy: I can't even learn this one.
- 27:06Michael Kennedy: There's all these things I'm going to have to know.
- 27:07Michael Kennedy: And it's really kind of upside down.
- 27:09David Kopec: Yeah, absolutely.
- 27:10David Kopec: And so, you know, when we think about understanding how Python itself works, I think the second
- 27:15David Kopec: chapter of the book about basic gets us, you know, a lot further along on that journey.
- 27:19David Kopec: because here this isn't just a made up.
- 27:22David Kopec: BF is, it's a language that's been around
- 27:24David Kopec: in computer science education for like 30 years,
- 27:26David Kopec: but it's not a real language that people actually used.
- 27:29Michael Kennedy: And the second factor-
- 27:30Michael Kennedy: Very few people ever said that they were BF programmers
- 27:33Michael Kennedy: at a dinner party, right?
- 27:35David Kopec: Absolutely.
- 27:35David Kopec: But plenty of people said they were basic programmers.
- 27:38David Kopec: And it was the first programming language
- 27:40David Kopec: of a lot of people who grew up in the 70s, 80s,
- 27:42David Kopec: or even the 90s.
- 27:42David Kopec: It was my first programming language.
- 27:44David Kopec: And there was a dialect of basic called tiny basic
- 27:47David Kopec: that came out in the late 1970s.
- 27:49David Kopec: it was actually one of the first free software projects. And it would run on machines that just
- 27:55David Kopec: had two or four kilobytes of RAM. So that's why it was called Tiny Basic. I mean, it truly was
- 28:01David Kopec: tiny. And so we re-implement a dialect of Tiny Basic in chapter two. So this is re-implementing
- 28:06David Kopec: a real programming language that people actually used for real work in the late 1970s and up to the
- 28:12David Kopec: early 1980s. And it can run real programs from that period. So you could go download a program
- 28:17David Kopec: from the late 70s, we were missing like one or two features from the real language.
- 28:22David Kopec: But if you have a pro, not all programs use all those features, you could actually run
- 28:25David Kopec: it in this interpreter.
- 28:26David Kopec: So we go from the first language where it's really esoteric, educational, you know, weird
- 28:31David Kopec: language to the second chapter.
- 28:32David Kopec: This was a real thing.
- 28:33Michael Kennedy: Yeah, absolutely.
- 28:34Michael Kennedy: It was, you know, I'm just going to give a little shout out to Visual Basic.
- 28:38David Kopec: Yeah.
- 28:38Michael Kennedy: I don't know.
- 28:39Michael Kennedy: Did you ever do Visual Basic?
- 28:40David Kopec: I did.
- 28:41David Kopec: And I did a version on the Mac called REALbasic.
- 28:43David Kopec: So this is really esoteric.
- 28:45David Kopec: But anyone who used real basic, late 90s, I'm in your camp.
- 28:48Michael Kennedy: There you go.
- 28:50Michael Kennedy: I don't know if we even today still have something as approachable and productive as Visual Basic was.
- 28:57Michael Kennedy: For people who haven't used it, you're like, there's just no way.
- 28:59Michael Kennedy: There's no way that it's basic.
- 29:01Michael Kennedy: But you would just get a visual thing.
- 29:02Michael Kennedy: You would drag it together to build your, you know, here, I want to have, literally, you would drag over.
- 29:07Michael Kennedy: Here's a web browser.
- 29:08Michael Kennedy: Here's the address bar.
- 29:09Michael Kennedy: Here's a go button.
- 29:11Michael Kennedy: And then you would double click the go button and would create an event handler.
- 29:14Michael Kennedy: and then you would go webbrowser.gototext.value or whatever.
- 29:19Michael Kennedy: I mean, that was literally, you could do it in five minutes.
- 29:21Michael Kennedy: You could like create something
- 29:22Michael Kennedy: that is a functional web browser without much.
- 29:25Michael Kennedy: It was incredible.
- 29:26Michael Kennedy: And so, yeah, I'm just thinking back
- 29:28Michael Kennedy: to a few things I've built with it.
- 29:29Michael Kennedy: It was amazing.
- 29:30David Kopec: You know, Michael, a lot of people agree with you.
- 29:32David Kopec: There's a lot of articles that I've seen on blogs and stuff
- 29:35David Kopec: where people reminisce about Visual Basic.
- 29:37David Kopec: And I agree.
- 29:38David Kopec: I mean, for desktop app development,
- 29:40David Kopec: it was incredibly productive.
- 29:42David Kopec: I mean, I think it still rivals some of the tools we have for building web apps today.
- 29:47David Kopec: When you think about how easy it was to lay out a user interface.
- 29:51David Kopec: And for designers, it was great too, because designers didn't need to know how to code.
- 29:55David Kopec: And they could lay out the interface in the same way that it would really appear in the program,
- 29:59David Kopec: which is different from how designers work today, where they'll often do mock-ups.
- 30:03David Kopec: And the developer will have to take the mock-up and turn it into code.
- 30:06David Kopec: And so you kind of lose something there with the designer being able to have the final product
- 30:12David Kopec: in front of them as they're changing around how things look.
- 30:15David Kopec: So there were elements of it
- 30:17David Kopec: that were still missing today, I think.
- 30:18Michael Kennedy: - Yeah, I think it really hasn't been matched.
- 30:21Michael Kennedy: Windows forms from.NET kind of approached that,
- 30:24Michael Kennedy: but it was still, itself was also
- 30:25Michael Kennedy: a little bit more complicated.
- 30:27Michael Kennedy: There was something special about that.
- 30:29Michael Kennedy: And now, don't get me wrong,
- 30:31Michael Kennedy: it's not like I'm saying we should just go back to it
- 30:33Michael Kennedy: because the software we build is way more advanced,
- 30:35Michael Kennedy: does a lot of other things,
- 30:36Michael Kennedy: but there's just that lower area is just kind of missing.
- 30:41Michael Kennedy: This portion of Talk Python To Me is brought to you by NordStellar.
- 30:44Michael Kennedy: NordStellar is a threat exposure management platform from the Nord security family,
- 30:48Michael Kennedy: the folks behind NordVPN that combines dark web intelligence,
- 30:53Michael Kennedy: session hijacking prevention, brand abuse detection,
- 30:56Michael Kennedy: and external attack service management.
- 30:58Michael Kennedy: Keeping your team and your company secure is a daunting challenge.
- 31:02Michael Kennedy: That's why you need NordStellar on your side.
- 31:04Michael Kennedy: It's a comprehensive set of services, monitoring, and alerts
- 31:08Michael Kennedy: to limit your exposure to breaches and attacks
- 31:11Michael Kennedy: and act instantly if something does happen.
- 31:14Michael Kennedy: Here's how it works.
- 31:15Michael Kennedy: Nordstellar detects compromised employee
- 31:17Michael Kennedy: and consumer credentials.
- 31:19Michael Kennedy: It detects stolen authentication cookies
- 31:22Michael Kennedy: found in InfoStealer logs and dark web sources
- 31:25Michael Kennedy: and flags compromised devices,
- 31:27Michael Kennedy: reducing MFA bypass ATOs without extra code in your app.
- 31:31Michael Kennedy: Nordstellar scans the dark web
- 31:33Michael Kennedy: for cyber threats targeting your company.
- 31:36Michael Kennedy: It monitors forums, markets, ransomware blogs, and over 25,000 cybercrime telegram channels
- 31:42Michael Kennedy: with alerting and searchable contexts you can route to Slack or your IRR tool.
- 31:47Michael Kennedy: Nordstellar adds brand and domain protection.
- 31:50Michael Kennedy: It detects cyber squats and lookalikes via visual, content similarity, and search transparency logs,
- 31:56Michael Kennedy: plus broader brand abuse takedowns across the web, social, and app stores to cut the phishing risk for your users.
- 32:03Michael Kennedy: They don't just alert you about impersonation.
- 32:05Michael Kennedy: they file and manage the removals.
- 32:08Michael Kennedy: Finally, NordStellar is developer-friendly.
- 32:10Michael Kennedy: It's available as a platform and an API.
- 32:14Michael Kennedy: No agents to install.
- 32:15Michael Kennedy: If security is important to you and your organization,
- 32:17Michael Kennedy: check out NordStellar.
- 32:19Michael Kennedy: Visit talkpython.fm/nordstellar.
- 32:21Michael Kennedy: The link is in your podcast player's show notes
- 32:23Michael Kennedy: and on the episode page.
- 32:24Michael Kennedy: Please use our link, talkpython.fm/nordstellar,
- 32:27Michael Kennedy: so that they know that you heard about their service from us.
- 32:31Michael Kennedy: And you know what time of year it is.
- 32:32Michael Kennedy: It's late fall.
- 32:34Michael Kennedy: That means Black Friday is in play as well.
- 32:36Michael Kennedy: So the folks at Nord Stellar gave us a coupon, BlackFriday20.
- 32:41Michael Kennedy: That's Black Friday, all one word, all caps, 20, two, zero.
- 32:44Michael Kennedy: That grants you 20% off.
- 32:45Michael Kennedy: So if you're going to sign up for them soon,
- 32:48Michael Kennedy: go ahead and use BlackFriday20 as a code,
- 32:50Michael Kennedy: and you might as well save 20%.
- 32:52Michael Kennedy: It's good until December 10th, 2025.
- 32:55Michael Kennedy: Thank you to the whole Nord security team
- 32:57Michael Kennedy: for supporting Talk Python To Me.
- 33:00Michael Kennedy: And I want to talk,
- 33:01Michael Kennedy: sort of transition from that to something else really.
- 33:03Michael Kennedy: We're looking at these two examples of the BF language interpreter and the basic interpreter.
- 33:08Michael Kennedy: I hear that to really understand computer science, really to work on these things, I have to.
- 33:14Michael Kennedy: I don't, it's not preferable.
- 33:15Michael Kennedy: I have to do a language with pointers, malloc, free.
- 33:20Michael Kennedy: I've got to.
- 33:21Michael Kennedy: I've got to work at that level.
- 33:22Michael Kennedy: I just won't understand anything.
- 33:23Michael Kennedy: And Python, we don't really have those concepts.
- 33:26Michael Kennedy: And the irony, I think, is Python has more pointers than C++ because there's like no stack at all.
- 33:31Michael Kennedy: Not at all.
- 33:32Michael Kennedy: Really?
- 33:32Michael Kennedy: I mean, in the interpreter there is, but not in your writing. Even a number one is just a pointer.
- 33:37Michael Kennedy: So Python's full of pointers, but not in the way that computer science thinks about it.
- 33:41Michael Kennedy: What are your thoughts about that sort of tension? On one hand, you have this really
- 33:46Michael Kennedy: understandable language talking about these ideas, but the computer is calling malloc on a page of
- 33:52Michael Kennedy: memory and that's what's happening and they're not seeing it. Okay. So let me talk about it from a
- 33:57David Kopec: pedagogy standpoint. So at my last institution, Champlain College, we had a big debate over my
- 34:02David Kopec: nine years there. Should we do our first three classes in Python or in C++? And when I came in,
- 34:08David Kopec: the first three classes were in C++. And we actually decided over the years to keep it there
- 34:13David Kopec: for exactly what you mentioned. We wanted to give students both that high level experience with
- 34:17David Kopec: object-oriented programming, but we also wanted them to have experience with pointers, with memory
- 34:21David Kopec: management, and understand how things work at a low level. But in that same period of time, many
- 34:26David Kopec: schools have moved to Python because of the other thing we talked about, which is accessibility.
- 34:31David Kopec: I think Python simply is an easier language to learn than C++. I don't think that most people
- 34:37David Kopec: who know both languages would really debate that. And so if we're trying to make those first ramp
- 34:42David Kopec: up classes where you're first learning CS as easy as possible, I think Python is the way to go if
- 34:48David Kopec: we want to encourage more people into the discipline. That doesn't mean there shouldn't
- 34:51David Kopec: Maybe a C or C++ course later on where folks, maybe when they take operating systems or even as part of an architecture class to see how the assembly language matches to a C program, that kind of thing.
- 35:03David Kopec: You know, it doesn't mean there shouldn't be C or C++ in the curriculum or Rust or whatever.
- 35:07David Kopec: But if we're thinking about what's best for a student who's just coming into the field, I think we need to think about accessibility.
- 35:15David Kopec: But at the same time, my advice to all students is learn one language well before you learn any other language.
- 35:21David Kopec: So whether you're starting with Python or you're starting with C++, spend a year or two on it and become really decent at it before you go and learn another language.
- 35:31David Kopec: And that's the biggest mistake I see folks who are self-taught make.
- 35:35David Kopec: The biggest mistake I see folks who are self-taught make is constantly switch around from language to language.
- 35:39David Kopec: I need to know this.
- 35:41Michael Kennedy: Okay, I got it.
- 35:41Michael Kennedy: Now it's time to learn this.
- 35:43Michael Kennedy: And they're trying to fill all these gaps, right?
- 35:45David Kopec: Right, right.
- 35:46David Kopec: Because once you learn Python well, a lot of the stuff in C or C++ will make sense to you.
- 35:51David Kopec: The pointers might not, but a lot of the other stuff, like how does a function work?
- 35:55David Kopec: How does a loop work?
- 35:56David Kopec: What are variables?
- 35:57David Kopec: What's a global versus local?
- 35:58David Kopec: All that kind of stuff.
- 36:00David Kopec: That's going to make sense to you.
- 36:01David Kopec: And that's going to be transferable skills once you've really learned it in any one language
- 36:05David Kopec: across any other language.
- 36:06David Kopec: And then pointers, you can learn later on.
- 36:08David Kopec: You don't need to learn that at the beginning of your CS education.
- 36:12David Kopec: People make it sound like it's a totally mystical topic.
- 36:16David Kopec: If you are able to do calculus, which basically every CS degree requires calculus one, you can learn pointers.
- 36:23David Kopec: You'll be okay.
- 36:24David Kopec: You can learn pointers.
- 36:26Michael Kennedy: Yeah, exactly.
- 36:27Michael Kennedy: Like double integrals and all that kind of stuff is way worse.
- 36:30Michael Kennedy: I feel like you could also cycle, right?
- 36:32Michael Kennedy: So you could start with Python for a couple of classes, then go deeper, closer to the machine with C.
- 36:38Michael Kennedy: But then you could come back and say, let's look at Python again with new eyes and try to understand interpreted dynamic languages better.
- 36:45Michael Kennedy: because now you can take the red pill
- 36:48Michael Kennedy: and you can see the arenas
- 36:51Michael Kennedy: and the blocks of the memory allocator
- 36:53Michael Kennedy: and the GC and all that kind of stuff, right?
- 36:56Michael Kennedy: You could go, actually,
- 36:58Michael Kennedy: you didn't know any of this stuff.
- 36:59Michael Kennedy: You didn't, nobody probably even thought
- 37:01Michael Kennedy: to think is this here
- 37:02Michael Kennedy: and yet look at what's underneath
- 37:04Michael Kennedy: that you're taking,
- 37:05Michael Kennedy: you're building on top of, right?
- 37:07David Kopec: Yeah, and also remember how long
- 37:08David Kopec: an academic semester is.
- 37:10David Kopec: It's 15 weeks.
- 37:11David Kopec: So if you're taking a class in college,
- 37:13David Kopec: you're forced to be doing that same language
- 37:15David Kopec: for 15 weeks. That's really the challenge for self-taught folks is they could just spend two
- 37:19David Kopec: days on one, two days on another, right? But absolutely, you're right. Once you've had enough
- 37:23David Kopec: time in one, you can cycle to the others back and forth. Yeah, fun. I personally am a fan of
- 37:27Michael Kennedy: it being in Python because I feel like one of the biggest challenges to keeping people in computer
- 37:33Michael Kennedy: science and programming is that they don't get enough early wins and early like, yes, aha, right?
- 37:40Michael Kennedy: It's like, okay, in week 12, we'll let you write a program, but we're going to talk pointers for a while.
- 37:46Michael Kennedy: And then you'll finally get to make some, you know what I mean?
- 37:48Michael Kennedy: Like it's just so delayed and that's fine for certain people, but there's a lot of people are like, oh, forget this.
- 37:54Michael Kennedy: This is not what I thought.
- 37:55Michael Kennedy: I'm out.
- 37:55David Kopec: And a huge part of that is the Python library ecosystem.
- 37:59David Kopec: How easy it is to drop Pygame into an intro class and get somebody building a really simple game.
- 38:06David Kopec: You know, it's much harder in C or C++ to start integrating libraries and start having students understand how to use those libraries.
- 38:14David Kopec: And it usually requires a lot more knowledge buildup to be able to use pointers and stuff with those libraries.
- 38:20David Kopec: So Python just makes everything more accessible.
- 38:22David Kopec: Awesome.
- 38:23Michael Kennedy: Cool.
- 38:23Michael Kennedy: All right.
- 38:24Michael Kennedy: The next area that was pretty interesting and a little bit, maybe a little artsy.
- 38:31Michael Kennedy: Yeah.
- 38:31Michael Kennedy: Is the computational art.
- 38:33Michael Kennedy: Tell us about that.
- 38:33David Kopec: Yeah. So there's two chapters in the book on computational art. The first one is really
- 38:39David Kopec: starting to understand what a pixel is on the screen. And the way we do that is we take modern
- 38:44David Kopec: photos and then we want to display them on like an ancient Mac, a Mac from the 1980s,
- 38:51David Kopec: like the Mac Plus. And so we're going to take that modern photo and use what's called a dithering
- 38:56David Kopec: algorithm to break it down into patterns of black and white pixels because those early Macs were
- 39:02David Kopec: only black and white, that will then still kind of look like the photo in black and white with
- 39:06David Kopec: these specialized patterns. So you're learning a bunch of things by doing this. One thing you're
- 39:11David Kopec: learning is you're learning really what is a pixel. And a pixel is really pretty simple at its base.
- 39:15David Kopec: I mean, it's just a color and a location. And so understanding how those pixels are organized
- 39:20David Kopec: and really they're just organized usually as an array or, you know, as a list in Python or a
- 39:26David Kopec: numpy array or whatever. And then we're understanding some algorithmic stuff. So
- 39:32David Kopec: is giving us some algorithmic practice.
- 39:35David Kopec: And then a cool thing we do at the end
- 39:36David Kopec: is we actually convert it into a file format
- 39:38David Kopec: called Mac Paint for displaying on an ancient Mac.
- 39:42David Kopec: And that Mac Paint format uses
- 39:45David Kopec: a very simple compression scheme
- 39:47David Kopec: called run length encoding.
- 39:49David Kopec: So we're getting some other kind of algorithmic practice
- 39:51David Kopec: in there as well,
- 39:52David Kopec: understanding a simple compression algorithm.
- 39:55David Kopec: And we're understanding something about file formats too,
- 39:57David Kopec: which is really kind of an interesting CS topic as well.
- 40:00David Kopec: Yeah, it sure is, yeah.
- 40:01David Kopec: to properly format the file so the Mac Paint program on the ancient Mac will open it correctly.
- 40:06Michael Kennedy: So yeah, that was something actually when I first got into programming, I feel like I just stuck
- 40:11Michael Kennedy: with text oriented files pretty much as long as I could. Because, you know, looking at a binary file,
- 40:17Michael Kennedy: like, okay, it has a header and we read the first few bytes and then the value of that byte tells
- 40:22Michael Kennedy: you how long the rest of the header is and then like what this means. And then you skip. And I
- 40:26Michael Kennedy: don't know. That was just, it was a bridge too far for me in my early programming days. And I was
- 40:31Michael Kennedy: like, wow, this is intense. And I was in awe of people like, yeah, we just read the header and we
- 40:35David Kopec: do this. I'm like, okay, if you say so. You know, it's a classic CS trade-off between time and space.
- 40:43David Kopec: Anything that we do in a binary file, we could do in a text file. But binary files can be more
- 40:48David Kopec: efficient because they can be more compact and they can be faster to read from for certain kinds
- 40:53David Kopec: of data. So, you know, it's not that we have to use binary files, but understanding what a binary
- 41:00David Kopec: file format is like can be eye-opening to some readers. And if you think about like modern file
- 41:05David Kopec: formats, of course, text formats are much more explainable, right? That's why we have the rise
- 41:09David Kopec: of things like XML in the late nineties up to today, or even JSON as a data interchange format.
- 41:15David Kopec: There's alternatives to JSON, of course, that are much more efficient for coding your web app in
- 41:20David Kopec: for distributing the data back and forth. But JSON is human readable. Yeah, yeah, yeah. But JSON is
- 41:25David Kopec: human readable. So we can right away understand what it's supposed to represent and debug it really
- 41:31David Kopec: well. And so it's, you know, it's one of those classic trade-offs. We can have something more
- 41:34David Kopec: efficient or we can have something that might take up a little bit more time, but actually,
- 41:40David Kopec: you know, is better for us as human beings. Yeah. It's just, I think it's a good skill.
- 41:45Michael Kennedy: And also something that was prevalent throughout the book is juggling bits, bits and bytes, not just juggling bytes, but bits and bit flipping and shifting.
- 41:54Michael Kennedy: And there's a lot of that going on, especially in the emulator layers and stuff like that.
- 41:59David Kopec: Yeah. And even in the Mac paint chapter, because the way Mac paint stores pixels is as individual bits.
- 42:05David Kopec: So you have like a one or a zero representing a black or a white pixel on the screen.
- 42:09David Kopec: And so you have to find a way to take those bits and compact them into bytes and then run the right run length encoding algorithm compress it. It's yeah, but there's a lot of that. And, you know, when you do really low level work in computing, you need to understand bits and bytes.
- 42:23David Kopec: If you're going to work on device drivers or operating systems or file formats, you really need to understand this stuff at an intimate level.
- 42:31David Kopec: So we try to make fun projects in the book that you get something that's interesting as a way of making this a little of sugar to help the medicine go down kind of thing.
- 42:43David Kopec: And we were talking about the computer graphics chapters.
- 42:45David Kopec: I also wanted to mention chapter four because I love the program in that called Impressionist.
- 42:50David Kopec: It makes images that look like an impressionist painter painted a photograph.
- 42:56David Kopec: So you give it a photograph and then it builds kind of abstract art out of that photograph.
- 43:01David Kopec: And people usually think you need a neural network for that or you need some kind of really advanced machine learning algorithm for that.
- 43:07David Kopec: But actually, we show in the chapter that you can do it using a pretty simple algorithm.
- 43:11David Kopec: All the algorithm does is it puts a vector shape on the screen and it tries to position the vector shape so that it overlaps a region of color on the original photo that is close to the color in the vector shape.
- 43:23David Kopec: And if you keep doing that and you put enough vector shapes on the screen, you start to have like abstract shapes that look like the original photo.
- 43:30David Kopec: And so I think that's that chapter is kind of powerful because it shows you how a simple technique, a simple computational technique can really have some pretty powerful output.
- 43:38Michael Kennedy: it. Yeah, it's a really interesting idea and it comes out looking great. It's sort of,
- 43:42Michael Kennedy: it's approaching the problem from a different perspective, which I suspect is probably a pretty
- 43:46Michael Kennedy: interesting CS lesson. You know, there's these problems that are incredibly expensive and
- 43:52Michael Kennedy: difficult to compute the one true answer, but then there's amazingly fast ways to get a,
- 43:58Michael Kennedy: that's pretty much it, answer. I'm thinking like Monte Carlo simulations and stuff like that.
- 44:02Michael Kennedy: You're like, this could take two weeks or three milliseconds, which would you prefer? You're
- 44:08David Kopec: And, you know, that that's we talked about, like, why is the book in Python?
- 44:12David Kopec: And, you know, that is one of the challenges of writing the book in Python is simply Python doesn't have great performance when you write in pure Python.
- 44:21David Kopec: And so, you know, we've all seen the benchmarks where Python's like 50 or 70 times slower than C on certain benchmarks.
- 44:28David Kopec: Right. And yeah, honestly, for some of the programs in this book, you really see that performance deficit you have with Python, like the abstract art chapter,
- 44:38David Kopec: where if I wrote that same program in C using some C graphics library instead of in Python
- 44:43David Kopec: with Pillow, even though Pillow, I think, is mostly implemented in C anyway, but still just
- 44:47David Kopec: with the overhead of having our algorithmic part of it in Python, that program is probably 30,
- 44:54David Kopec: 50 times slower than it would be in C. So you have to wait like 20 minutes to see that abstract art
- 44:59Michael Kennedy: that would have been like less than a minute in a C program. Not that it's relevant to the book or
- 45:03Michael Kennedy: of the courses, but you probably could bring in some optimizations like Cython or Numba,
- 45:12Michael Kennedy: a couple of the things that'll take just the inner two loops and just make them go different,
- 45:18David Kopec: but it's not the point of the book. That's true. And so I put that as an exercise for the reader
- 45:23David Kopec: in the NES emulator chapter, because the NES emulator chapter where we actually build up
- 45:28David Kopec: a real NES emulator. So I didn't write in the book for legal reasons, but it can actually play
- 45:32David Kopec: Donkey Kong. So it can play Donkey Kong from the original Nintendo Entertainment System.
- 45:36Michael Kennedy: Let's talk about the NES, the Nintendo Entertainment System.
- 45:40David Kopec: Yeah. So, I mean, the NES, a lot of us remember growing up with, and if you're of a younger
- 45:45David Kopec: generation, this was like the main video game system of the 1980s to early 1990s that everyone
- 45:51David Kopec: had. It's where the original Super Mario came out, the original Legend of Zelda. And, you know,
- 45:57David Kopec: it's actually, of course, like all video game systems, it's a computer. And being a video game
- 46:01David Kopec: system for the 1980s. It's a pretty simple computer, actually. It has a 6502 microprocessor,
- 46:07David Kopec: which is the same microprocessor that was in the Apple II or the Commodore 64 or the TRS,
- 46:12David Kopec: I think the TRS-80 also. And that microprocessor, it only has 56 instructions, the NES version of it.
- 46:21David Kopec: And so you can write an interpreter for that microprocessor pretty compactly,
- 46:26David Kopec: not quite as compact as the BF interpreter in chapter one, but compactly enough that it's only
- 46:31David Kopec: lines of Python to be able to really write a simulator of that CPU. And so the NES is just
- 46:37David Kopec: that CPU plus a graphics processor called the picture processing unit plus an audio processor.
- 46:43David Kopec: So in the chapter, we implement the full CPU. We implement a simplified version of the PPU,
- 46:49David Kopec: not advanced enough to run Super Mario Brothers, but it is advanced enough to run Donkey Kong.
- 46:54David Kopec: And we don't implement the APU. So the audio processing unit is a little more complicated
- 46:59David Kopec: We don't do the audio.
- 47:00David Kopec: But we do all of this in the chapter
- 47:02David Kopec: so you can run real NES games.
- 47:04David Kopec: And what you're getting is you're getting to understand
- 47:06David Kopec: that software hardware interface.
- 47:08David Kopec: You're starting to understand how does our software
- 47:12David Kopec: actually get run on hardware
- 47:14David Kopec: by re-implementing what a CPU actually does.
- 47:18David Kopec: And you're re-implementing the memory map too.
- 47:19David Kopec: So how does a CPU connect to memory?
- 47:21David Kopec: How does a CPU connect to the graphics processor?
- 47:24David Kopec: You're doing all of that in that chapter.
- 47:26David Kopec: And so it's kind of like-
- 47:27Michael Kennedy: Sure. You talked about like writing an interpreter for the BF in basic languages. Here you're
- 47:34Michael Kennedy: completely emulating the hardware of the NES and you're giving it the potentially given it
- 47:42Michael Kennedy: open source NES games and it can run them, right?
- 47:45David Kopec: Correct. Yeah. It runs several NES open source games. Like I said, I didn't put it for legal
- 47:50David Kopec: reasons, but it can run real commercial games as well for the NES. And so you're doing the whole
- 47:54David Kopec: soup to nuts like entire system except the audio. But it is Python and it's pure Python, except for,
- 48:00David Kopec: of course, the library we're using. We're using Pygame for displaying the window, which is written
- 48:05David Kopec: a lot of in C. But because it's pure Python, the emulator doesn't run at full speed. So it runs on
- 48:12David Kopec: my Mac. It runs at about 15 frames per second. The real NES ran at 60 frames per second. So we leave
- 48:18David Kopec: as an exercise to the reader. Yeah, go use Cython or something like that. And I'm sure you can get
- 48:24David Kopec: up with several different techniques,
- 48:25David Kopec: not just with, definitely with Cython,
- 48:27David Kopec: but with several different techniques,
- 48:28David Kopec: you could get this up to 60 frames per second,
- 48:29David Kopec: but you're going to have to incorporate
- 48:32David Kopec: something that is, you know, using,
- 48:35David Kopec: that gets outside of just pure Python.
- 48:37Michael Kennedy: Sure.
- 48:38Michael Kennedy: You know, one, there's a bunch of ways
- 48:39Michael Kennedy: that you already mentioned,
- 48:40Michael Kennedy: but one new way that's kind of officially new,
- 48:43Michael Kennedy: just this month is free-threaded Python.
- 48:46Michael Kennedy: And I've been doing,
- 48:47Michael Kennedy: I went back to my async programming course
- 48:50Michael Kennedy: where there's a lot of examples of like,
- 48:52Michael Kennedy: let's do this synchronously.
- 48:53Michael Kennedy: Now let's do it with threads.
- 48:54Michael Kennedy: Let's do it with multiprocessing.
- 48:55Michael Kennedy: Now let's do it with asyncio, right?
- 48:57Michael Kennedy: And see like how those all compare.
- 48:58Michael Kennedy: And the threads one, anything was computational.
- 49:01Michael Kennedy: It's like, yeah, it's the same speed
- 49:02Michael Kennedy: or maybe even slower, right?
- 49:03Michael Kennedy: But then I ran it with, I did uv run --Python
- 49:08Michael Kennedy: 3.14 T and it went 10 times faster
- 49:12Michael Kennedy: or eight times faster on my 10 core machine.
- 49:14Michael Kennedy: And it's literally just running on the,
- 49:16Michael Kennedy: I didn't change the codes from pre-threaded Python
- 49:19Michael Kennedy: and it just took off.
- 49:20Michael Kennedy: So I'm thinking here there's graphics amongst many things is primed for this like embarrassingly parallel processing.
- 49:29Michael Kennedy: Yeah.
- 49:30Michael Kennedy: You could break up the screen into like little chunks and go, well, we got 10 chunks and 10 cores.
- 49:35Michael Kennedy: Let's go at it.
- 49:36Michael Kennedy: What do you think about it as a plausibility?
- 49:39David Kopec: Unfortunately, for a lot of emulators, especially emulators that are for more modern systems, threading would be a huge advantage.
- 49:46David Kopec: For the NES, it's not because of the way that everything was timed.
- 49:51David Kopec: So every time that the CPU does one cycle, the PPU, the picture processing unit, has to be timed to do exactly three cycles.
- 50:00David Kopec: So you can't just go ahead and, you know, and you don't just give it work.
- 50:04David Kopec: It's not like a modern GPU where you just give it a bunch of chunks of work.
- 50:07David Kopec: It works on its own and then provides that to the screen.
- 50:10David Kopec: It's completely synchronized to the CPU.
- 50:13David Kopec: And so is the audio processing unit, too.
- 50:15David Kopec: So it all has to kind of be synchronized within a single thread.
- 50:18Michael Kennedy: And all the games assume that that's how it works, right?
- 50:20Michael Kennedy: That's how they have it all set.
- 50:22Michael Kennedy: Yeah.
- 50:22David Kopec: Yeah.
- 50:22David Kopec: Yeah.
- 50:23David Kopec: And what they had, what was called a V blank period, which was a period where it had already
- 50:28David Kopec: drawn the screen and then it actually tells the CPU, hey, I'm done drawing the screen.
- 50:32David Kopec: Now you can do all kinds of work and be ready for the next time that you draw the next frame
- 50:35David Kopec: again.
- 50:36David Kopec: So they had really tight synchronization between the graphics and the CPU.
- 50:40David Kopec: Interesting.
- 50:41Michael Kennedy: Still cool.
- 50:42Michael Kennedy: Still pretty cool.
- 50:43Michael Kennedy: There's a lot going on there.
- 50:44Michael Kennedy: If you want to understand hardware, that's a pretty low level look at it, right?
- 50:48David Kopec: I think it's kind of the crown jewel of the book.
- 50:50David Kopec: You know, there's a lot of people who are interested in emulators.
- 50:54David Kopec: And what I found before writing the book is there's not a single book out there that talks
- 51:00David Kopec: about writing an NES emulator, which is the most common emulator that people want to write.
- 51:04David Kopec: So I think this is the first book that has a chapter on writing an NES emulator.
- 51:08David Kopec: I will admit I was a little scared of like if Nintendo's legal team is going to like
- 51:12David Kopec: be upset about the book or something like that.
- 51:14David Kopec: but we did research on it.
- 51:15David Kopec: I mean, everything we're doing is perfectly legal
- 51:17David Kopec: in the book in the United States, at least.
- 51:20David Kopec: So, you know, but anyway.
- 51:22David Kopec: Scary, right?
- 51:23David Kopec: Yeah, absolutely.
- 51:24David Kopec: And we put a big disclaimer at the top of the chapter
- 51:26David Kopec: as you remember reading.
- 51:28Michael Kennedy: I have a legal, I have a Nintendo story for you.
- 51:32Michael Kennedy: Great.
- 51:32Michael Kennedy: From when I was young.
- 51:34Michael Kennedy: And this was, I think this is very late 80s,
- 51:38Michael Kennedy: early 90s, last century.
- 51:40Michael Kennedy: Now, this was not me, someone I knew,
- 51:42Michael Kennedy: someone I was friends with had a,
- 51:45Michael Kennedy: I think it was a super NES.
- 51:47Michael Kennedy: Okay.
- 51:47Michael Kennedy: And people may not remember,
- 51:49Michael Kennedy: but they had these big honking cartridges go chonk.
- 51:51Michael Kennedy: And you would chunk them down in there.
- 51:53Michael Kennedy: You would turn on,
- 51:54Michael Kennedy: you would basically reboot the NES and it would boot up from the,
- 51:58Michael Kennedy: the big cartridge game cartridge you put in there.
- 52:00Michael Kennedy: And there was this guy that they've,
- 52:04Michael Kennedy: they found somehow I don't,
- 52:05Michael Kennedy: cause there's no internet.
- 52:06Michael Kennedy: Maybe it's through a BBS.
- 52:08Michael Kennedy: I don't know how this was found,
- 52:09Michael Kennedy: but they found this guy who built a thing that the,
- 52:12Michael Kennedy: bottom half of it looked like a game cartridge. The top was this whole computer that at the top of it,
- 52:19Michael Kennedy: it had a 3.5 inch floppy drive. Wow. So you would go to your BBS, you would find a game,
- 52:25Michael Kennedy: you would put it on a floppy, and then you would slot this huge extra computer down into the NES
- 52:31Michael Kennedy: and you would turn it on and it would like delegate the file IO through the little fake cartridge
- 52:37Michael Kennedy: back to it. And it worked like crazy. It was perfect. That guy was not in business for very
- 52:41Michael Kennedy: long the guy who sold them not my not my friend but the person he got it from wasn't available
- 52:46David Kopec: after a while so this is so super nes comes out in like 91 um so this might have been a regular
- 52:53Michael Kennedy: no i wasn't i think i might have been in college so yeah it would be it would be 91 onward yeah
- 52:58David Kopec: okay i mean that is 93 that is very advanced like for that time when you think about the type of
- 53:03David Kopec: stuff people like were modding at that time that guy was a genius yeah he was he should have been
- 53:08Michael Kennedy: hired if he wasn't you know what i mean yeah yeah absolutely yeah he was building himself out of his
- 53:14Michael Kennedy: dorm room or something i don't know it was i think it was in uh manhattan in uh kansas state
- 53:18Michael Kennedy: university i'm not sure where the guy was but wow anyway yeah that guy was playing with fire
- 53:24David Kopec: yeah absolutely and you know what um sometimes like understanding how the rom cartridge works
- 53:31David Kopec: right like we think again that it's like all magic right but actually what those big cartridges that
- 53:36David Kopec: we had, that we like inserted in the NES were is they were mostly plastic, like that did nothing.
- 53:41David Kopec: And there was a little ROM chip, like inside the big hunk of plastic and the ROM chip,
- 53:46David Kopec: ROM just stands for read only memory. So most of them were just like a big chunk of memory
- 53:51David Kopec: with a very tiny bit of logic chips that were called mappers on the NES that said like,
- 53:55David Kopec: read this memory at this time. But again, it wasn't really magic. And those cartridges look
- 53:59Michael Kennedy: so intimidating, but they were really just a big piece of memory. Yeah. Think about how much you've
- 54:04Michael Kennedy: got to make that work right before you ship it. Yeah. There's no patches. There's no download and
- 54:10Michael Kennedy: update. Once it's shipped, it's shipped and it's burned into the ROM and that's it.
- 54:14David Kopec: I have some friends who work in game development and like before they even ship the 1.0,
- 54:20David Kopec: nowadays they're working on the first patch, like, and they just know they're not going to ship like
- 54:24David Kopec: the perfect program in 1.0. Now, to be fair, games were much simpler in the 1980s, right?
- 54:30David Kopec: than they are today, but they had to be perfect, like literally had to be perfect. and so
- 54:35David Kopec: there was a certain, I think different attitude around, game development then, than there is
- 54:41David Kopec: today. And remember they were also working in assembly language. so it was easy language
- 54:46David Kopec: to work. I don't know if people like this word, but I would call it kind of hardcore, writing
- 54:51Michael Kennedy: NES games in the 1980s. It was, you know, that kind of programming it's, it's just, it was just
- 54:57Michael Kennedy: different. It was just different. You had to be so detail oriented and you had to be so thorough.
- 55:03Michael Kennedy: It's almost like writing spaceship control software type of thing. Not quite, but almost.
- 55:08David Kopec: And the machines were so slow. The NES, which we emulate in chapter six, ran on a 1.8 megahertz
- 55:16David Kopec: CPU, 6502, 1.8 megahertz. So Super Mario was like an incredible accomplishment on a 1.8 megahertz.
- 55:25David Kopec: So people had to worry about all these computer science topics in a way that they don't today as programmers, because you had to squeeze every last bit of algorithmic performance out of the machine.
- 55:36David Kopec: And so today, I think we have sloppier software today because we have an embarrassment of riches.
- 55:42David Kopec: We got such powerful computers with so much memory that people don't worry about writing things as efficiently as possible.
- 55:48David Kopec: And so we end up with inefficient software sometimes because people don't bother to do the algorithms right.
- 55:55Michael Kennedy: Yes, but I'm going to put a little double dagger, like see the footnote by your comment.
- 56:00Michael Kennedy: Absolutely true for software, not necessarily true for software developers.
- 56:05Michael Kennedy: Agreed.
- 56:05Michael Kennedy: The efficiency of writing a 99.9% correct Python program, how quickly that gets done versus
- 56:13Michael Kennedy: like something in assembly language straight on a ROM.
- 56:16Michael Kennedy: Yep.
- 56:17Michael Kennedy: You know what I mean?
- 56:17Michael Kennedy: These are the, I think this is an interesting arc and maybe you could speak to it a little
- 56:22Michael Kennedy: bit from your academic perspective, but I think it's a really interesting arc of, it used to be
- 56:27Michael Kennedy: really hard to program and we'd solve small problems with lots of effort and it's getting
- 56:32Michael Kennedy: easier. And a lot of times it gets easier. People say, well, there it goes, job's over. There's not
- 56:37Michael Kennedy: going to be programmers anymore because everyone can do it. And we just solve bigger, more complex
- 56:41Michael Kennedy: problems. And that just keeps building, you know, like the, a web app, a basic e-commerce app from
- 56:47Michael Kennedy: today was a keynote presentation of how like a fortune 500 company pulled it off in 1990 you
- 56:55Michael Kennedy: know what i mean like yeah yeah here's how we got the ssl termination special machines to handle the
- 57:00Michael Kennedy: ssl decryption so that we could do this under two seconds of request i mean like crazy stuff yeah
- 57:06Michael Kennedy: what do you think about this well it's not an either or i mean we want developers to be productive
- 57:10David Kopec: and we also want efficient software so i mean the good news is that means that after we have make it
- 57:15David Kopec: it easier and easier to build software, we still need folks who are going to work on optimizing that
- 57:19David Kopec: software after it's built. So there's still jobs for software developers who are interested in that.
- 57:24David Kopec: I think you actually touched on this in talk Python in production to some degree, because you
- 57:28David Kopec: talk about in the book, the appropriate level of complexity for the type of app that you're
- 57:33David Kopec: building. And so you talk about like, you know, maybe you don't need a Kubernetes cluster if
- 57:38David Kopec: you're just building, you know, something for 10 million requests a month and not something for a
- 57:43Michael Kennedy: million requests a month. And it's going to be run by one person or one person part-time versus a
- 57:48Michael Kennedy: team or somebody who's a DevOps expert, right? Right, right, right. So if I'm working on a run
- 57:55David Kopec: of the mill e-commerce thing, maybe I don't worry about squeezing out every last bit of performance
- 58:00David Kopec: because I want to productively make something that, like you said, is 99.9% of the way there
- 58:04David Kopec: as quickly as possible. But if I'm building a 3D game, they still build most 3D games in C++
- 58:10David Kopec: because they need to squeeze out every last bit of performance,
- 58:14David Kopec: even if it's a little less efficient for the programmers.
- 58:17David Kopec: The programmers could write the games faster,
- 58:18David Kopec: maybe in another language or another framework
- 58:21David Kopec: than they're using, whatever.
- 58:22David Kopec: But they use something that squeezes out
- 58:24David Kopec: every last bit of performance.
- 58:25David Kopec: So I think you have to think about
- 58:26David Kopec: what is the app that we're building?
- 58:28David Kopec: What is the domain that we're in?
- 58:30David Kopec: And it's also just not an either or.
- 58:32David Kopec: Like, you know, we want to have software
- 58:34David Kopec: that's both developer productive to build,
- 58:37David Kopec: but also that's efficient to run.
- 58:39David Kopec: And it's an ongoing process.
- 58:40David Kopec: We might need to make that trade-off more in the way when we're first building it in developer
- 58:44David Kopec: productivity. And then as we're maintaining it, maybe we go more towards the efficiency side.
- 58:48David Kopec: But if you don't think about some of the efficiency things up front, you can end up in a bad spot
- 58:53David Kopec: because you can get some technical debt. You could end up in a situation where it's hard to undo
- 58:59David Kopec: some of the algorithmic mistakes that you made early on and the system starts to depend on.
- 59:03David Kopec: So you should think about it at least a little bit.
- 59:05Michael Kennedy: Yeah, absolutely. And I think you're talking about they've got to squeeze out that little
- 59:09Michael Kennedy: extra bit of performance because they want high frame rates they might have to squeeze out that
- 59:12Michael Kennedy: little bit extra performance because it's either possible or not possible you know you look at some
- 59:17Michael Kennedy: of the stuff in the unreal engine these days you're like that's real time that's the game
- 59:23Michael Kennedy: that looks like a rendered cgi movie not a game yeah yeah yeah yeah yeah and i mean so a lot of it
- 59:30David Kopec: is being done for us today by library authors right so library authors are thinking about a
- 59:34David Kopec: lot of the low-level stuff. So us as like run-of-the-mill developers don't need to, which is
- 59:39David Kopec: great. But if you're doing something really de novo, something, you know, with an innovative
- 59:44David Kopec: algorithm, you still need to consider efficiency at least. Right. And the other thing is it,
- 59:50Michael Kennedy: you can write really slow code in C and you can write really fast code in Python or vice versa.
- 59:55Michael Kennedy: It's easier to make it slow in Python, to be fair. But algorithms and data structures are
- 1:00:01Michael Kennedy: tremendous influences, right? If you're using, you should have been using a set or a dictionary and
- 1:00:05Michael Kennedy: you're using a list. Yeah. You're probably having a real bad time performance. And you caught me
- 1:00:10David Kopec: multiple times on the technical review in places where I should have used a set and I used a list.
- 1:00:15David Kopec: So thank you for that. But, but that's absolutely, that's a great example. I mean,
- 1:00:19David Kopec: just knowing that, that basic fact that, you know, in this situation, just swapping out,
- 1:00:25David Kopec: which is a simple switch, by the way, you know, one data structure for another can totally change
- 1:00:29David Kopec: performance characteristics. That's the type of things you do learn in the CS degree that you
- 1:00:34David Kopec: don't necessarily learn when you're a self-taught programmer kind of hacking everything out on your
- 1:00:38David Kopec: own, which is why a book like classic computer science problems in Python, or maybe computer
- 1:00:42Michael Kennedy: science from scratch is good for that. Yeah. It exposes you to this. Here's a data structure you
- 1:00:47Michael Kennedy: haven't thought about, but here's why we're using it and the advantages and stuff. Yeah, absolutely.
- 1:00:51Michael Kennedy: Well, we've covered a lot. We've covered pretty much solved computer science in 2025. That's good.
- 1:00:57Michael Kennedy: And then the book is bringing computer science to so many people who are self-taught, you know, like me.
- 1:01:04Michael Kennedy: I went to college, but I studied many, many years of math and found my way into programming.
- 1:01:09Michael Kennedy: So I took a few CS programs, but not so many.
- 1:01:12Michael Kennedy: So, you know, it certainly showed me many things that I hadn't seen.
- 1:01:15Michael Kennedy: Like I've never emulated hardware before, for example.
- 1:01:18Michael Kennedy: That was wild.
- 1:01:19David Kopec: And, you know, Michael, I was reading in Talk Python in production that you actually worked on Windows desktop apps.
- 1:01:26David Kopec: Is that right?
- 1:01:26Michael Kennedy: I did.
- 1:01:27Michael Kennedy: Yeah, for 10 years, more than 10 years.
- 1:01:29Michael Kennedy: I'm almost 15 years, yeah.
- 1:01:31David Kopec: Wow, so I'm curious,
- 1:01:33David Kopec: how did you feel about that experience
- 1:01:36David Kopec: versus the kind of Python GUI frameworks
- 1:01:39David Kopec: that exist today?
- 1:01:40Michael Kennedy: You heard my rant about Visual Basic.
- 1:01:42Michael Kennedy: Yeah, and I was thinking of that.
- 1:01:44Michael Kennedy: I started actually in C++,
- 1:01:46Michael Kennedy: starting the hard way, doing MFC.
- 1:01:49Michael Kennedy: I don't know if you ever played with that or heard of that.
- 1:01:51Michael Kennedy: Yeah, Microsoft Foundation classes.
- 1:01:52Michael Kennedy: Yeah, yeah, and that was actually pretty decent
- 1:01:54Michael Kennedy: for a C++ framework.
- 1:01:55Michael Kennedy: And then as soon as I found Visual Basic and C#, I'm like, this is so much better.
- 1:01:59Michael Kennedy: It goes from weeks to days of UI work, you know, and stuff like that.
- 1:02:03Michael Kennedy: And it took me a while to really appreciate building for the web.
- 1:02:08Michael Kennedy: You know, I think I probably made that switch around the year 2000.
- 1:02:11Michael Kennedy: There's a little bit after that, but I really like the web these days.
- 1:02:14Michael Kennedy: I think the web is special.
- 1:02:15Michael Kennedy: I just wish it was easier to take apps from the web and get them to people.
- 1:02:20Michael Kennedy: For example, Firefox canceled progressive web apps.
- 1:02:24Michael Kennedy: iOS has them, but they're kind of, let's not talk about those.
- 1:02:27Michael Kennedy: And if you know the secret, you can probably install one, but you probably shouldn't.
- 1:02:30Michael Kennedy: And we're going to, you know, like if it's just, it's like right on the verge of one more
- 1:02:35Michael Kennedy: step and the web would be really, a really good replacement for those.
- 1:02:39Michael Kennedy: And now we have things like Electron and so on, which I'm not a huge fan of, but it's,
- 1:02:44Michael Kennedy: it's kind of what we need to make that happen, but we don't necessarily need Electron, right?
- 1:02:48Michael Kennedy: It would be really great.
- 1:02:49Michael Kennedy: I'm also really excited.
- 1:02:50Michael Kennedy: I don't know how you feel about, I'm really excited about PyScript.
- 1:02:54Michael Kennedy: and the possibility of running Python
- 1:02:56Michael Kennedy: for your front-end stuff?
- 1:02:57David Kopec: Well, I guess what I was getting at is
- 1:03:00David Kopec: why do you think Python has not taken off more
- 1:03:03David Kopec: for desktop GUI development?
- 1:03:04David Kopec: So like we've seen things like Kivy,
- 1:03:06David Kopec: of course we have PyQT and several other frameworks
- 1:03:10David Kopec: that wrap into older C++ GUI frameworks.
- 1:03:13David Kopec: But like Python now is so mature,
- 1:03:16David Kopec: it's the most popular language in the world.
- 1:03:18David Kopec: There's nothing preventing it.
- 1:03:19Michael Kennedy: Yeah, there's nothing preventing it
- 1:03:20Michael Kennedy: from making a really nice platform
- 1:03:22Michael Kennedy: for native app development, right?
- 1:03:26Michael Kennedy: Fundamentally, you could wrap,
- 1:03:28Michael Kennedy: you could come up with a framework
- 1:03:29Michael Kennedy: that abstracts talking to Objective-C,
- 1:03:32Michael Kennedy: the APIs there, or the Win32 API.
- 1:03:34Michael Kennedy: You know, one of the things I'm starting to realize
- 1:03:36Michael Kennedy: that makes desktop development really different
- 1:03:39Michael Kennedy: from back in the day, if you will,
- 1:03:41Michael Kennedy: is there are so many gatekeepers and barriers
- 1:03:44Michael Kennedy: to getting your app onto a machine, right?
- 1:03:47Michael Kennedy: If I built a cool desktop app and I gave it to you,
- 1:03:50Michael Kennedy: your Mac would go, no,
- 1:03:52Michael Kennedy: we're not running that. We moved it to the trash for you because it wasn't notarized.
- 1:03:56Michael Kennedy: Right. And something similar happens on Windows. And so there's these steps you got to jump through.
- 1:04:03Michael Kennedy: And I think there's just been too many gotchas and steps for anybody to push a framework or a way of
- 1:04:10Michael Kennedy: doing this all the way through. I mean, in a sense, the web is kind of like good enough that we don't
- 1:04:16Michael Kennedy: have to figure out a way to build this. I think honestly, if I were to be more concerned, I'd be
- 1:04:21Michael Kennedy: more concerned that we can't create truly straightforward mobile apps with Python than
- 1:04:26David Kopec: desktop apps. Yeah. What do you think? That's where I was going to go to next. Yeah. And I mean,
- 1:04:30David Kopec: Kivy has been an attempt at that. But, you know, I don't really think it's gotten a ton of track
- 1:04:36David Kopec: from what I see. It doesn't look like it's gotten a ton of traction in the way people in the Python
- 1:04:41Michael Kennedy: community hoped it would. So, you know, I don't have to do good work, but it's also not there yet.
- 1:04:47David Kopec: I don't think. I wonder if some of the performance issues, you know, are part of this. So, you know,
- 1:04:54David Kopec: people expect one of the reasons we like desktop apps and native mobile apps over web apps is
- 1:04:59David Kopec: because we get instantaneous feedback and, you know, really high performance in our user interfaces.
- 1:05:05David Kopec: And, you know, I still find even a PyQT app sometimes a little bit slower than, you know,
- 1:05:12David Kopec: a regular QT app. And, you know, it's unfortunate. For me, like the big want for the whole Python
- 1:05:19David Kopec: ecosystem is what started to be the focus, I think, of the core developers, which is performance
- 1:05:24David Kopec: improvements. Like, I think that performance improvements would make everyone's lives in the
- 1:05:28David Kopec: ecosystem so much better, you know. And so I think rightly that this has become like one of the central
- 1:05:35Michael Kennedy: focuses of, you know, of the core developers. Yeah. Guido, Mark Shannon, Brandt Bucher,
- 1:05:42Michael Kennedy: a bunch of people whose names I'm not including, they've all done really good work over the last
- 1:05:45Michael Kennedy: three or four years. I was a little bit sad to see Microsoft cancel that project or cancel the
- 1:05:50Michael Kennedy: funding for that project. I mean, the project continues, but still, you know, what has happened
- 1:05:55Michael Kennedy: is so, so much better. That is really a big deal. Yeah. Yeah. And, you know, I even saw it in the
- 1:05:59David Kopec: course of writing the book. I started writing the book in 2021 and that NES emulator on the same
- 1:06:05David Kopec: was something like 12 frames per second in 2021.
- 1:06:10David Kopec: And by 2025, it was like 17 frames
- 1:06:12David Kopec: or 15 or 17 frames per second.
- 1:06:13David Kopec: Yeah, nice.
- 1:06:15David Kopec: I really saw it in these computationally intensive
- 1:06:18David Kopec: programs in the book.
- 1:06:19Michael Kennedy: I'm pretty positive for it.
- 1:06:20Michael Kennedy: I mean, there's a lot of things that could be better,
- 1:06:24Michael Kennedy: but I think one of the real superpowers is
- 1:06:27Michael Kennedy: it's approachable, but it's ceiling of Python.
- 1:06:29Michael Kennedy: That is, it's ceiling of what you can accomplish
- 1:06:31Michael Kennedy: is not that low, right?
- 1:06:33Michael Kennedy: You can go pretty far if you have CS skills and ideas.
- 1:06:37Michael Kennedy: And then, you know, pip install, uv install.
- 1:06:40Michael Kennedy: The options of what is out there to just build and click together are incredible.
- 1:06:44David Kopec: What do you think about, and I know you talked about it on the show before.
- 1:06:47David Kopec: I heard about a while ago on the show about Mojo and about, you know, a total attempt
- 1:06:53David Kopec: that, you know, let's just redo it and we'll get to keep the language syntax, but not the
- 1:07:00Michael Kennedy: runtime.
- 1:07:01David Kopec: Right, right, right.
- 1:07:01David Kopec: And I mean, PyPy is also, of course, kind of an attempt at that as well.
- 1:07:05David Kopec: But and some people call for it, right?
- 1:07:07David Kopec: I see sometimes people are like, why don't they replace CPython with PyPy?
- 1:07:10David Kopec: What do you think about kind of just like the whole is too big a topic for the end?
- 1:07:14David Kopec: No, no, it's interesting.
- 1:07:16Michael Kennedy: I think all of those are interesting.
- 1:07:18Michael Kennedy: I think the Mojo performance story is very powerful.
- 1:07:22Michael Kennedy: It's also really hard to bring over to CPython because there's so many different ways that it's used.
- 1:07:28Michael Kennedy: There's so many, you know, it runs on this piece of hardware doing this thing that we just could never optimize for, you know?
- 1:07:34Michael Kennedy: So, and then, like I said, with 600,000 or whatever there are packages, you know, how much of that are you willing to carve away to get a faster language?
- 1:07:43Michael Kennedy: And what I think also is a really interesting aspect that people might not think about or take into account that often is you'll see a lot of these benchmarks.
- 1:07:51Michael Kennedy: Like here's the three body, solving the three body problem in Python, and here's solving it in Mojo.
- 1:07:56Michael Kennedy: Here's solving the three-body problem in Rust.
- 1:07:58Michael Kennedy: And look at that huge difference.
- 1:08:00Michael Kennedy: But what often happens in Python
- 1:08:02Michael Kennedy: is you find yourself orchestrating native code anyway.
- 1:08:05Michael Kennedy: Like, okay, we're going to use Polars
- 1:08:07Michael Kennedy: and we're going to do this thing.
- 1:08:08Michael Kennedy: But when I call the Polars functions,
- 1:08:10Michael Kennedy: I'm no longer running Python.
- 1:08:12Michael Kennedy: I'm running like a drop of Python and a bunch of Rust.
- 1:08:15Michael Kennedy: And then you write back in the same,
- 1:08:16Michael Kennedy: or I'm talking to a database layer,
- 1:08:20Michael Kennedy: or my web app is running on a Rust-based server.
- 1:08:23Michael Kennedy: There's just all these little parts
- 1:08:25Michael Kennedy: where a lot of times your code speed
- 1:08:29Michael Kennedy: is more about how you're putting the pieces together.
- 1:08:31Michael Kennedy: Yeah.
- 1:08:31Michael Kennedy: Not always.
- 1:08:32Michael Kennedy: If you're doing computational stuff,
- 1:08:34Michael Kennedy: that's out the window potentially.
- 1:08:35Michael Kennedy: But when you're kind of, you know,
- 1:08:36Michael Kennedy: you do machine learning, you're doing web apps,
- 1:08:39Michael Kennedy: you're doing database calls.
- 1:08:40Michael Kennedy: A lot of these are like just a layer
- 1:08:42Michael Kennedy: and then off it goes.
- 1:08:44David Kopec: Yeah, that's totally makes sense.
- 1:08:45David Kopec: But then I think it is holding Python back
- 1:08:48David Kopec: from some of those, you know,
- 1:08:50David Kopec: some of these real interesting domains
- 1:08:52David Kopec: that people want to get into,
- 1:08:54David Kopec: especially when they're first learning programming,
- 1:08:56David Kopec: like 3D games.
- 1:09:02David Kopec: Let's stick with that
- 1:09:03David Kopec: because I'm thinking of ones for people
- 1:09:04David Kopec: in computer science education.
- 1:09:06David Kopec: A lot of people who study computer science
- 1:09:08David Kopec: is because they want to make a game, right?
- 1:09:10David Kopec: Sure.
- 1:09:10David Kopec: And when they want to make a game-
- 1:09:12Michael Kennedy: And I can see a world,
- 1:09:12Michael Kennedy: like look at one of the biggest game companies
- 1:09:14Michael Kennedy: in the world, it's Unity.
- 1:09:16Michael Kennedy: Yeah.
- 1:09:16Michael Kennedy: Right?
- 1:09:17Michael Kennedy: As a foundational,
- 1:09:18Michael Kennedy: like building your game with not creator of games.
- 1:09:21Michael Kennedy: They're built, I believe in C-sharp and.net,
- 1:09:22Michael Kennedy: if I remember correctly.
- 1:09:24Michael Kennedy: And that's a faster language, but it's not raging fast.
- 1:09:28Michael Kennedy: You know, it's a lot faster, but it's still a decent way from a C,
- 1:09:33Michael Kennedy: like a pure C language, right?
- 1:09:35Michael Kennedy: Yeah.
- 1:09:35Michael Kennedy: A pure C implementation.
- 1:09:37Michael Kennedy: And they're really, really successful.
- 1:09:39Michael Kennedy: They got close enough.
- 1:09:41Michael Kennedy: I could easily see some company go, we're going to build a game engine.
- 1:09:45Michael Kennedy: We're going to use Python as the language to get as many people
- 1:09:48Michael Kennedy: who have been left out in the cold, in a sense, to do it.
- 1:09:52Michael Kennedy: but we're going to do a mojo-like thing.
- 1:09:54Michael Kennedy: Or we're going to do something where
- 1:09:55Michael Kennedy: you don't get to use every library,
- 1:09:57Michael Kennedy: but do you really need Flask in your game?
- 1:10:00Michael Kennedy: Not in your game.
- 1:10:01Michael Kennedy: You know what I mean?
- 1:10:01David Kopec: Yeah, yeah, yeah.
- 1:10:02Michael Kennedy: We're going to build like a smaller focused,
- 1:10:05Michael Kennedy: high performance version
- 1:10:06Michael Kennedy: that looks as close as it could be.
- 1:10:09Michael Kennedy: And we're going to sell you a game engine
- 1:10:11Michael Kennedy: in a way to ship those games on Steam,
- 1:10:13Michael Kennedy: a way to ship those games on Metal to macOS, et cetera.
- 1:10:16Michael Kennedy: Right?
- 1:10:16Michael Kennedy: Like I could see that world happen.
- 1:10:18David Kopec: Yeah, yeah.
- 1:10:19Michael Kennedy: I don't see me making that world,
- 1:10:20Michael Kennedy: but I could see that happen.
- 1:10:21Michael Kennedy: And then actually, I think it would be okay.
- 1:10:23Michael Kennedy: How do you feel?
- 1:10:24Michael Kennedy: Like, do you see that as possible?
- 1:10:25David Kopec: No, that makes total sense.
- 1:10:26David Kopec: I think another thing we think about is like,
- 1:10:29David Kopec: how much are skills becoming more transferable
- 1:10:32David Kopec: because of LLMs?
- 1:10:33David Kopec: So can somebody who already learned Python well
- 1:10:36David Kopec: now quickly pick up C# in Unity
- 1:10:39David Kopec: because the LLM is doing a lot of the detailed syntax for them
- 1:10:43David Kopec: and they just have to understand the programmatic ideas.
- 1:10:46David Kopec: So is like, you know, maybe Python will continue
- 1:10:48David Kopec: to always be this great first language for everybody.
- 1:10:52David Kopec: And it'll be easier for people to now transition
- 1:10:54David Kopec: to other languages for specific domains.
- 1:10:57David Kopec: And so it matters less that we have everything
- 1:10:59David Kopec: in the original language.
- 1:11:01Michael Kennedy: Okay, out in the chat,
- 1:11:04Michael Kennedy: there's the recommendation for, that's Godot.
- 1:11:07Michael Kennedy: If you want to go, I'm not super familiar with it.
- 1:11:09David Kopec: I think it's an open source game engine.
- 1:11:12David Kopec: Yes, that much I know,
- 1:11:13Michael Kennedy: but that's where my knowledge stops.
- 1:11:15David Kopec: Right, and I think it has like,
- 1:11:16David Kopec: it's like a Godot script or something or G script or something is it's it's language which I think
- 1:11:21David Kopec: has more of a Python like syntax somebody in the chat can correct me yeah interesting okay but I
- 1:11:26Michael Kennedy: I think if you took an end-to-end thing you know it's not just a matter of like you can run the
- 1:11:31Michael Kennedy: game engine with this you've got to take it all the way to here's how you ship your games because
- 1:11:37Michael Kennedy: soon what is the very first thing you want to do once you get your game working and fun you want
- 1:11:40Michael Kennedy: to show your friends you know what I mean and you've got to find a way to send it out so this
- 1:11:45David Kopec: goes back to what you were talking about earlier is all the hurdles around you know getting something
- 1:11:50David Kopec: on the mac app store steam or you know or whatever um and how and that goes also to another big thing
- 1:11:56David Kopec: that we're trying to solve in the python ecosystem which is the packaging story right um which there
- 1:12:01David Kopec: are many solutions for but just not one decided on let's make this the standard like you know as
- 1:12:06Michael Kennedy: easy as possible thing yeah it's getting better things are definitely getting better but it's still
- 1:12:11Michael Kennedy: there is no Python build --format equals EXE.
- 1:12:16Michael Kennedy: Right.
- 1:12:16Michael Kennedy: You know, where, where, what comes out and then some sort of tooling that automatically
- 1:12:21Michael Kennedy: signs that stuff with your certificate you've got as a windows developer.
- 1:12:25Michael Kennedy: So it doesn't get flags as malware.
- 1:12:27Michael Kennedy: There's just, even if you get the thing to build, there's like these three or four other
- 1:12:31Michael Kennedy: steps, you know, I'm thinking about an iOS.
- 1:12:33Michael Kennedy: It's like, okay, we got it to run Python, but, but really what we needed to do is like
- 1:12:37Michael Kennedy: integrate with SwiftUI and have storyboards where I can like, I can weave it. And you're like,
- 1:12:43Michael Kennedy: well, that's no, that's a long ways away. Like I know, but that's, you got to go through those
- 1:12:48Michael Kennedy: stages to get it. I don't know. It's just, there's, there's a little bit, a little bit further to go,
- 1:12:52Michael Kennedy: I guess, but I would love to see it. And I'm, I think it'll happen probably.
- 1:12:55David Kopec: It's not that you can't do it. It's just, there's too much friction right now.
- 1:12:58Michael Kennedy: Yeah. Yeah. Yeah. Well, hopefully you've given some people some ideas. Somebody's going to go
- 1:13:02Michael Kennedy: start the unity the pie unity company or whatever and let's let's let's make it happen
- 1:13:09Michael Kennedy: yeah yeah oh and also just um real-time follow-up out there Godot is apparently the pronunciation
- 1:13:16Michael Kennedy: it's french sorry okay no no i didn't know it either um i think honestly just shout out to
- 1:13:20Michael Kennedy: everyone if you have a weird name for your project on GitHub put an mp3 and say this is how you say
- 1:13:25David Kopec: it just get it let's let's help us out and not that french is weird but just you know we should
- 1:13:31David Kopec: actually do that with english projects too right um yeah yeah absolutely to make them accessible to
- 1:13:36Michael Kennedy: the yeah as simple yeah it has nothing to do with french i'm thinking even as something simple as
- 1:13:41Michael Kennedy: g unicorn is often said gunicorn and half the people out there are probably thinking michael
- 1:13:47Michael Kennedy: you're wrong it's gunicorn not unicorn but their logo is a green unicorn yeah i'm like well it's
- 1:13:53Michael Kennedy: probably the g stand just g and then certainly the unicorn part is probably unicorn because
- 1:13:57Michael Kennedy: unicorn is you know what i mean but like it's totally reasonable to look at it and go unicorn
- 1:14:03Michael Kennedy: you know what i mean but if they just put a little mp3 like it's or even just where it's pronounced
- 1:14:08Michael Kennedy: g ee dash unicorn you know what i mean yeah yeah i think we all need to do that yeah yeah all right
- 1:14:14Michael Kennedy: well the chat is getting lively but we're gonna have to call it because we might be just a tiny
- 1:14:19David Kopec: bit over time and it's getting late and you're part of the world so well thank you so much for
- 1:14:23David Kopec: having me on again, Michael. It was really a pleasure. Congratulations again on Talk Python
- 1:14:28Michael Kennedy: in production. Thank you. And Computer Science from Scratch as well.
- 1:14:32David Kopec: Yeah. And if folks want to check out the book, there's a website that
- 1:14:36David Kopec: I'm sure you'll put in the show notes, computersciencefromscratch.com.
- 1:14:40David Kopec: And you can just learn more about the different projects we do and some of the
- 1:14:45Michael Kennedy: ideas in the book. Yeah. Awesome. People want to get in touch with you
- 1:14:48David Kopec: otherwise? How do they do that? Sure. You can find me on X, I guess,
- 1:14:52David Kopec: at Dave Kopech, D-A-V-E-K-O-P-E-C.
- 1:14:55David Kopec: And if you go to my website, DaveKopech.com,
- 1:14:58David Kopec: there's a bunch, there's email
- 1:14:59David Kopec: and a bunch of other ways to contact me.
- 1:15:01David Kopec: So D-A-V-E-K-O-P-E-C.com.
- 1:15:03David Kopec: Yeah, I'll put it in the show notes.
- 1:15:04David Kopec: Thanks, Michael.
- 1:15:05Michael Kennedy: Yeah, you bet, you bet.
- 1:15:06Michael Kennedy: So David, thanks for being back on the show.
- 1:15:09Michael Kennedy: It's been really fun.
- 1:15:09Michael Kennedy: Yeah, we'll talk to you later.
- 1:15:10David Kopec: Awesome, thanks, Michael.
- 1:15:11David Kopec: See ya.
- 1:15:13Michael Kennedy: This has been another episode of Talk Python To Me.
- 1:15:15Michael Kennedy: Thank you to our sponsors.
- 1:15:16Michael Kennedy: Be sure to check out what they're offering.
- 1:15:18Michael Kennedy: It really helps support the show.
- 1:15:20Michael Kennedy: This episode is brought to you by Sentry.
- 1:15:22Michael Kennedy: Don't let those errors go unnoticed.
- 1:15:23Michael Kennedy: Use Sentry like we do here at Talk Python.
- 1:15:25Michael Kennedy: Sign up at talkpython.fm/sentry.
- 1:15:29Michael Kennedy: And it's brought to you by NordStellar.
- 1:15:32Michael Kennedy: NordStellar is a threat exposure management platform
- 1:15:35Michael Kennedy: from the Nord security family,
- 1:15:36Michael Kennedy: the folks behind NordVPN,
- 1:15:38Michael Kennedy: that combines dark web intelligence,
- 1:15:40Michael Kennedy: session hijacking prevention,
- 1:15:42Michael Kennedy: brand and domain abuse detection,
- 1:15:45Michael Kennedy: and external attack surface management.
- 1:15:47Michael Kennedy: Learn more and get started keeping your team safe
- 1:15:49Michael Kennedy: at talkpython.fm/nordstellar.
- 1:15:53Michael Kennedy: If you or your team needs to learn Python,
- 1:15:55Michael Kennedy: we have over 270 hours of beginner and advanced courses
- 1:15:58Michael Kennedy: on topics ranging from complete beginners
- 1:16:01Michael Kennedy: to async code, Flask, Django, HTML, and even LLMs.
- 1:16:05Michael Kennedy: Best of all, there's no subscription in sight.
- 1:16:08Michael Kennedy: Browse the catalog at talkpython.fm.
- 1:16:10Michael Kennedy: And if you're not already subscribed to the show
- 1:16:13Michael Kennedy: on your favorite podcast player,
- 1:16:14Michael Kennedy: what are you waiting for?
- 1:16:16Michael Kennedy: Just search for Python in your podcast player.
- 1:16:18Michael Kennedy: We should be right at the top.
- 1:16:19Michael Kennedy: If you enjoyed that geeky rap song, you can download the full track.
- 1:16:22Michael Kennedy: The link is actually in your podcast blog or share notes.
- 1:16:25Michael Kennedy: This is your host, Michael Kennedy.
- 1:16:26Michael Kennedy: Thank you so much for listening.
- 1:16:28Michael Kennedy: I really appreciate it.
- 1:16:29Michael Kennedy: I'll see you next time.
- 1:16:42And we ready to roll
- 1:16:45Upgrading the code
- 1:16:47No fear of getting old
- 1:16:50We tapped into that modern vibe
- 1:16:53Overcame each storm
- 1:16:54Talk Python To Me
- 1:16:56I sync is the norm