Brought to you by Michael and Brian - take a Talk Python course or get Brian's pytest book


Transcript #98: Python-Electron as a Python GUI

Return to episode page view on github
Recorded on Friday, Oct 5, 2018.

00:00 Hello, and welcome to Python Bytes, where we deliver Python news and headlines directly to your earbuds.

00:04 This is episode 98, recorded October 4th, 2018. I'm Michael Kennedy.

00:09 And I'm Brian Okken.

00:10 Hey, Brian. How are you doing?

00:11 I'm doing great.

00:12 Excellent, excellent. Happy to be back with you for another week's worth of news.

00:16 Yeah, it's good to talk to you every week.

00:18 Absolutely. So I also want to say thank you to DigitalOcean for making this possible.

00:22 They're one of the biggest supporters of the show. So thank you to DigitalOcean.

00:27 Check them out at pythonbytes.fm/DigitalOcean. Get $100 credit for new users.

00:31 More about that later. They have some really cool stuff.

00:33 I was just listening to It's All About the Pendiums.

00:36 Do you remember that song from Weird Al Yankovic?

00:39 No.

00:40 Oh, my gosh.

00:41 Must be missed that.

00:41 We might have to put it on the show.

00:42 Oh, it's like this funny, you know, Weird Al Yankovic type song.

00:46 It just popped up for some reason.

00:48 And from the 90s.

00:50 And it's all about like tough rappers.

00:54 And these rappers who are like, but they're like programmers.

00:56 So they're like insulting each other, right?

00:58 Like how slow their computer is.

01:00 And one of the insults is my flat screen monitor is 40 inches wide.

01:06 And yours says Etch-A-Sketch on the side.

01:09 That's funny.

01:13 That's awesome, right?

01:15 So here we are, 20 years past then or whatever.

01:19 And we're still talking about Etch-A-Sketch.

01:21 Yeah, definitely.

01:22 So, okay.

01:23 So this article is about Etch-A-Sketch.

01:25 And it's called Make Etch-A-Sketch Art with Python.

01:28 And it's fabulous.

01:29 So background.

01:31 It showed up in Toy Story with like the...

01:34 And it's shown up other places of like really, really fast Etch-A-Sketch drawings happening.

01:38 And I'm sure a lot of people, other people have figured this out too or tried to think,

01:43 man, if I could have, I could hook up some motors to those, the knobs and somehow get my computer to do all of this for me.

01:50 That would be cool.

01:51 So that's what this is.

01:53 It's this great article about how this person put together some motors, a Raspberry Pi and some software.

02:01 And a little bit of woodworking to get to keep everything all in one place and got it to draw pictures.

02:08 It's so cool because it's one of those, it seems like a fun project you could do with your kids or something.

02:13 And also it discusses some things like how do you get a picture into line format?

02:19 And he uses something called canny edge detection.

02:23 And then if you've got a line drawing and pixels, how do you translate that into like motor control?

02:29 And you have to have a path.

02:31 So he uses a library called networks.

02:33 It's a Python library to do path, coming up with nice paths.

02:39 And then he has some results there.

02:40 He shows some pictures where the starting picture and then the end result of drawing.

02:44 And it's just fun.

02:46 You know, what I like about this is it's got this cool IoT aspect with the Raspberry Pis and the motors.

02:51 And it's not just a software project.

02:54 It seems like it'd be something really fun for people to explore if they're getting into programming.

02:59 And then it also has like a really advanced thing.

03:01 Like you could do a really cool like booth or something where you put up an Etch-a-Sketch.

03:06 And when anybody walks up, it could do like face detection and like draw them.

03:11 Like you could do all sorts of fun stuff with like the, you know, PyTorch, machine learning and all kinds of fun stuff.

03:16 So yeah, this is a great one for people looking for cool projects.

03:19 Yeah.

03:19 If you could get that booth thing set up so that we have it ready for PyCon, that would be great.

03:24 Yeah.

03:24 I'm working on it.

03:25 We're almost there.

03:26 So one of the things I really like from PyCon 2017 was the keynote by Instagram.

03:33 How they almost magically migrated their entire code to upgrade Django, completely switch from Python 2 to Python 3.

03:41 And they did all of that without branching continuously in production, which was awesome, right?

