Latest / Talk Python To Me / #156: Python History and Perspectives
Transcript
- 0:00Learning about programming libraries and languages is useful and interesting,
- 0:03but sometimes knowing why certain decisions were made or the history leading up to some change
- 0:08or a package being created gives you a deeper understanding.
- 0:12And that's what this episode is all about.
- 0:14You'll meet Mike Driscoll, who runs PyDev of the Week.
- 0:16He also just published a really relevant book,
- 0:20Python Interviews, Discussions with Python Experts.
- 0:23This is Talk Python To Me, episode 156, recorded March 21st, 2018.
- 0:29Welcome to Talk Python To Me, a weekly podcast on Python,
- 0:45the language, the libraries, the ecosystem, and the personalities.
- 0:49This is your host, Michael Kennedy.
- 0:51Follow me on Twitter, where I'm @mkennedy.
- 0:53Keep up with the show and listen to past episodes at talkpython.fm
- 0:57and follow the show on Twitter via at Talk Python.
- 0:59Before we get to our conversation, I want to tell you about a project I've been working on for the past three months.
- 1:04Do you remember Bob and Julian from episode 140,
- 1:07where we talked about the 100 Days of Code challenges and their projects around it?
- 1:11Well, since then, we've teamed up and created a new course, 100 Days of Code in Python.
- 1:17This course has 18 hours of video lessons and around 80 hours of guided exercise.
- 1:23That's 100 hours, one for each day.
- 1:26If you're considering doing one of these 100 Days of Code challenges,
- 1:29please have a look at our course over at talkpython.fm/100 days.
- 1:33Now, let's get on to the interview.
- 1:35Mike, welcome to Talk Python.
- 1:38Thank you for having me, Michael.
- 1:39Yeah, it's great to have you here.
- 1:41I've been a fan of your Python Dev of the Week project that you've had going for a long time and things like that.
- 1:47How long has that been running?
- 1:49I think it's been going on now for almost three years.
- 1:51Yeah, that's pretty good.
- 1:52That's like 156 interviews or something on that scale, right?
- 1:56That's cool.
- 1:57Yep, yep.
- 1:58That's correct.
- 1:58Yeah, nice.
- 1:59Awesome.
- 1:59We're going to talk about some of the interviews you did,
- 2:03not necessarily for that project, but somewhat in the same vein as that for this really cool book that you put together called Python Interviews,
- 2:14which I think is a great idea.
- 2:16But before we get to it, let's get started with your story.
- 2:19How did you get into programming in Python?
- 2:20Okay, so I started out with your traditional languages in school like C++ and COBOL.
- 2:26I know COBOL isn't really that interesting anymore, but that was what I was learning back then.
- 2:31There was a part of the time where it was really good consulting, right?
- 2:34People really needed COBOL to help the transition, right?
- 2:38Yeah, yeah.
- 2:38I do know a contractor who makes really good money doing COBOL for the government.
- 2:43So there's definitely a job still out there for you people who want to learn ancient, dead languages.
- 2:47I guess so.
- 2:48All right, so you started with those languages, right?
- 2:51And you studied comp sci in college?
- 2:53Yeah, I went for computer science, and then I transitioned to MIS.
- 2:58Then I graduated, and the dot-com bubble burst, and there were no jobs.
- 3:02Oh, that hurts.
- 3:03And probably while you were in college, you were like, oh, my God, the jobs are so hot.
- 3:07I can't wait to get out there and work with a place with volleyball and massages.
- 3:13All the excesses of the day.
- 3:15Yeah, it sounded like it was going to be an awesome opportunity, and then I get out, and
- 3:19I'm like, wow, I can't get a job anywhere because everyone has to have five years' experience
- 3:22or more.
- 3:23Oh, that's rough.
- 3:24So what did you do?
- 3:25I actually worked kind of as a so-called webmaster doing front-page-based websites for an auction
- 3:34company.
- 3:34Front-page is a product, right?
- 3:35Like the thing that looked a little like Word but made websites?
- 3:38Yeah, the Microsoft product that's now dead.
- 3:41But yeah, I had created templates, and it was kind of pathetic.
- 3:44Yeah, it was a really interesting take on how you make the web.
- 3:47And of course, it was pretty typical of how Microsoft thought at the time.
- 3:51They don't do that anymore either.
- 3:53No, they don't.
- 3:55But anyway, I did that, and then the local county actually was hiring.
- 3:58And for some reason, they ended up choosing me, and they said, we're transitioning away from
- 4:04Microsoft because every time we upgrade our VBA applications, like Office, it breaks all
- 4:11of our apps.
- 4:12And we want to go to open source.
- 4:13And the language that my boss had chosen at the time was Python.
- 4:16And so he said, you can learn Python or, you know, you won't be able to work here.
- 4:22So I picked up Python on the job, and I got really good at it, and basically fell in love
- 4:28with the language.
- 4:28That's really cool.
- 4:29What was your first thought when you kind of got that news?
- 4:32Well, I was pretty nervous because I was like, I studied all this stuff in college, and now
- 4:37I'm going to do a completely different language, which is very different than what they were
- 4:41teaching in college.
- 4:42And they're just like, whoa, transition shift, you know?
- 4:46It was a little trial by fire, but it worked out in the end.
- 4:50Yeah, that's awesome.
- 4:51And then after that, you pretty much have been just sold on Python?
- 4:54Yeah, I'm definitely a Python advocate.
- 4:56Yeah, of course.
- 4:57That's awesome.
- 4:58All right, so that's how you got into it.
- 5:00How about today?
- 5:01What do you do day to day?
- 5:02Currently, I'm working for an aid company that creates tools to actually kind of automate
- 5:09and track what you're doing when you're planting and when you're harvesting.
- 5:14And they can basically plant your corn or your beans or whatever down to the centimeter,
- 5:20depending on your GPS quality.
- 5:22And what's cool about that, yeah, I know.
- 5:25And when I got into this, I was like, I didn't know that tech had reached the far world.
- 5:31That's really amazing what they are doing now in agriculture and, you know, in food produce.
- 5:36Yeah, one of the things I think is super interesting is just how diverse the uses of Python and programming are, right?
- 5:44Like, I suspect a lot of people, when they think of farming, they probably think of large farms.
- 5:49They probably think of, like, John Deere tractors and stuff doing their thing.
- 5:53But they probably don't think deep IoT and a lot of code and automation and all that kind of stuff, right?
- 6:01Yeah, yeah.
- 6:01Yeah, I know I didn't.
- 6:05Yeah, I think there's actually some really cool stuff in IoT and farming, for sure.
- 6:09Oh, yeah, yeah, definitely.
- 6:10They're getting more and more connected so that you can track what you're doing on your iPad and the display in the cab and on your phone, too.
- 6:20And everyone in the business or your relatives can kind of see how you're doing, basically.
- 6:24Yeah, that's cool.
- 6:26Yeah, there's a guy who was listening to this podcast and sent me a picture of, like, it being played or something while he was plowing a field in his John Deere tractor.
- 6:35He's like, yeah, man, I'm studying up while I'm working on the farm.
- 6:38I'm like, wow, that's really cool.
- 6:39So tell us about the app that you work on.
- 6:41What I actually work on is the testing of the applications that we work on for the agricultural company.
- 6:47So I write Python that uses a tool called Squish that connects to the C++ embedded application that we've written.
- 6:56And it'll actually instrument it and be able to press any buttons or grab any information out of it.
- 7:01And it allows us to test all of our different configurations.
- 7:06And do the buttons exist when they're supposed to or not?
- 7:08Because we have permissions related to the type of owner or operator who's using the tool.
- 7:14Stuff like that.
- 7:15Basically, it gets pretty complicated.
- 7:17We have probably, you know, 300 or 400 tests just for the UI, not counting all the unit tests and other things underneath the covers.
- 7:25Right, yeah, that sounds pretty awesome.
- 7:27Sounds like a fun project.
- 7:28Yeah.
- 7:29Yeah, so let's talk about some of your books.
- 7:32So we talked about the Python Dev of the Week project, which is on the web.
- 7:36But you've written a number of books, right?
- 7:38Yeah.
- 7:39My audience for my blog had been encouraging me for a couple of years to write a book.
- 7:43And I finally took them up on that and wrote Python 101, which was pretty well received.
- 7:48I did a Kickstarter for it to help get some publicity and just to see if there was any interest in it.
- 7:55And that was by far the book that got the most interest of any of them that I've written.
- 8:01And people are still buying it and reading it and, you know, telling me that they like it for the most part.
- 8:08Yeah, that's really awesome.
- 8:09So I definitely think these, like, if you look at what people are interested in, it seems like it might be most amazing to write some really advanced book.
- 8:18But it's really the foundational stuff that actually most people are interested in, right?
- 8:23Like, if you wrote, like, the internals of AsyncIO, even though it might sound cooler than Python 101, like, it wouldn't be the same, right?
- 8:31Yeah.
- 8:32I've noticed that with the more specific topics you get, the smaller the audience chunk is because there are just less people that are going to be interested in that specific topic.
- 8:41Yeah, for sure.
- 8:43So I think launching it on Kickstarter was a really good idea.
- 8:47You know, I launched my training company on Kickstarter as well.
- 8:51And it just was really surprising.
- 8:53But it was also, it really took a lot of the edge off.
- 8:56Like, after a week, you're like, okay, there's enough interest in this for me to pursue this project that it's not just me thinking of an idea and going, I hope it's good.
- 9:04We'll find out in six months.
- 9:06But, you know, you put it up there, people, like, commit to it right away and give you feedback.
- 9:10And it actually guides a little bit of what even you might build, right?
- 9:14Yeah.
- 9:14That's actually why I liked Kickstarter is that I got to work with the people.
- 9:18My early readers got to have feedback early on in the process.
- 9:22And I was able to actually take some of their ideas and be like, this is awesome.
- 9:27Let's add this to the book.
- 9:28Or let's add that to the book.
- 9:29Or this actually isn't a good idea to talk about.
- 9:32Nobody's interested in this topic.
- 9:33Yeah.
- 9:33Yeah, that's really, really cool.
- 9:35So then you also did Python 201, Intermediate Python, right?
- 9:39Was that also on Kickstarter?
- 9:40Yes.
- 9:40It definitely was.
- 9:42And it got a lot of interest as well, although maybe not as much as, of course, the first one.
- 9:49But a lot of people thought it was really interesting, and they took it as a good stepping stone to the next level, I think.
- 9:55One that you did that really sounds super interesting to me these days is wxPython Cookbook and Recipes.
- 10:02Yeah.
- 10:03So Daybreak's Python Cookbook.
- 10:04I've been working with that community practically from the beginning of my time starting with Python.
- 10:10And I thought, you know, I've written a lot of recipes on my blog.
- 10:14I should clean those up and write some new ones and create a book around it.
- 10:17And so that's kind of what I did.
- 10:19And then A-Press came along and said, hey, we like that book.
- 10:22We want to compete with Pact.
- 10:24Could we, you know, license it and give it our brand and call it Recipes instead of Cookbook?
- 10:30And so...
- 10:31That's interesting.
- 10:32That's kind of how that ended up happening.
- 10:34Yeah.
- 10:34So does this cover the wxPython Phoenix or does it predate that?
- 10:40And how different are those?
- 10:41Yeah.
- 10:42It does cover Phoenix, which is now wxPython 4, actually.
- 10:46I tried to do both 3 and 4 when I wrote the cookbook itself.
- 10:50And then when A-Press came along, I kind of updated it.
- 10:52So most of it is just for 4.
- 10:55But I did leave a little bit of legacy code in there to kind of show the difference.
- 11:00The big things that have changed is that Robyn Dunn, the creator of wxPython, switched from SWIG to SIP.
- 11:07And so the layer between Python and C++ is thinner.
- 11:12And it makes doing Python 2 and 3 a lot easier for him.
- 11:18But otherwise, it's just like, you know, he deprecated some certain naming conventions and just little things that have bothered him for, you know, who knows how long.
- 11:29Probably a decade.
- 11:30And now he's finally gotten it nicer.
- 11:32Yeah.
- 11:33Yeah, that's cool.
- 11:34All right.
- 11:35I want to talk about your main book and really dig into that one.
- 11:38But you have one that also was on Kickstarter.
- 11:41I know because I backed it.
- 11:42And I don't know if the – I think the Kickstarter is done, right?
- 11:46Called Report Lab.
- 11:47Want to tell us about that?
- 11:48Yes, that Kickstarter is over.
- 11:50Okay, cool.
- 11:51How did it go?
- 11:53I thought it went okay.
- 11:54I thought it might be a little bit more interest than the wxPython one.
- 11:58Because my Report Lab articles on my blog get way more hits than my wxPython ones do.
- 12:04So I just thought, you know, Report Lab is going to be more interesting than wxPython is, at least book-wise.
- 12:11But, oh, well.
- 12:12It's been really good.
- 12:14I've gotten good feedback.
- 12:15I've got good people telling me some good ideas.
- 12:18And the book itself is coming together really, really well.
- 12:22And since a lot of it's like brand new content, I feel like that – I just feel really positive about it.
- 12:27Because usually when I'm writing everything from scratch, it takes a lot longer.
- 12:32And it's just kind of like coming right out really smoothly for me.
- 12:36Oh, yeah.
- 12:37That's really great.
- 12:37And so this basically teaches you how to do PDF processing in Python, right?
- 12:43Yeah, yeah.
- 12:44And Report Lab is for creating PDFs and basically laying out the page in your PDF.
- 12:51I also have a part of the book that's going to talk about some other Python-related PDF tools like PyPDF2 and PDFMiner that will show you how to export data from your PDF or split your PDF into multiple pages or join multiple PDFs together.
- 13:07Different things like that that Report Lab doesn't really do natively.
- 13:11Yeah, that's really cool.
- 13:12I definitely want to study this because I need to create some PDFs for various things on my site.
- 13:16So I'm excited for this to come out.
- 13:18When's it coming out?
- 13:19It'll come out in June or maybe even May if I'm lucky.
- 13:22Yeah, that's awesome.
- 13:23All right.
- 13:24So let's talk about your book that you do have out.
- 13:27This is probably the most recent one published, right?
- 13:29The one called Python Interviews, Discussions with Python Experts?
- 13:32Yes.
- 13:33That one was released earlier this month, actually.
- 13:35Yeah, nice.
- 13:36And this one is published through PAC, whereas your original WXPython cookbook and your other ones as well, were they self-published?
- 13:44Yes, that's correct.
- 13:46Interesting.
- 13:46Okay.
- 13:47So maybe give us the quick trade-off between self-publishing and, say, working with PACT or someone else.
- 13:54The main thing I like about self-publishing is I know when I release, I know the name of the book.
- 14:02I have the control over the book.
- 14:03I have the control over the quality of the book, and I can also see how it's selling at any moment in time because Amazon and LeanPub, the two primary places I sell my book, actually have graphs.
- 14:15And they can tell you in real time how many units have sold in a day, whereas if you work with a publisher, you have to wait quarterly for updates.
- 14:25Right.
- 14:25So you have no idea if the book is selling well or not.
- 14:28And you have no idea how much of that cut you're going to get either, depending on the sales that were done during that time period.
- 14:35Yeah.
- 14:35So.
- 14:36Yeah, interesting.
- 14:37Okay.
- 14:37So this one is with PACT, and I think it's a really interesting idea.
- 14:41So you went through and you interviewed 20 notable experts in the field.
- 14:47I'll just read off some.
- 14:48Mike Bayer, Brett Cannon, Nick Cogan.
- 14:51You had Jessica McCuller, Carol Willing, Al Swiger, Jake Vanderplast, and a bunch more.
- 14:57All those people I named, by the way, have been on the podcast.
- 14:59So I feel like you've done this sort of interesting book equivalent, sort of a podcast, right?
- 15:06Like I'm going to go inside and get the stories of these people behind these major projects, right?
- 15:11Yeah, yeah.
- 15:11Yeah.
- 15:12Nice.
- 15:13So I guess maybe let's start at kind of a high level.
- 15:17One thing I wanted to ask you is like, what's your takeaway from all the time you spent interviewing these people?
- 15:24Like what perceptions or thoughts maybe changed about ideas that you had going in that afterwards you're like, oh, no, actually, this is totally different than what I thought it might be.
- 15:33I think the biggest takeaway for me is how big AsyncIO has gotten in asynchronous programming in general.
- 15:43A lot of the people I talked to were excited about it and excited to have it added to the standard library.
- 15:49I think I had a couple people who were pretty kind of cautious about AsyncIO and they thought its implementation wasn't as good as it should be.
- 15:58Or they just didn't think it was a good idea in general.
- 16:02But overall, I got a kind of a positive feedback loop from that that, hey, this is really good.
- 16:07It needs some improvement.
- 16:09We're going to make Python use it in a way that is really easy to use.
- 16:14Yeah, I feel like if you're in a situation or position where AsyncIO will really solve the problem, it's like such a great thing to have it.
- 16:26But a lot of people write code that has no use for it and it just seems like confusing.
- 16:33It adds complexity and why is this thing here?
- 16:35But if you happen to need it, then you definitely, definitely can benefit from it.
- 16:40Yeah, I totally agree with that.
- 16:42Yeah, I think the one area that we could use some more help on to really jumpstart this is really the major web frameworks.
- 16:50If they could somehow be like natively Async capable.
- 16:55Yeah, I know Glyph was trying to do that, but he was trying to make Async native.
- 17:02Even though it is technically the Async socket library already, he's going to start using the Python Async library in the internals of Twisted.
- 17:10That's pretty awesome.
- 17:11That way you can chain your Async stuff with the lower level Async stuff in a more continuous way.
- 17:18Yeah, I thought that was a really neat idea.
- 17:21Yeah, pretty cool.
- 17:22Okay, other takeaways?
- 17:23The other takeaway, and I kind of noticed this at PyCon last year, is that machine learning and data science has gotten really big with Python.
- 17:31And so there was a lot of excitement about that and how Python is just like kicking butt in that sphere, that business area.
- 17:40And it's bringing in a lot of new people that don't really know Python at all or programming in general.
- 17:46And they're getting introduced to Python, which I think is really cool.
- 17:49Yeah, I think it really has opened up a whole other aspect.
- 17:52And you're right, it is a big theme in the book from what the people talked about.
- 17:57So what I want to do is just go through and we'll pick out a couple of the folks you interviewed and some of the things that I found notable in your conversation with them from the book.
- 18:10And maybe we could just touch on those a little bit.
- 18:12So there's 20 people here, and we can't go through all 20 of them, I don't think, unfortunately.
- 18:17So people are saying, if I don't cover your thing, it's not that I didn't like it, just like I ran out of time.
- 18:23So time and space.
- 18:25So let's start with one of the core developers.
- 18:28I really like Brett Cannon.
- 18:29So yeah, Brett, he lives sort of in my neighborhood, if you think globally and define a sufficiently large neighborhood.
- 18:36Sort of the Pacific Northwest area anyway.
- 18:38And so one of the things that he touched on that I thought was pretty interesting was the sort of idea of like, can you know it all, even within this Python sphere, right?
- 18:49Like, can you know all of Python?
- 18:51Like, should this even be a goal?
- 18:53And of course, like, there's the Python and the runtime, but then there's also all the libraries and external stuff, right?
- 19:00Yeah.
- 19:01Talking about that, he said something to the effect of, Guido famously was once asked at Google, on a scale of 1 to 10, how well do you know Python?
- 19:09He said 8.
- 19:09Yeah, I've noticed that Google has that on one of their, and part of their interview processes.
- 19:15You know, how well do you know something?
- 19:17You know, one is, you don't know it at all, and one is you wrote the book on it, or you wrote the language.
- 19:22So I find it really interesting that Guido himself is like an 8.
- 19:26But I totally agree with that.
- 19:28While I consider myself to be really knowledgeable in Python, there are libraries that I've never used in the standard library yet.
- 19:34Yeah, same here.
- 19:35Yeah.
- 19:35I think it's really interesting, right?
- 19:38And at first you might think, well, how is that possible?
- 19:40He created Python.
- 19:42But he's not the only one, right?
- 19:43There are tons of people working on major changes and optimizations and whole new aspects of Python that maybe he just looked at the PEP and said, that's a good idea.
- 19:53Send us a PR.
- 19:54Yeah.
- 19:55Yeah, I totally agree with that because there's a lot of people who did it who worked on it.
- 19:59And I think even Brett would say he doesn't know it all, even though he did claim, I think, during the interview that he had touched pretty much everything in the Python internals at one point or another.
- 20:08Right, but how much of that sticks, right?
- 20:09Yeah, I know.
- 20:11So another interesting –
- 20:14I just have to look up stuff.
- 20:14Yeah, of course, like distributed cognition.
- 20:17We have the internet.
- 20:17So another thing that he touched on that's really important right now and is going to be increasingly important over the next year and a half is moving to Python 3.
- 20:27He said, I hope people realize that you can transition to Python 3 gradually.
- 20:32It doesn't have to be abrupt or painful, and he referenced the Instagram thing where I was actually at the keynote at – what was that, 2017?
- 20:41PyCon 2017?
- 20:42I think it was.
- 20:43Mm-hmm.
- 20:43Definitely in Portland.
- 20:44Yeah.
- 20:45I was actually doing this at work last year.
- 20:48I was trying to transition our automated test framework from Python 2 to Python 3, and it really wasn't that bad.
- 20:56I got the code working, but I wasn't able to get all the tooling to work because of issues with our vendor.
- 21:02But it really isn't that painful.
- 21:04I thought it was actually fairly easy, and we have probably 10,000 lines of code or more just in that one testing framework.
- 21:12Yeah, I think to me, when I look at the changes, I'm like, none of these are major.
- 21:17They're really, really not.
- 21:18The one place where it gets really kind of tricky is at the network layer where you're trying to sort of switch to Unicode versus bytes and strings and all that.
- 21:28But other than that boundary, it's really not that big of a deal.
- 21:32I think part of the major challenge for people is we have this huge thing.
- 21:37It's working.
- 21:38Please don't touch it.
- 21:39Yeah.
- 21:41Yeah, I agree.
- 21:42The issue that I think we found the most painful was writing binary files out, and we were using byte strings, and we had to convert one way or the other.
- 21:51And that was a little bit trickier in Python 3 when I wasn't expecting that.
- 21:56This portion of Talk Python To Me is brought to you by Linode.
- 22:00Are you looking for bulletproof hosting that's fast, simple, and incredibly affordable?
- 22:04Look past that bookstore and check out Linode at talkpython.fm/Linode.
- 22:09That's L-I-N-O-D-E.
- 22:11Plans start at just $5 a month for a dedicated server with a gig of RAM.
- 22:15They have 10 data centers across the globe, so no matter where you are, there's a data center near you.
- 22:20Whether you want to run your Python web app, host a private Git server, or file server, you'll get native SSDs on all the machines,
- 22:28a newly upgraded 200-gigabit network, 24-7 friendly support even on holidays, and a 7-day money-back guarantee.
- 22:36Do you need a little help with your infrastructure?
- 22:38They even offer professional services to help you get started with architecture, migrations, and more.
- 22:44Get a dedicated server for free for the next four months.
- 22:47Just visit talkpython.fm/Linode.
- 22:50So another thing that Brett talked about that was pretty interesting was the mythical Python 4.
- 22:56Like, will it be a Python 4?
- 22:57What's going to be in Python 4?
- 22:59Will it be as painful as 2 to 3?
- 23:01Yeah, so he had some interesting ideas.
- 23:03Obviously, it's not going to be any sort of thing like going from Python 2 to Python 3.
- 23:08But he talked about some things like switching to a tracing garbage collector instead of reference counting.
- 23:14To help with things like parallelism and stuff.
- 23:17And this parallelism is another theme that actually came up a lot in the book.
- 23:22Basically, taking advantage of multi-core processors.
- 23:26Yeah, there was several people who were bringing up that topic and how Python is usually kind of given a black eye about being too slow in a lot of cases.
- 23:37When in actuality, if you use it correctly, you can get a lot of speed out of Python.
- 23:42Or write your stuff in Python and then switch to PyPy or some other type kind of thing like that.
- 23:48And you can quadruple your output or your speed just by little tiny changes like that.
- 23:54But yeah, Brett was definitely talking about that.
- 23:58And I think Barry Warsaw was talking about removing the GIL.
- 24:01So yeah, there was a lot of different back and forth about how we could make parallelism in Python better.
- 24:07Yeah, absolutely.
- 24:09So let's switch on to another one of your interviewees, Steve Holden.
- 24:13So one of the ideas that I thought was really interesting, and I touched on it recently in another episode,
- 24:21and I can't remember who I was talking to about it, which is really unfortunate.
- 24:24But it's the idea that the sort of forward progress and overall maintenance of Python and the ecosystem and whatnot
- 24:33continues with no professional organizers, right?
- 24:37Like you've got Microsoft completely controlling something like C#.
- 24:43And anything that happens, there might be community input, but there's this giant company whose job it is to decide what the next steps are.
- 24:52Whereas with Python, I guess there's just none of that, right?
- 24:56There's just us.
- 24:58Yeah, yeah.
- 24:58The only thing that's really behind Python is the Python Software Foundation.
- 25:02And it just kind of guides the community into how things should work.
- 25:08Yeah, they're more to support things than it is to specify directions, right?
- 25:15Like the PSF doesn't go, we need these three features and this library upgraded and this thing done for Python 3.7, right?
- 25:22Yeah.
- 25:22Yeah, they just provide funding and protect the Python brand.
- 25:26They don't really say, we need X, Y, and Z.
- 25:29Exactly.
- 25:30Yeah, they actually have a, they kind of handle the corporate details and like chasing people down if they mess up with the copyright and funky stuff like that, which is a bit of an odd job.
- 25:42It struck me as odd when I first heard it, but it's, you know, if someone's got to do it, like they're the people to do it, right?
- 25:47Yeah, someone's got to do it.
- 25:49You don't want people using the Python name inappropriately.
- 25:52Yeah, for sure.
- 25:53So another thing that Steve Holden talked about was also the mythical Python 4, but he had a different take, which I like this idea in general.
- 26:04So he said, basically, you hear loose talk of Python 4, but to my mind, Python is now at a stage where it's complex enough.
- 26:12There's so many languages that just seem to like need another feature every release.
- 26:19We're going to have four new keywords and you're going to use it in this way.
- 26:22And it doesn't matter if you really need those keywords.
- 26:24Like there are language designers whose job it is to design the language.
- 26:27So when a new version of language comes out, like they have new features, needed or not.
- 26:31All right.
- 26:32I'm thinking like JavaScript is a little bit like that.
- 26:34Maybe C# is definitely like that.
- 26:37There's a number of languages where there's just this expectation that there's always new stuff.
- 26:42What do you think about that?
- 26:43Yeah, I kind of feel like we don't really need anything brand spinky new in Python anymore.
- 26:50There's some controversy over adding f-strings because we already had two or three ways to do string interpolation already.
- 26:57I think f-strings are kind of cool, but did I need them to do my job?
- 27:00No.
- 27:01So I can see where Steve's coming from with that.
- 27:04Yeah, I feel the same way, actually.
- 27:05The one language feature that comes to mind, I'm like, yeah, that really does something different is the async and await keywords.
- 27:13Yeah, that one is definitely new.
- 27:15And while, like I said, a little bit painful, especially with the first implementation, it is getting better.
- 27:22And it definitely does something new and different in the language.
- 27:25Right, right.
- 27:26Whereas like the fifth way to format a string is certainly debatable about whether it's needed.
- 27:30There's not a fifth way to like asynchronously work with I.O.
- 27:33That is part of the language, right?
- 27:35Yeah, yeah.
- 27:35Yeah, yeah.
- 27:36Obviously libraries.
- 27:37Yeah.
- 27:38I kind of wonder sometimes, though, why they didn't continue working on the futures library because it seems to be kind of just kind of died off now.
- 27:45Oh, yeah.
- 27:45That's a really good point.
- 27:46Like maybe put some trial stuff.
- 27:48Float some trial things.
- 27:50Maybe even an external package that you can bring in and try and see what sticks.
- 27:54Yeah, yeah.
- 27:55That'd be pretty cool.
- 27:56So another thing that Steve talked about was sort of the excitement of Python being the main programming language for people coming in in education.
- 28:07And I think this touches back to his previous comment as well, which is like hopefully this will keep Python in a space where it's relatively comprehensible.
- 28:18And these like easily accessible tools for building rich applications will be available to people for like the next 20 years at least, right?
- 28:25So like really having a – not losing the ability of people to get into Python easily.
- 28:30Yeah, I think that's really awesome that Python has gotten a hold in the education sphere so much.
- 28:37I think I read earlier this year that MIT, all of its intro stuff is in Python now.
- 28:43Oh, that's sweet.
- 28:44And I think I was at university, which is where I did some of my studies.
- 28:47They're starting to use Python now in some of their intro courses.
- 28:49And I just think it's really cool that it's spreading like that.
- 28:53People have asked me if they can use my book as kind of a trial run in their classes.
- 28:57And I'm like, go for it.
- 28:58See if it works.
- 28:59If it doesn't, let me know.
- 29:00So it's just really cool what's going on with Python in education.
- 29:04Yeah, and I think – absolutely agree.
- 29:06And I think part of what he was touching on, you know, I called out JavaScript in particular earlier about gaining all this complexity.
- 29:14Like before Node.js, JavaScript was this incredibly easy place to get started.
- 29:20Like maybe you'd go crazy and throw in some jQuery or something.
- 29:23But you write a few functions.
- 29:24You do some stuff.
- 29:25And now, you know, you're requiring this.
- 29:29You're injecting that.
- 29:30You're transcompiling that other thing.
- 29:32It's just like, whoa, this is like not the same space.
- 29:35It's quite complex.
- 29:36In a couple years.
- 29:38Yeah, JavaScript is kind of mind-bending right now with which products do you need to know to actually produce a website that's, you know, cool and useful that isn't full of a bunch of buzzwords and broken pieces in a year or two.
- 29:54Yeah, it just seems like this went so far off the deep end of going, oh, we're going to do all these things and bring all this stuff in.
- 30:00And there's also not consistently one way to do things.
- 30:03It's just, it just seems unnecessarily complicated.
- 30:07Like I think one of the powers of Python is it starts super easy.
- 30:10You can have a really complicated, complex architecture, but it's not required.
- 30:15You know, where it almost is these days to use a lot of the web stuff.
- 30:19Yeah, Python is definitely has a nice easy learning curve until you hit some of the more advanced topics.
- 30:24Yeah.
- 30:24Which is what you'd expect.
- 30:26It's ideal, yeah.
- 30:27So let's move on to another interviewee, Carol Willing.
- 30:32So she ran the PSF for a while and she's done a bunch of cool stuff.
- 30:36And I think the first thing that I noticed from your conversation with her was the concept of Python as a mosaic.
- 30:42And this was really laid out super clearly by Jake Vander Plaas at PyCon 2017 at his keynote.
- 30:49Where it's just these people are coming from all these different disciplines.
- 30:53And you touched on this as well at the beginning.
- 30:55That like all these different ways and types of programming and areas of programming are coming into Python.
- 31:02And probably making it stronger for giving it these different perspectives.
- 31:06Yeah, I've noticed, especially like I said at the last PyCon, you had data scientists, astrophysicists.
- 31:12People, they had a course for middle school and teenagers to learn Python at PyCon.
- 31:19And then, of course, you had the people like Glyph who does Twisted.
- 31:24You have all these asynchronous people and people from Instagram and the business side.
- 31:28And it's like, wow, you have all these disciplines.
- 31:31And they're all using the same fun language to do really cool things.
- 31:34Right, exactly.
- 31:35You had Instagram talking about how they were running their whole thing on Python.
- 31:39But you also had Jake Vander Plaas going, these three major telescopes that are being launched in the next couple years.
- 31:45Here's their API.
- 31:47It's in Python, right?
- 31:48It's just like the juxtaposition.
- 31:51It's amazing.
- 31:51You can go read their code.
- 31:53Exactly.
- 31:54Yeah, it's really cool.
- 31:55And you're just touching on astronomy for a minute.
- 31:57Like what's really cool is they had another language.
- 32:00It's still around, I'm sure, for astrophysics called IDL, I believe.
- 32:04And that was a commercial language.
- 32:08You wouldn't even compile your code.
- 32:09You pay money to get the compiler and the license just to work on that.
- 32:14And here you have, oh, yeah.
- 32:16Now we're just going to put it on GitHub.
- 32:17And it runs on Python.
- 32:18And now we're talking to space.
- 32:20Pretty cool.
- 32:21Yeah, I think a lot of the data scientists are getting away from that because they have Mathematica and some of those other math languages of sorts.
- 32:29And they have to pay big, big bucks to do their job.
- 32:36And now they can use open source and share it with the world.
- 32:38Yeah, it's super amazing.
- 32:39Like I came from a math background.
- 32:41I've worked at this company where we had to do wavelet decomposition of like time series stuff.
- 32:48And that originally was in MATLAB.
- 32:50And we were converting it over to a proper programming language.
- 32:53But just to get the little extension to MATLAB so that we could do that, I believe, was $2,000 a person.
- 33:00Just for the extension for the wavelet deco.
- 33:02Not the whole thing.
- 33:03Just that little bit, right?
- 33:05It's like, wow.
- 33:05That is intense.
- 33:07Yeah, we have some tools in the agriculture field that are very similar to that where you have to spend a lot of money to compile from one language to another language or do exactly what you just said because we also use MATLAB as well.
- 33:21Yeah.
- 33:21Yeah, but we have things like SageMath, Jupyter.
- 33:25There's a lot of stuff that's coming along to disrupt that.
- 33:28I think those days are somewhat numbered except for maybe really niche stuff, which probably is for the better.
- 33:34Yeah, totally.
- 33:36So another thing that Carol touched on I thought was cool is what I'm going to call sort of Python for all.
- 33:41So she has a data science background and does a lot of stuff with Jupyter.
- 33:47And so she talked about the rise of Python in education, but also the rise of Chromebooks in education where you can't really install anything on your Chromebook.
- 33:59And so, you know, providing every student some kind of web account into something they can do Python on and give them the same tools and the same experience, which I think is really empowering.
- 34:11Yeah, I think if we had a couple more places where you could actually do Python in the browser, that would be really, really powerful.
- 34:17You know, I know that a little bit and it's pretty limited right now.
- 34:22But I think we're getting there to the point where we could actually start saving the Python scripts to the cloud and running them in the cloud in such a way that the student could learn how to do it.
- 34:32And that would be really awesome.
- 34:33I think it is really awesome.
- 34:34And I think at that level, the notebook type answers are really, really interesting.
- 34:39So like Azure has, I think, free notebooks.
- 34:42Google has a notebook solution.
- 34:44JetBrains just came out with Data Lore.
- 34:46All these like are hosted online.
- 34:49You log in, you save your stuff, you know, you run and it runs there.
- 34:54So those are pretty cool.
- 34:55Even on the Google one, you could even hit like, you know how you like shift enter in notebooks to run it.
- 35:01There's like a modifier key to run this cell on a GPU.
- 35:05Like, and that's it.
- 35:07You just, you have like a different hot key to run on the GPU.
- 35:10I mean, it's like, wow, that's quite different than.
- 35:14Yeah, I hadn't even heard of that.
- 35:16Yeah, yeah, yeah.
- 35:16So I covered it on Python Bytes a little while ago.
- 35:18I can't remember the name.
- 35:20I'll try to put it in the show notes.
- 35:21But yeah, there's, so I think some of these things are coming along.
- 35:24You have Python anywhere?
- 35:25Python everywhere.
- 35:26Sorry, guys.
- 35:27It's actually, if you go to python.org.
- 35:29I didn't realize this for the longest time.
- 35:31If you go to python.org, there's those little screenshots of text.
- 35:34And there's a little like prompt looking button.
- 35:37If you press that, it'll actually open up a remote terminal, Python anywhere.
- 35:41And you just start typing.
- 35:42I knew it had a terminal, but I didn't realize Python everywhere was underneath it.
- 35:46Yeah, yeah, yeah.
- 35:46So pretty, pretty.
- 35:47That's awesome.
- 35:48Yeah, it's pretty cool, right?
- 35:49But I think we need to be aware that so much of education at the lower levels is running
- 35:54on Chromebooks.
- 35:55And you can't pip install anything on the Chromebooks, right?
- 35:58You don't get a terminal.
- 35:59You get basically flavors of Chrome.
- 36:02So having a really good way to bring people on there is quite cool.
- 36:07So, you know, another thing that comes to mind is Anvil.
- 36:10Anvil.works.
- 36:11They basically let you create web apps and the whole IDE is in the browser.
- 36:15So you can pretty much do that from Chromebooks as well.
- 36:17It's kind of cool.
- 36:18That is really neat.
- 36:19So another thing that Carol touched on was the community.
- 36:22And so did Brev.
- 36:23It was basically, I came for the language.
- 36:24I stayed for the community.
- 36:26I think that's one of Python's superpowers.
- 36:28How about you?
- 36:29Oh, yeah.
- 36:30That's definitely what kept me going with Python is, you know, I have questions.
- 36:34I go ask and I ask them.
- 36:36And you don't usually get into a flame war.
- 36:38You usually get people saying, hey, this is how you do it.
- 36:41Or ask the question better.
- 36:43They're not like, that's a dumb question.
- 36:46It's actual real answers the time.
- 36:48And I really appreciate that they're so helpful.
- 36:52And they'll sometimes even give you some sample code to point you in the right direction.
- 36:55Yeah, that's really cool.
- 36:56Also, I think, you know, you go to the Python conferences and they just feel different than like a standard tech conference.
- 37:04They feel, I don't know, more representative of the general population.
- 37:07People seem quite open.
- 37:10And, you know, just the whole community seems to really carefully nurture that aspect more than other communities I've been part of.
- 37:17Well, what I really liked about it is that you'll sit down at a table with a bunch of strangers and you'll be surrounded by people who are just starting Python or people who are like working for major companies.
- 37:29Like I sat at a table with Apple and Pixar and major school, university.
- 37:35And I'm like, wow, I wasn't expecting to sit with these kind of people today.
- 37:38Yeah.
- 37:38You know, they're all friendly.
- 37:41Yeah, it's really, really cool.
- 37:42Definitely.
- 37:43So opposite of superpowers, maybe one of Python's weaknesses.
- 37:47And I've been on a bit of a rant about this as well lately.
- 37:50But Carol talks about, you know, we need a better story for mobile.
- 37:54And I'll throw desktop development in there as well.
- 37:58There's Kivi, which does let you create apps, but it's not the same experience as, you know, storyboards and Xcode stuff or, you know, IDE for Kotlin for Android, things like that.
- 38:12Yeah, Python really doesn't have much besides Kivi.
- 38:14And I think Toga is the other one that I've heard about, but haven't actually tried.
- 38:18But yeah, there's basically nothing besides those two and maybe some like underlying libraries that Kivi relies upon.
- 38:27And it would be awesome.
- 38:29Does that shock you a little bit?
- 38:30Yeah, it does.
- 38:31And it kind of bugs me that that happened.
- 38:33And I think Alex Martelli said that Guaido had tried to talk to the people at Google when he was working there to get them to include Python.
- 38:42Right, right, right.
- 38:43And Andy Rubin, yeah.
- 38:44And the guy was like, we don't need more than one language for Android.
- 38:47Java's amazing, so we'll do that.
- 38:49And I'm just so disappointed that Google decided to do that, you know.
- 38:52Yeah, that's really, it really is unfortunate.
- 38:55Anyway, it just seems strange to me that there's such a hot development space and there's just not really an answer for it.
- 39:04And I think it's a couple of things.
- 39:07I think it's a little bit of the myth of boiling the frog slowly in the hot water type of thing in that.
- 39:14Like it's even hard to just take your Python application and give it to anybody like say on Linux or Windows or whatever and go here, double click this.
- 39:24Right, that's not an easy thing in Python.
- 39:27And it should be, right?
- 39:29So if it's hard to even like move your code from one place to another, like to package it and compile it for another platform, it's just like, well, we haven't solved this like first step.
- 39:38So we're not going to go on the, you know, one mile journey to get to mobile.
- 39:43Yeah, that's something, and then we didn't really talk about it during the interview process, but that's something I think would be awesome in Python for is let's have that built into the library so we can actually export the application to any XE or Linux tarball or whatever you need to install on Linux, you know, because every flavor of Linux is different.
- 40:02That would be a game changer if you could just go Python space, you know, --build this folder with this entry point, and then you get a thing that you hand out and there's no dependency on Python, there's no dependency on the libraries, it's just packaged up, and it's ready to go.
- 40:17Like, I know there's PyInstaller and certain things, but there's just all those things feel 85, 90% done, but then there's this weird glitch on this one framework or on this one platform.
- 40:27You're like, why does this come on Windows show when I say no console?
- 40:31Like, it's just, you know, just stuff like that makes me crazy.
- 40:34Yeah, those things are pretty aggravating.
- 40:36I think the Windows executables that they create are probably better than, I've had better luck with that than I've had with any of the other platforms so far.
- 40:45But it's just, it seems so fundamental that, like, I want to build a program and give it to someone else.
- 40:51Like, why is that not one of the first things that is, like, super focused on, I want to build a program and distribute it, right?
- 40:59I know, it bugs the heck out of me when I first started learning Python was, how do I do this?
- 41:04And it took a while.
- 41:06It took a lot of trial and error to get it right.
- 41:07Right, and you can't do it.
- 41:08I mean, it has just lots of sharp edges, though.
- 41:11So, yeah, if I can put in a vote for what is a major feature in the next version of Python, whether that's 4 or 3.8 or 3.9 or whatever, like, make this packaging thing just absolutely a non-issue.
- 41:25A binary comes out, you hand it off, it runs and all the, you know.
- 41:29Maybe you've got to build up each platform.
- 41:30I don't care.
- 41:31That's fine.
- 41:32But something you can send out, right?
- 41:34Yeah, I totally agree with that.
- 41:36That would be wonderful.
- 41:37All right, two votes.
- 41:38I'm sure it's going to happen now.
- 41:40Fingers crossed, anyway.
- 41:41So, you already spoke about Glyph.
- 41:45Let's talk about Glyph Alipowitz.
- 41:47So, one of the things he talked about, and this was also touched on by Guido in the PyCascades keynote, which was in this past January, the transition of Python 2 to Python 3 as it was sort of managed by the core developers and the PSF and just generally.
- 42:08And I think the main takeaway was they didn't realize how popular the thing they had created was and how much code was already in place.
- 42:18So, basically, how much would have to be migrated?
- 42:20Yeah, there's a lot of legacy Python 2 code.
- 42:23I've been doing Python since, like, 2.4, I think.
- 42:27And Python 3 came out, like, two or three years after I started doing Python.
- 42:32And I've never worked in my 12 years of doing Python in a company that actually uses Python 3 regularly.
- 42:38Everything uses Python 2.
- 42:39So, what do you think about the 2020 end-of-life date?
- 42:43Do you think that's going to make a big difference for you guys?
- 42:45If I'm still at my company, I'm going to make sure we're already on 3.
- 42:48But there are a lot of companies where I can see where they're like, it's going to cost a lot of money.
- 42:53And we're just going to keep running this code until we have to for security reasons or some other monetary reason for change.
- 43:00I wonder how well-managed that's going to be versus how, like, headline-driven it's going to be.
- 43:06So, for example, I think the biggest distributed denial-of-service attack that's ever been launched was because a bunch of Memcached servers were left on the internet unprotected.
- 43:20And they had this, like, vulnerability where you could send one UDB packet at it.
- 43:25And it would basically dump the memory contents at, like, an address you pointed at.
- 43:30So, you could get, like, a 50,000 multiplier of, like, your bandwidth against, you know, there's just, like, thousands of these on the internet that somebody pointed at GitHub and went after.
- 43:39Somehow GitHub survived, actually.
- 43:41But anyway, if there's something like that and you're like, oh, you just do this to all the Python 2 things running and you own it.
- 43:48Or, you know, you look at Equifax or something like that, right?
- 43:51One of these really bad sort of headline-driven things.
- 43:54I mean, that would possibly get people's attention above the developer level.
- 43:58Yeah, I think that's what's going to be, you know, unless they can just, like, kind of sneak it in.
- 44:03A lot of developers are going to be stuck with Python 2 for a long time.
- 44:08And, you know, it's a good language, but they really need to move to Python 3 if they can.
- 44:12Yeah, absolutely.
- 44:13And increasingly, there's a lot of things that are inaccessible to Python 2 developers.
- 44:19You know, API Star, Django 2.
- 44:21There's just a bunch of things that are coming along that are only Python 3, which is an interesting twist because the story is to be told exactly in reverse why you stay on Python 2.
- 44:30Yeah, we're finally at the point where Python 3 is getting all tools and all the tooling, and it's not always getting backboarded to 2.7.
- 44:37So, you know, if you want to use the new cool stuff that the cool kids are using, you've got to go to Python 3 right now.
- 44:44Yeah, for sure.
- 44:46So, another thing that Glyph touched on was a little bit of a similar idea that you and I were just talking about with packaging.
- 44:53And said, like, one of his main thoughts of where he thinks Python should go is to make pip, to get away from using pip as a tool for installing apps for users.
- 45:04And also touched on just the GUI, like, there's not really any built-in way to create a Python GUI, be it mobile or be it desktop.
- 45:12So, I don't know what else to add to that, but we've kind of, you know, just one more voice.
- 45:17Maybe he's a third vote for us in this packaging story.
- 45:21Yeah, TK Enter is still kind of ugly, but I will say it has gotten a lot better than it was when I first started using it.
- 45:28Yeah, I've definitely seen a few examples recently, like, oh, that's actually not as bad as I remember it.
- 45:33But it doesn't feel like, wow, this is an amazing UI framework that I just can't wait to build my apps on.
- 45:39It seems like, well, it's not as, I guess I could live with that.
- 45:42And that's probably not where you want it to be.
- 45:44What's funny is they added a new library called TTK to it.
- 45:47And there was, like, no advertising, no nothing.
- 45:50So, I didn't even know it improved a lot.
- 45:52Yeah, I didn't either.
- 45:53And I don't think a lot of people realized that.
- 45:55Yeah, the only way I found out was I complained about it.
- 45:57And somebody said, hey, I made some pretty good-looking apps with it and sent me some GitHub repos.
- 46:01I'm like, those are good-looking apps, really?
- 46:02Oh, interesting.
- 46:03Another person you spoke to was Doug Hellman, who does the Python module of the week.
- 46:11And he's been doing that for 10 years.
- 46:14That's a pretty interesting series.
- 46:15His website is pretty good.
- 46:17I used to use it a lot for when I needed to look up something.
- 46:20Yep, it's definitely, definitely cool.
- 46:22So, you know, another thing, Doug mostly works on cloud and OpenStack and things like that.
- 46:27But, you know, just keeping with this theme, like, the main takeaway from your interview with him was that we need better packaging.
- 46:34Right?
- 46:35We still need another way.
- 46:36But his take was that this is not directly related to Python itself, but it'll get into all the tools, like set of tools, Twine, Wheel, Pip, Warehouse, and so on.
- 46:45Yeah, it would be really nice if we had a common base framework to just make all those tools work the same way.
- 46:54And we'd have a unified way of distributing and packaging our applications.
- 46:59Yeah, definitely.
- 47:00I could go, we could have an entire show on that.
- 47:03But, I don't know.
- 47:04I don't, I don't really like to complain without providing the answer.
- 47:09Like, at least a suggested, like, this is bad.
- 47:12Here's a possible solution.
- 47:14But, yeah, I think this, the packaging thing would really make a huge, huge difference.
- 47:18I was just going to say, I keep hearing good things about Briefcase, but I've not used it myself.
- 47:23So, that's something people could look at, I guess, or at least contribute to if they thought that would be helpful.
- 47:28Yeah, absolutely.
- 47:29I just, you know, it seems like something built in that you just know you have and it just works.
- 47:36I don't know.
- 47:37We need some advocates and the core developers to do that.
- 47:39Well, and that's why I said it's kind of like a boiling the frog problem.
- 47:43Like, as, by the time you get into, where, like, you're in a position you could make these kinds of changes, I feel a lot of people are like, well, we're kind of good enough.
- 47:52I've got a requirements.txt or, hey, didn't we just create pip file?
- 47:55Like, didn't that solve?
- 47:56I feel like the pain, by the time you get far enough into it, the pain is not high enough anymore.
- 48:01But if you go and you, like, teach a little one-week workshop at a high school and the kids say, well, how do I share this with my friends?
- 48:10Well, you can't share this with your friends.
- 48:12I'm sorry.
- 48:12Like, I mean, that's almost the answer.
- 48:14Not quite.
- 48:15But can you tell your friend to go, like, download Python from python.org, change the path, pip install the stuff, and then run?
- 48:23Like, that is a large step if that's, like, a 12-year-old kid, right?
- 48:26Yeah.
- 48:27And that just seems not amazing.
- 48:29Okay.
- 48:30So let's speak about amazing stuff, though.
- 48:32Another person that you interviewed that had tons of interesting things to say was Alex Martelli.
- 48:37Yeah.
- 48:38Alex was awesome.
- 48:39Yeah.
- 48:39He really mentioned the Stack Overflow thing that talked about Python's incredible growth.
- 48:46He said, the forecast is that Python will become the most popular programming language and one of the most active, with one of the most active developer groups behind it by early 2019.
- 48:57That's pretty awesome.
- 48:59Yeah.
- 48:59I've been amazed just looking at the statistics about Python over the last, like, two or three years and how it keeps skyrocketing higher and higher.
- 49:06And, you know, that brings back the data science part.
- 49:09I think that is driving a lot of that interest is we have a really big chunk of that now.
- 49:15And if everyone wanted to do machine learning and AI and neural networks, it just, use Python.
- 49:23It's easy.
- 49:23And when you need to speed it up, you can drop back down to, you know, a low-level language.
- 49:28Or Cython or PyPy or something like that.
- 49:30So one of the things that I haven't heard talked about, I haven't talked about it before, but if you look at that Stack Overflow article, the incredible growth of Python, they have some really cool graphs, right?
- 49:43And they show Python sort of just eclipsing Java and JavaScript.
- 49:48But then the predicted growth, like, the derivative is obviously much higher, right?
- 49:52But the other thing that I haven't heard anyone talk about is if you look at the Java curve and the JavaScript curve, they have huge, like, bi-yearly humps that are, like, many percent.
- 50:06And what I think those mean are those are the people taking the class at that time.
- 50:13So they go and they do a bunch of interaction with Java or JavaScript.
- 50:16And then their semester ends and it drops back down and then it humps back up.
- 50:20And you see these humps, like, twice a year every year.
- 50:23You don't see that in Python.
- 50:25Isn't that interesting?
- 50:26I mean, it accounts for, like, 5% or 10% of the traffic.
- 50:29And you look at Python.
- 50:31Python is a smooth curve.
- 50:33And it seems to me like people are made to take some of these courses voluntarily and voluntarily.
- 50:38They are part of their schooling.
- 50:39Whereas Python doesn't have these humps, which I think means, like, it's more genuinely adopted.
- 50:46I don't know.
- 50:47I may be reading too much into it.
- 50:48But I thought that was a pretty interesting thing.
- 50:50I could totally see that.
- 50:51I mean, once you've used Python, why would I use another language unless I have to?
- 50:56Okay.
- 50:56So let's see.
- 50:58I think one of the things you're kind of getting short on time here.
- 51:02But one of the things I want to talk about that Alex focused on was what I'm going to classify as Python as a competitive advantage.
- 51:11I guess there's a couple of things.
- 51:13He said he ends up talking to these big internet companies.
- 51:16And they seem to use Java or some other core language, Go maybe, I don't know, as their main language.
- 51:23But they're acquiring these other companies, right?
- 51:26Like, they're buying these little startups that are, you know, getting ahead and creating amazing things.
- 51:32He said a lot of them are buying these Python-based startups.
- 51:35And that's coming back in.
- 51:37And they're having to sort of absorb Python into them.
- 51:40But he said what's really interesting about that is an example with, say, YouTube.
- 51:46So before I read your book, I didn't know there was a thing called Google Video.
- 51:50Had you heard of that before?
- 51:51Yeah, I actually had.
- 51:52I used it briefly.
- 51:54Yeah.
- 51:54So Google Video was this thing that was a YouTube competitor or something to that effect, right?
- 52:00And Alex was at Google at the time.
- 52:03I think he still is.
- 52:04Anyway, he said Google Video kept losing the feature battle to this tiny startup just a few miles away.
- 52:11Each time this little startup unveiled a new successful feature that the customers liked a lot, our engineers would scramble to pick up something similar in a few months, right?
- 52:21And they said they were basically amazed that these 20 guys were outclassing hundreds of engineers at Google.
- 52:26And, of course, he said, well, the reason they were so productive was they were using Python and Google Video was using C++.
- 52:33And that's the thing that became YouTube.
- 52:36I've been trying to advocate in my current job that we might not be able to use Python in the embedded application side.
- 52:41But we could do so much prototyping and other things with Python to help us figure out what works and what doesn't work before we go to the embedded side.
- 52:50We could be so much more productive.
- 52:52We have so many more new features or products.
- 52:54And it's just a slow uphill battle when you have a lot of C++ people there.
- 52:59Well, and the people writing the embedded code are probably, you know, they've probably been doing C++ for many, many years.
- 53:05And, like, why would they change?
- 53:06Et cetera, et cetera, right?
- 53:07Yeah.
- 53:08Have you guys looked at MicroPython?
- 53:09Is that relevant to you?
- 53:11I don't know.
- 53:11It might be relevant to module side.
- 53:14I don't think it would be for our actual main bread and butter display because that thing has to run really, really fast with the number of operations it works with.
- 53:23Okay.
- 53:24Interesting.
- 53:24All right.
- 53:25I think there's still so many more things we could cover.
- 53:28I'm going to do one more, which I think is a really interesting and positive way to leave it.
- 53:33So you also interviewed Barry Warsaw, who's been around the Python space for a long time.
- 53:38And one of the things that he talked about was Python's strength.
- 53:41And he said, I think one of the real strengths of Python as a language is that it scales.
- 53:48And he's not talking about, like, well, on this Linux server and I add this many requests to it, it gets, like, this sort of scale curve or whatever.
- 53:56He says, I'm talking about the human scale.
- 54:00So, for example, you can have one person write a little script on their laptop and solve a problem.
- 54:04And Python's good for that.
- 54:05You can have a little startup or an open source project with 10 to 15 people working on it, and that's great.
- 54:11And you can have hundreds of people working on large projects, and it's still great.
- 54:15And it's sort of this idea of the elasticity of the architecture needed to build Python apps, right?
- 54:21They can start really small, but they can stretch without breaking the language to things like YouTube.
- 54:26Yeah.
- 54:27That's something I've always liked about Python is you can start small and keep adding more and more to it.
- 54:34And while there's a little bit of hesitancy on my part for the new typing module, I can see that that would be really helpful for people who are used to statically typed languages and how that might help them get into the Python sphere and, you know, get used to the language quickly.
- 54:51We just have to be careful that they don't bring too many of their idioms into the Python part.
- 54:56Yeah, it's going to be an interesting marriage.
- 54:58You know, the more I play with the type annotation stuff, the more I like it.
- 55:02But I find I don't cover everything with it.
- 55:04I cover just like a certain few functions, and then the types sort of flow to the rest of it.
- 55:10And I'm pretty positive on it these days.
- 55:13Yeah.
- 55:13I think it has some downs.
- 55:14But yeah, I agree.
- 55:15Yeah, for sure.
- 55:16So I guess we'll leave it there.
- 55:18You know, I found your book to be really interesting.
- 55:20There's a lot of folks we didn't get to cover, and there's just a bunch of little insights like this.
- 55:26So hopefully people will check it out.
- 55:28Where can they find your book?
- 55:29It's on the PAC site, I'm sure.
- 55:30It's on Amazon, things like that.
- 55:32Yeah, it's on PAC publishing.
- 55:33And yeah, and then Amazon.
- 55:35Yep, yep.
- 55:36All right.
- 55:36So well done.
- 55:37I thought it was a good book, and I definitely enjoyed the insights that you got out of it.
- 55:41Well, thank you.
- 55:42I'm glad you enjoyed it.
- 55:43Yeah.
- 55:43How long it takes to write?
- 55:44I did the interviews over about nine months, and then you had to do editing after that.
- 55:49So we'll call it around 12, just to kind of even it out, even though it didn't really take quite 12.
- 55:55It's a pretty serious project, though.
- 55:57It took some time.
- 55:58Yeah, it took a long time.
- 55:59Yeah, cool.
- 56:00Well, hopefully you're proud of it.
- 56:02I think it came out good.
- 56:03Thank you.
- 56:03Yeah, you're welcome.
- 56:04I think we have time for the final two questions.
- 56:07So if you're going to write some Python code, what editor do you open up?
- 56:11I usually use Wingware's IDE.
- 56:13I prefer that, because I found the debugger to be the most useful for live debugging.
- 56:19But I also use PyCharm, because we have to use it at work for the automated test stuff.
- 56:25And I can see why people like it.
- 56:26So I'm a little torn at this point.
- 56:29Which is my favorite.
- 56:30Do you want some kind of offspring of the two?
- 56:33Yeah, pretty much.
- 56:34Yeah.
- 56:34Someday.
- 56:36Who knows?
- 56:36Very cool.
- 56:37Yeah, I definitely am a fan of those as well.
- 56:40And then notable PyPI package or packages.
- 56:44So for me, I've been using Report Lab a lot because I'm writing a book on it.
- 56:48But I also used it a lot in my previous job.
- 56:50And it's just incredible what you can create with Report Lab.
- 56:54Pretty much any document you see, or even this book, the Python interview book, I could probably
- 56:58create with Report Lab with a little bit of time.
- 57:01Because you can just create templates and it'll whip through that and generate whatever you
- 57:05want.
- 57:06That's awesome.
- 57:06Yeah, I'm definitely checking it out.
- 57:08Yeah, that's cool.
- 57:08I like wxPython, which I've already mentioned.
- 57:11It's great for creating UIs across all three major platforms with very little or no changes
- 57:17across platforms.
- 57:18I've written a code that works on all three without having to do anything running the code.
- 57:23I definitely think it has the best overall experience for the cross-platform Python-based apps, right?
- 57:31It looks like it belongs on those platforms and it feels modern and nice.
- 57:35Yeah, it works really, really well, in my opinion.
- 57:38Very cool.
- 57:39All right, Mike.
- 57:40Well, thank you so much for taking the time and also for doing all these interviews with
- 57:44everyone.
- 57:44It was great to chat with you.
- 57:46It was good to chat with you, too.
- 57:47Thanks for having me.
- 57:48This has been another episode of Talk Python To Me.
- 57:52Our guest has been Mike Driscoll, and this episode has been brought to you by Linode and
- 57:58us over at Talk Python Training.
- 57:59Linode is bulletproof hosting for whatever you're building with Python.
- 58:03Get four months free at talkpython.fm/Linode.
- 58:08That's L-I-N-O-D-E.
- 58:09Want to level up your Python?
- 58:11If you're just getting started, try my Python jumpstart by building 10 apps or our brand new
- 58:17100 days of code in Python.
- 58:19And if you're interested in more than one course, be sure to check out the Everything
- 58:22bundle.
- 58:22It's like a subscription that never expires.
- 58:25Be sure to subscribe to the show.
- 58:27Open your favorite podcatcher and search for Python.
- 58:29We should be right at the top.
- 58:30You can also find the iTunes feed at /itunes, Google Play feed at /play, and direct
- 58:36RSS feed at /rss on talkpython.fm.
- 58:39This is your host, Michael Kennedy.
- 58:41Thanks so much for listening.
- 58:43I really appreciate it.
- 58:44Now get out there and write some Python code.
- 58:46We'll see you next time.
- 58:46Bye.
- 58:46Bye.
- 58:46Bye.
- 58:46Bye.
- 58:46Bye.
- 58:47Bye.
- 58:47Bye.
- 58:47Bye.
- 58:47Bye.
- 58:47Bye.
- 58:47Bye.
- 58:47Bye.
- 58:48Bye.
- 58:48Bye.
- 58:48Bye.
- 58:48Bye.
- 58:48Bye.
- 58:49Bye.
- 58:49Bye.
- 58:49Bye.
- 58:49Bye.
- 58:49Bye.
- 58:49Bye.
- 58:49Bye.
- 58:49Bye.
- 58:49Bye.
- 58:50Bye.
- 58:50Bye.
- 58:50Bye.
- 58:50Bye.
- 58:51Bye.
- 58:51Bye.
- 58:51Bye.
- 58:51Bye.
- 58:51Bye.
- 58:51Bye.
- 58:51Bye.
- 58:51Bye.
- 58:51Bye.
- 58:52Bye.
- 58:53Bye.
- 58:53Bye.
- 58:54Bye.
- 58:55Bye.
- 58:55Bye.
- 58:56Bye.
- 58:56Bye.
- 58:56Bye.
- 58:56Bye.
- 58:56Bye.
- 58:57Bye.
- 58:57Bye.
- 58:57Bye.
- 58:57Bye.
- 58:57Bye.
- 58:58Bye.
- 58:59Bye.
- 58:59Bye.
- 59:00Bye.
- 59:01Bye.
- 59:01Bye.
- 59:01Bye.
- 59:01Bye.
- 59:01Bye.
- 59:01Bye.
- 59:02Bye.
- 59:02Bye.
- 59:03Bye.
- 59:03you
- 59:03you
- 59:04you
- 59:04Thank you.
- 59:06Thank you.