03:48 Yeah.

03:48 That was an incredible talk.

03:49 Yeah.

03:50 And so certainly that was one of the major users of Python.

03:53 But if you look at desktop applications, it may be that Dropbox is actually one of the most popular and quite large desktop apps in Python that there is.

04:04 I would venture to say that's true.

04:05 Yeah.

04:06 Yeah.

04:06 So the Python, they have over a million lines of code in Python, a million lines of Python.

04:13 And it's installed, I don't know, hundreds of thousands of desktops at least, right?

04:18 So the big news is Python has had a really big gravitational pull around Dropbox.

04:24 We've had some of the core developers working there.

04:26 Obviously, Guido Van Rossum works there.

04:28 That's a big deal.

04:29 So the fact that they were on Python 2, it's kind of a weird juxtaposition of like these two worlds, right?

04:36 Yeah.

04:37 So what's really cool is they have now migrated to Python 3.

04:41 And it's not just like they've rolled out a web app on Python 3 where they control the servers, but they have done some really incredible engineering to allow them to ship Python 3 into these more modern operating systems, enabling interesting things like kernel level, smart sync, and all sorts of crazy stuff that's happening.

05:00 So that's what we got this week.

05:03 That's awesome, huh?

05:03 Yeah.

05:04 That's really exciting, actually.

05:05 It is exciting.

05:06 And what's great about their write-up is it talks a whole lot about the challenges that they faced, why they wanted to switch, all of those kinds of things.

05:15 So they said they've relied on Python 2 for many years, most recently 2.7.

05:20 And they actually began this transformation from 2 to 3 in 2015.

05:24 But if you go through and read that article, you'll see like a lot of creation of technology had to be done in order to make this switch.

05:31 So in their previous version, their Python 2 world, they were using freezers.

05:36 So like Py2App, Py2Exe, I think it was BB Freeze for Linux.

05:42 And they were also exploring PyInstaller, but they ended up not using PyInstaller for some reason.

05:47 But they were using those types of things to package up Python.

05:50 Yeah.

05:51 And now what they're doing is they actually had to build native apps.

05:55 So, you know, using Visual Studio for Windows, Xcode for macOS to build like .app files.

06:01 And what they're actually doing is they're hosting the Python runtime in their native apps to bootstrap up their apps in order to get the deployment story working better.

06:09 That makes sense, but that doesn't sound easy.

06:12 No, it doesn't.

06:13 They actually built a way so that they could host either Python 2 or Python 3 and flip a flag so that they could actually do that concurrently, right?

06:22 So they built the Python 2 version and they started shipping that out and got that working.

06:26 And then they slowly, for different sets of users, started turning on the Python 3 version on the same type of code there.

06:33 Wow, that's cool.

06:34 But they talk about why they had to do it.

06:36 So, for example, SmartSync, which I actually just bought from Dropbox recently, is pretty awesome.

06:41 So I've got like almost a terabyte of stuff in Dropbox with all the core stuff and whatnot, the videos and so on.

06:47 And SmartSync will like let you go to your Finder or your Explorer and show you all of your files.

06:54 And some of them are in your hard drive and some of them are in the cloud.

06:56 And you can just like double click them and they just open, you know, or open them some other way.

07:01 And they like Dropbox hooks into that and says, oh, hold on, we got to download that.

07:05 Now you can have it, right?

07:06 So it's really great for like saving drive space and whatnot.

07:10 But you can't do that.

07:11 You can't install that kernel type of stuff with Python.

07:14 So they needed their native apps anyway.

07:16 Okay.

07:16 They also talked about why they might switch to Python 3.

07:19 They said there's two major features that we really care about.

07:23 And there's some pains that we're trying to get away from.

07:27 The exciting features were they're really interested in type annotations.

07:30 Remember, mypy is coming out of Dropbox.

07:34 Gito Van Rassam is working on that.

07:35 And mypyC that takes type annotated Python code and compiles it to C extensions also is coming from Dropbox.

07:42 So they're really doing a lot with these type annotations, which is interesting.

07:45 And they're also really interested in async and await.

07:47 Apparently that helps a lot for what they're doing.

07:50 Yeah.

07:51 Asynchronous copying of files.

07:52 You'd think.

07:53 You would think a lot of IO happens on the network and on the drive.

07:56 Definitely.

07:57 So that was the positive.

07:58 The other problem is they said that a lot of the tool chains they're using is really old and crusty.

08:04 Like, for example, they had to have a separate fork of CPython so they could compile it with a modern C compiler, like Visual Studio 2013.

08:13 So there's something super old and not supported on Windows.

08:16 And they're like, this is just not cool.

08:18 Like, why are we maintaining our own fork of the CPython just so we can compile it?

08:23 Yeah.

08:24 Anyway, there's a lot of weird stuff they had to get away from with Python too, right?

08:27 And that's not getting better.

08:28 Yeah.

08:30 So they talked about all this stuff, a lot of details.

08:32 And they also said, we're planning a bunch of future posts.

08:35 So we're going to talk about how they report crashes on Windows and macOS and how they use that to debug both native and Python code.

08:42 That's one of their posts coming.

08:43 That's cool.

08:44 Yeah.

08:45 How they maintain a hybrid Python 2 and 3 syntax and what tools help them do that.

08:50 Another post.

08:51 And then it's sort of a war stories, the very best bugs and stories from their Python 3 migration.

08:57 So I think we have three topics picked for the next couple of Python bytes.

09:01 Yeah.

09:02 If they come out in time.

09:03 Yeah.

09:04 Sure.

09:04 Yeah.

09:04 For sure.

09:05 Well, maybe they'll even do a presentation about this at PyCon.

09:08 Yeah.

09:08 Let's hope.

09:09 Let's hope.

09:09 Are you speaking of PyCon?

09:11 Are you going to submit something?

09:11 I probably am.

09:12 Yeah.

09:12 Yeah.

09:13 I haven't yet, but there's time.

09:15 Sorry.

09:15 I'm going to submit something and I'll just put your name on it.

09:17 That'll help.

09:18 Yeah.

09:20 If anybody else wants to do that too, just submit something and put my name on it and I'll just, you

09:24 know, I'll wing it once I get there.

09:26 Well, ours might be a joint one.

09:27 Oh, that makes more sense.

09:29 Yeah.

09:29 Right.

09:30 But where would we get the resources?

09:33 You lined it up for me.

09:35 Thanks.

09:35 So I wanted to talk about some resources for PyCon and it's not just, these are targeted at PyCon,

09:43 but it really is really any conference, technical conference, I think.

09:46 And a lot of the regional Python conferences have similar things.

09:50 So we're putting a bunch of links in the show notes.

09:52 We've got, they have a nice speaker page.

09:54 That's a kind of a top levels, what it's like to speak there and stuff.

09:58 Actually last year being my first time talking at PyCon, I think that I would encourage really

10:03 anybody to try it because it's a fun experience.

10:07 So take a look at the speaking page.

10:09 And then there's a proposal tips.

10:11 So the first thing you got to do is you submit a proposal and that can be nerve wracking,

10:15 but it really shouldn't be.

10:17 So there's a few resources I'd like to poke people to.

10:19 There's a talk proposal resource page on the PyCon 2019 site.

10:26 And in there, there's also some links to some external articles and stuff.

10:31 And then including some people who have shared past proposals, whether, and even failed ones

10:37 and why they think they failed.

10:38 And then Marietta, I don't know her last name, but she's the core developer.

10:43 And she recently published her set of proposals, the ones that have been accepted.

10:49 And I really like them.

10:51 Actually, I took, look, look through those.

10:52 And some of these are really nice, clean examples and make me think that maybe it doesn't have

10:57 to be as complicated as I thought it was.

10:59 So there's those.

11:00 It's nice.

11:01 Yeah, that's really helpful.

11:02 And, you know, like you said, this is helpful to however you want to get started.

11:06 And you don't have to get started at the top level PyCon.

11:09 You could always do something local.

11:10 Yeah.

11:11 And then one of the things I wanted to bring up also is before attending PyCon, I didn't

11:17 know what poster session was.

11:18 I'd seen it a lot, but I didn't really know what it was.

11:21 Or I'd seen it mentioned.

11:22 And a poster session is, don't dismiss this.

11:26 This is a pretty cool thing.

11:27 The PyBytes guys did a poster.

11:29 And what happens is the, in the expo area where all the, like where we were and a lot of the

11:37 companies are, that's really cool, but it isn't on Sunday.

11:40 Those people get out of there.

11:42 And on Sunday, that area is, there's, you know, there's a job fair thing going on, but

11:47 there's also these poster sessions where people have these little tight, these areas and they

11:52 get a few feet of backspace and they get their poster put up and a little table for them.

11:57 And so the people that are there to talk about it, if you have like a project or something

12:01 you want to talk about, that's a good, a good way to get your feet wet and not, you don't

12:06 actually have to present a talk, but you can talk with people about whatever you're passionate

12:09 about.

12:10 Yeah.

12:10 And you can meet some pretty interesting people that way as well.

12:12 And you also give a link, a shout out to Jason Wadier's blog post.

12:19 You don't need to be a pro at Python to crack the code of PyCon, which is great.

12:23 And that's a really good article about how somebody new to Python went to PyCon and still

12:29 got a lot out of it, even though they weren't an expert.

12:32 One of the things he mentions is that the expo hall, everybody there is trying to sell you

12:37 something.

12:37 I just wanted to say that we're not, we hang out there and we just want to talk with people

12:42 and be there so that people can come up and say, Hey.

12:44 Yeah, that's right.

12:46 It's a great place for us to meet people.

12:47 Yeah.

12:48 We typically lose our voice by the end of the second day.

12:50 Yeah.

12:51 It was a ton of fun.

12:52 Yeah.

12:52 It's great.

12:53 Yeah.

12:54 So one of the reasons that we get to go there is because of people support our show and sponsor

13:01 our show, right?

13:01 Like DigitalOcean.

13:02 And I just want to call out a cool feature that I saw them recently talking about.

13:07 And I think people might find actually super useful.

13:10 So when you create, normally you create a virtual machine or some form of infrastructure as a service

13:15 in the cloud, you get like a little dropdown, like, well, what do you want?

13:18 Ubuntu?

13:18 You want, you maybe have it pre-configured for this type of service.

13:22 Sure.

13:22 But with DigitalOcean, they have this thing called bring your custom image to DigitalOcean.

13:27 So you can spin up a virtual machine and get it exactly the way you like it to run perfectly

13:33 set up on your system with your company.

13:36 And then you can just upload that and say, now when I create a new thing on DigitalOcean,

13:40 use that.

13:41 Oh, wow.

13:42 Isn't that cool?

13:42 Yeah.

13:42 So all you got to do is make the image, upload it, and then you can just log in and say, you

13:46 know, I'd like to choose from my custom image and hit start and off it goes.

13:49 So that's, that's pretty cool.

13:51 There are a few simple restrictions on what has to be installed.

13:54 So like they can manage the virtual machine from the outside, but you know, it doesn't

13:58 seem very restrictive to me.

13:59 Anyway, it looks like a great thing.

14:01 You can check it out on their blog, but if you want to get started and get the credit,

14:03 Python by set of M slash DigitalOcean.

14:05 Nice.

14:06 Yep.

14:07 This may be a little bit repetitive, but Brian, have we talked about GUIs?

14:09 Yeah.

14:11 Yeah, we have.

14:13 Actually, this one I want to share with you because I think it's actually super awesome.

14:18 I think we started this whole path long ago when I said, I really just would like, what

14:24 did I call it?

14:24 Like proton.

14:25 I called it proton.

14:26 I said, I want electron JS for Python.

14:29 I said, we should call it proton as well because of the P.

14:32 Someone has come up with a great way to use electron, which is electron JS.

14:38 It's like a Chrome and node type thing that stuff like GitHub's Atom editor, Visual Studio

14:44 Code, Slack, all those things are built upon.

14:47 Those are nice looking systems, right?

14:49 You write HTML, you can use cool JavaScript stuff on the front end.

14:53 And then, but on the back end, you got to do node and JavaScript.

14:56 Yeah.

14:56 I don't want to do that.

14:57 Well, there's things you miss out on.

14:58 Like what if you want to do something with machine learning?

15:02 Like JavaScript doesn't have good machine learning tools to run locally, but if you had Python,

15:06 you could use like GPU accelerated local stuff.

15:08 That would be awesome.

15:09 So it's not called proton, but I will point you at something called electron Python.

15:15 Okay.

15:15 It's basically the same thing without the name.

15:18 So what it is, is it's someone has taken electron.

15:21 Well, it's not even a new project in that sense.

15:24 It's more of a way of using two different projects.

15:27 So take electron JS and take Python.

15:30 And on Python, there's a thing called zero RPC, which is like a raw sockets communication layer instead of HTTP.

15:39 Okay.

15:40 So this really simple local communication layer, use that as a server.

15:44 And then use electron to just show your app with your JavaScript and HTML.

15:50 And instead of talking through electron to node, you talk through electron, just more directly over to your Python code.

15:58 So it's awesome.

15:59 You get like exactly the same thing that you're building, say, Visual Studio Code with.

16:04 You could do that, but have Python as the implementation on the backend.

16:08 And if you need to pip install anything, you do it.

16:10 It gives you like native access.

16:12 So native menus, notifications, automatically update your app, all that kind of stuff.

16:17 It's pretty awesome.

16:17 That is cool.

16:18 Yeah.

16:19 That's really cool.

16:19 Right.

16:19 The question becomes though, still like, how do I get that to somebody?

16:24 Right.

16:25 Great.

16:25 So I have this, this, Reeb Goldbergian contraption that I've created of like, Chrome, a JavaScript node and this Python code, which then also depends upon Python, everything you pip installed, right?

16:38 Like deployment can be a challenge.

16:39 So one of our listeners, Andy Boca sent us a really nice message and wrote a super informative blog post of building a deployable Python electron app.

16:50 Takes you through all the steps of how he packaged up Python, his dependencies, how he created it for macOS and windows, all sorts of stuff.

16:59 Yeah.

17:00 That's fun.

17:01 Actually, that's pretty cool.

17:02 But with the code available, so you can try this out and follow along.

17:06 Yeah.

17:07 It's got the code and all sorts of stuff.

17:08 So it's a pretty good working example.

17:11 If you would like to try to create this and use this.

17:13 And if people do create an app with this, please, you know, put a comment on the show notes.

17:17 We'd love to see it or shoot us a message somehow.

17:18 Yeah.

17:19 Yeah.

17:19 There's a lot of projects I want to try to do with something like this.

17:23 So yeah.

17:24 Neat.

17:24 Yeah.

17:25 So I'll leave you with one final thing.

17:26 Like right.

17:26 He goes through this long process of here's how you run this script and then that script and then bundle this together.

17:31 You know, use PyInstaller and then use NPM package or something to like suck in the PyInstaller.

17:37 And there's like a lot of stuff going on.

17:39 So he ends the deployment post saying, and somebody please wrap Electron Python into an IDE so that in the future, all we have to do is click a build button like we could 20 years ago.

17:49 Yeah.

17:52 Yeah.

17:52 Nice.

17:52 Yeah.

17:52 Yeah.

17:53 Yeah.

17:53 So I guess it's doable now, but it's still a question of, is this really easier than using like QT or something like that?

18:02 No.

18:03 Well, he talks a lot about that and he says, look, if your choice is to use QT or say WX Python or TK Enter and all of those, maybe with slight exception of QT, there's really like one or two people who are working on it part time.

18:18 And when you use Electron using Chrome and all the JavaScript front end frameworks, you might want to select, right?

18:25 Vue JS.

18:26 And you have Google and all the web developers in the world basically pushing that UI platform forward.

18:32 Okay.

18:33 So, you know, there's that.

18:34 So that's, I mean, that was the argument of the, of, of what the two guys who are building this.

18:40 You can either take that as a good argument or not, but that's what they were saying.

18:43 Yeah.

18:44 And now that it's doable, it'll get easier as time goes on and people add to it.

18:49 So.

18:49 All right.

18:50 Come on, PyCharm folks.

18:51 Give us that build button.

18:52 Give us the build button.

18:55 Give us the build button.

18:56 We don't want to know the internals.

18:58 Come on.

18:58 All right.

18:59 So probably enough on that, but that's a, that's actually one of the more promising ones.

19:02 And I'm still, I might give it the nickname Proton.

19:05 I don't know.

19:06 Yeah.

19:07 We should just tell them you can use that if you want.

19:09 Yep.

19:10 They can have it.

19:11 Awesome.

19:11 All right.

19:12 So what's our next one?

19:13 I just wanted to give a shout out to Pluggy.

19:15 If anybody doesn't know that I kind of am a fan of pytest.

19:18 Really?

19:19 Yeah.

19:20 And part of pytest.

19:23 So one of the things that pytest, pytest actually grew out of the Py project.

19:26 Another offshoot is Pluggy.

19:28 So there's a ton of pytest plugins that you can add on.

19:31 And I use, I use quite a few of them.

19:33 And the way these plugins work is, is through this plugin system.

19:37 And it's a, it's a plugin management and hook system.

19:40 There's often a problem.

19:42 If you've got an application that has a lot of possible customizations for other people to do,

19:47 but how, you know, you want to be able to provide plugin or hook capabilities, but you don't want to,

19:53 you know, expose too much internals.

19:55 And you also want to like isolate this API, this interface so that you know that you can do refactoring and rewriting stuff and you're not going to break plugins.

20:05 And plugins, an option.

20:06 And it's, I think it's a really good, solid option.

20:09 I have noticed that a few other projects have used this.

20:12 The, I don't have a list of those, but it's a, I don't think we've covered it before.

20:17 And if we have my apologies, but it's kind of neat.

20:20 I don't think so.

20:21 And my little side project of cards, a lot of people said, well, if we're doing like task management,

20:26 there's going to be extra little things.

20:28 People want maybe a different list of things.

20:30 You maybe not an owner, but you maybe need priority and maybe time estimates should be in points versus hours or things like that.

20:38 A plugin system might be good.

20:39 So I'm actually thinking about trying to put pluggy into this little, little side project of mine.

20:45 So.

20:45 Oh yeah, that's really cool.

20:46 Yeah.

20:47 This is used by pytest, by Tox, by DevPy.

20:50 So certainly it's getting some real world testing.

20:52 That's great.

20:53 It's, you know, I like these plugins as an idea of saying, I would like to let people change how this works without just letting them actually change the project.

21:01 Yeah.

21:01 Yeah.

21:01 That's cool.

21:02 All right.

21:03 Are you ready for something scary?

21:04 Like actually truly scary?

21:06 No, but let's talk about it anyway.

21:09 All right.

21:10 This was said over by Eduardo or Jenna.

21:12 This is on Bloomberg.

21:14 So on, Bloomberg.com.

21:17 So it gives it's Bloomberg business week.

21:20 It's a pretty serious article and it's, it's pretty deep reporting for something that has happened.

21:24 And it's called the big hack, how China used a tiny chip to infiltrate U S companies and other companies.

21:31 But they're thinking they were aiming them actually at U S companies and defense contractors and stuff like that.

21:37 Oh, creepy.

21:38 So tell me more.

21:39 All right.

21:40 So first of all, when they say a tiny chip, I don't know, I don't know what you guys are visualizing, but if you hold up, say a U S.

21:50 Penny or like a penny or like a euro cent and you look at the lettering on there, the chip was the size of one of the letters.

21:59 Like, so where it says the year that penny was printed, it's like the size of like the two.

22:05 And they, they decorated as like, a different type of component that goes onto the chip.

22:10 So this is, it's really a long article.

22:13 Like I said, quite deep reporting and says, this was an attack by Chinese spies that reached almost 30 U S companies.

22:19 How they know that it was 30 and not 37 or something is actually really interesting.

22:23 including Amazon and Apple by compromising America's technology supply chain.

22:28 So what happened was they found out that there was some spies in the Chinese government that threatened the subcontractor of the subcontractor of a company that made motherboards for many data center servers.

22:43 Yeah.

22:45 And they said, well, you have a couple of choices.

22:47 One, we can bribe you to install these little tiny chips, or we can threaten you with inspections of your factory.

22:54 If you don't install these chips and keep it quiet.

22:57 And pretty much they found out that some of these subcontractors were like, well, we want to keep our business.

23:02 So chips go in.

23:03 Jeez.

23:04 Yeah.

23:04 And so this all started when Amazon went to acquire actually a Portland based company called elemental technologies, which basically helped with like streaming and video compression.

23:13 Yeah.

23:13 And as part of the, the purchase process, I said, well, let's do some due diligence on you.

23:19 And they actually sent off the server hardware that they were using off to some other company.

23:24 I think it was in Canada or somewhere.

23:25 And they said there was a nested on the servers, motherboards.

23:29 The testers found a microchip, not much bigger than a grain of rice.

23:33 That wasn't part of the original motherboards design.

23:36 Like, I don't even know how they found that.

23:37 Right.

23:37 Like that's insane.

23:39 And so then they found out that these motherboards were used by the Department of Defense and CIA drones and Navy warships and Apple and Amazon and all sorts of places.

23:50 And they're like, whoa, what's going on here?

23:52 So they did a bunch of like a spy on spy stuff.

23:56 And they found out kind of like what I told you.

23:58 And they realized that these chips were basically opening back doors in the network of all of these servers, which would then go download bigger bits of code would actually take them over and you could just log into them.

24:11 But they were interacting with these other servers somewhere on the internet.

24:14 So they hacked those servers and they figured out that 30 companies' machines were interacting with that server.

24:19 And that's how the number is 30.

24:20 Wow.

24:21 Okay.

24:21 Anyway, the whole supply side chain thing is pretty scary.

24:25 But this is not technically a software topic.

24:28 But, you know, I think it's something that we in the technology industry need to just be aware of because this is pretty crazy.

24:35 Right.

24:35 And there's no software that will tell you whether or not this is a problem.

24:38 Right.

24:38 Because this is at the chip level.

24:40 Yeah.

24:40 Geez.

24:42 Anyway, there, let's leave it with that positive note.

24:43 Have a nice day, everyone.

24:47 Have a good day.

24:49 Apparently, the 30 companies who had their servers interacting back with the hacker controller, command and control servers have been notified silently.

25:00 Yeah.

25:00 Yeah.

25:01 But anyway, there's a bunch of inside reporting and stuff.

25:04 It's quite interesting.

25:05 So check that out.

25:06 Well, that's it for our official items.

25:08 Anything else you want to share, Brian?

25:09 No, I just want to rave about your new course.

25:11 Oh, thank you.

25:12 So the new course is going really well.

25:14 So I, you know, the async course that talks about asyncio, async and await, multiprocessing, all that stuff.

25:22 It needed to exist.

25:23 It needed to exist.

25:23 And I'm so happy I built it.

25:24 Yeah.

25:24 So what I wanted to bring up is I know async is hot because of a lot of people thinking about the new async stuff that came into the more recent Python 3s.

25:36 But it's not just that.

25:37 So one of the things I like about the course is you do talk about the new asyncio and AIO HTTP.

25:45 Yeah, those.

25:45 But you also, it isn't just that.

25:48 It's also things like if you are concerned about that, you're probably concerned about things like I just want to make stuff run faster.

25:55 And so there's other options to like multi-threading and multi-processing and when and how to use different ones and kind of how to decide that.

26:04 And then even if you want to make it faster, there's things like I think, do you cover Cython then?

26:09 I do cover Cython.

26:10 Yeah.

26:10 So just it's not just the more recent things.

26:14 It's a big full picture and it's not even that long.

26:17 It's just like five hours or something.

26:19 Yeah, it is.

26:20 Yeah, thank you so much for that.

26:21 That's really nice of you to say so.

26:22 Good job.

26:23 Yeah.

26:23 Thank you very much.

26:24 Happy to do it.

26:24 All right.

26:25 And happy to meet up with you and talk about the news as always.

26:29 Yeah, thanks.

26:30 Talk to you later.

26:31 You bet.

26:31 Bye.

26:31 Bye.

26:31 Thank you for listening to Python Bytes.

26:35 Follow the show on Twitter via at Python Bytes.

26:38 That's Python Bytes as in B-Y-T-E-S.

26:41 And get the full show notes at pythonbytes.fm.

26:44 If you have a news item you want featured, just visit pythonbytes.fm and send it our way.

26:48 We're always on the lookout for sharing something cool.

26:51 On behalf of myself and Brian Okken, this is Michael Kennedy.

26:54 Thank you for listening and sharing this podcast with your friends and colleagues.

Back to show page