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


Transcript #334: Packaging Organizations

Return to episode page view on github
Recorded on Wednesday, May 3, 2023.

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

00:05 This is episode 334, recorded May 3rd, 2023.

00:11 I'm Michael Kennedy.

00:12 And I'm Brian Ecken.

00:13 This episode is brought to you this time by us.

00:16 Support our work through our courses over at Talk Python Training.

00:19 Check out Brian's pytest course.

00:21 Check out a lot of the other courses I did there.

00:23 Check out the Test and Code podcasts.

00:25 And we have Patreon supporters as well.

00:27 Link on the episode pages on the website.

00:30 Connect with us over on Fauceton, at M. Kennedy, at Brian Okken, at Python Bytes over there.

00:34 And if you're not part of the YouTube live stream and you want to be, we generally do this on Tuesdays at 11 Pacific time in the morning.

00:43 But today we had to move it.

00:45 So plus one, plus 23 hours.

00:47 Yep.

00:47 All right.

00:48 Yeah, Brian.

00:49 Sometimes life happens.

00:50 Life does happen.

00:51 And sometimes PyCons happen.

00:53 Yeah.

00:53 Yeah, that was a lot of fun to see you there.

00:55 It was a blast.

00:57 Did you, I guess, I had a great time.

01:00 How about you?

01:01 You got a lot of work done.

01:02 I got a lot of recording done.

01:04 I'm looking forward to releasing some of those episodes.

01:06 Met a bunch of great people.

01:08 Saw some old friends.

01:09 Got to hang out with you.

01:10 You brought the Python staff of power and battled the snake, which was the episode album art from last time, which was a lot of fun.

01:20 So yeah, it's starting to come back, isn't it?

01:23 I mean, but still quite as many people or as vendors, but it's good to see it coming back to life.

01:28 Yeah.

01:29 Yeah.

01:29 I really enjoyed it.

01:30 So should we kick in?

01:32 Let's do it.

01:33 Yeah.

01:33 Jump in.

01:34 Well, I was actually talking with one of our friends from PyCon that I'm blanking right now.

01:41 So somebody from PyCon.

01:44 So thank you.

01:44 And apologies for forgetting your name right now.

01:48 What I came across actually from several people mentioned Rai because we had talked about Hwak.

01:56 I think Hwak.

01:57 Anyway, H-U-A-K.

01:59 And I think I got corrected that the intended pronunciation is Hwak.

02:03 I think.

02:05 Anyway.

02:05 I'm on board with that.

02:07 Let's do it.

02:09 So a similar, so that's what it is.

02:12 It was, was a Rust-based Python project workflow tool.

02:16 So now we have another one.

02:17 This one's called Rai.

02:18 And I don't know what came first, but actually this doesn't look that old.

02:24 This is from Armin Roeniker.

02:26 Roenicher?

02:27 Roeniker.

02:27 I'm okay.

02:28 I got to practice this stuff.

02:29 The dude from Flask that started Flask.

02:32 So I was curious about it because he usually kind of knows what he's doing.

02:36 And this is a really pretty interesting project.

02:40 So I tried it out this morning.

02:42 Rai, it says it's Armin's personal one-stop shop for all of his Python needs.

02:47 So that, and there's a video, which I didn't watch, but it's a nine-minute intro video.

02:52 So what, what, what, what am I excited about with this?

02:55 So it's, it's, it's more than just project.toml workflow tools.

03:00 It does that.

03:01 So you can do things like initializing a project, adding a dependency, removing, you can, you

03:06 can remove a dependency.

03:07 That's kind of a neat trick.

03:08 And then build a wheel and even add lock files, which is kind of nice.

03:13 The, so the other thing that, one of the things that I thought was really kind of cool is it

03:20 also manages, I'm not going to find all the details here, but it manages Python.

03:25 So you can, what, what are people using for PyEnv or something to install Python?

03:30 To install Python.

03:31 This installs Python also.

03:33 So you can say, you can say what, Rai fetch and then give it like 3.9 and it'll, it'll download

03:42 and install Python 3.9 for you, which like, wow, that's kind of cool.

03:46 And it, it does it in an interesting way.

03:48 So it uses these Indiegreg Python build standalone releases, which I was not familiar with.

03:56 But so there's these, these different standalone distributions builds of Python.

04:01 So neat.

04:02 I forgot to add, this is not a windows thing yet.

04:06 It's just Linux and macOS.

04:08 So I tried it on Mac.

04:09 So installing a bunch of stuff, but where does it install it?

04:13 It doesn't install it in the normal place.

04:14 It installs it in, in your home directory under dot Rai, Rye.

04:20 And that, that was surprising to me at first, but it's kind of neat that everything's there.

04:25 So, okay.

04:26 So it does PyEnv sort of stuff.

04:29 It can install Pythons for you, which is kind of cool with a command line.

04:32 You can install a Python.

04:33 And it's pretty fast.

04:35 It also handles virtual environments.

04:37 So you can do things like add, run, run within your virtual environment.

04:43 You can run a command without actually going into it.

04:45 You can say like Rai run black and it'll run black on your project.

04:49 You can say sync and it'll take all of the dependencies in your project.toml and install them in your virtual environment.

04:56 That's kind of neat.

04:57 And also it's kind of like PipX also.

05:00 So you can do things like install a global tool, like, you know, PipX install cards or PipX install really whatever you want.

05:09 Or black, for instance, if you wanted to.

05:11 If you're going to like have any global tools on, on your, you know, on your machine.

05:17 It confused me at first because I tried it and I couldn't get it in the thing to run.

05:23 But it doesn't really, it doesn't, it isn't invasive.

05:26 So it's not modifying your .zhrc or your RC files itself.

05:32 You have to do that.

05:33 So it's all going into a home directory .ri.

05:38 And then I think there's a, there's a bin directory in there or something like that, that you just add to your path.

05:45 So it's doing that.

05:46 The kind of neat thing about that, that all that isolation in the .ri directory is that if you decide you don't like it, you can just, you can just delete it.

05:55 And then delete that directory and all that stuff's gone.

05:58 So kind of cool.

05:59 Yeah.

06:00 I do like that it just blow away the directory and it's gone or it's reset, you know, that's pretty cool.

06:05 It's also interesting to see that this is not a package or tool within Python, but outside of Python.

06:12 Yeah.

06:13 Right.

06:14 I mean, it does, it says it uses like uses virtual environment and it uses actually uses virtual end, which is a third party package.

06:22 That's a little faster than the V and V.

06:25 But it also uses a pip, but it doesn't expose any of those.

06:30 So it is kind of interesting that it's outside.

06:32 I kind of like that it's outside because you can do things like, like pip X and, and pie and V.

06:37 And for me, it like just worked better.

06:40 I, I've still had trouble getting pie, pie, pie, and V is a cool idea, but it mucks with everything in your environment.

06:46 And I don't like that.

06:48 Exactly.

06:48 Yeah.

06:49 I don't like that either.

06:50 So, I think the trend I've been talking, you know, we, I did the Python packaging discussion on talk Python a while ago.

06:58 And there's, there's been a lot of talk about this, talked, to Ofec about a hatch and it's looking like there's a little more, a little more interest in saying like, okay, what if we had a tool that actually not just manages environments and packages, but actually manages Python.

07:14 Python, like it, for example, like this one, like install the version of Python you want and do a bunch of other things along those lines.

07:21 So, yeah, it's, it's interesting.

07:23 another, just a side note, Simon Wilson wrote up some notes on his, when he tried Rye.

07:29 So we're, we'll link that article as well.

07:31 Okay.

07:31 Excellent.

07:32 All right.

07:33 What is next?

07:34 PyPI is next.

07:35 Okay.

07:37 Okay.

07:37 So remarkably, PyPI has 452,000 packages.

07:45 That is insane.

07:46 But what is more insane is the traffic, right?

07:50 So there's some, one of the themes from PyCon this year was about sustainability and kind of building for the future.

07:57 Carol Willing gave a great keynote talking about, you know, let's make sure that, we're investing in the front end story for Python, investing in a mobile and deployment story for Python.

08:09 And, you know, PyPI and the Python packaging authority, it's kind of there as well, right?

08:15 Like as we grow in traffic, we need things like somebody to over watch over the security and some, you know, somebody to make sure all this stuff is developed and polished.

08:27 And people have been doing that, but to a large degree in a volunteer way.

08:30 Right.

08:31 But how does Python pay somebody to work on this?

08:34 Well, there's been some grants, I think, I don't want to say the wrong company.

08:38 It was from, some of the big tech companies are hiring people to do specifically security work, like a supply chain type of security for PyPI, which is great.

08:48 Right.

08:48 But those are year by year things.

08:51 So what, what could be done?

08:53 Well, right now, if I go over here on PyPI and I search for like VotoCore, this is the way to talk to, AWS basically, from Python to a large degree.

09:04 Who's it run by?

09:05 Oh, it's Garnat amongst others.

09:08 Wait a minute.

09:09 This is like the official AWS thing.

09:12 Shouldn't this somehow be kind of more official than that?

09:16 And how do I find the other AWS projects?

09:19 I can like email the person or something.

09:21 I don't know.

09:22 I guess I could go over here and see this, this, the projects if I go to their user account, but it's kind of just, you know, AWS sort of hacked the system by creating an account named AWS.

09:32 But it's not really official.

09:34 You don't get like a branded, sort of story.

09:37 Right.

09:37 You just get a, you know, use your profile.

09:39 So GitHub has something like this.

09:41 Like if you went to GitHub.com slash talk Python, this is the official organization.

09:46 We have 47 repositories.

09:48 We have six people involved.

09:50 And you can sort of see, right?

09:52 You can, you can put this together officially as, as not Michael, but like this group.

09:57 Right.

09:57 So the big announcement is introducing PyPI organizations by Ederbin.

10:03 So today we are rolling out today being a few days ago.

10:07 Today we are rolling out the first step in our plan to build financial support and long-term sustainability for the Python packaging index, while simultaneously giving our users one of the most requested features, organization accounts.

10:22 So these are self-managed teams with their own exclusive branded web addresses.

10:27 And the goal is to make PyPI easier for large community projects, organizations, and companies manage multiple sub teams and multiple packages.

10:35 Right.

10:36 So much like the, the GitHub org that I was talking about, you can say, okay, this person is an admin of it.

10:42 And this person can have right access to that thing, but not this thing.

10:45 Right.

10:46 So kind of, kind of those types of things instead of, Hey, everyone in the company, here's the one and only username and password for PyPI Go.

10:55 Interesting.

10:56 yeah.

10:57 Yeah.

10:57 Yeah.

10:58 And it's like, I opened this conversation, increase the idea is to increase sustainability.

11:03 This last year, PyPI served 235 billion downloads for those packages and saw 57% year over year growth on download counts and bandwidth alike.

11:15 That's great.

11:16 But it also means costs and effort and infrastructure and all of that is just going up.

11:22 Also, these organizations are not required.

11:24 AWS can still manage it.

11:26 However they are now they want.

11:28 So these are opt-in and it does cost.

11:30 It says a small fee.

11:32 I would love to see small fee equals a hundred dollars a month or a dollar a month.

11:36 I don't know what this is.

11:37 maybe it says somewhere, maybe I got to go.

11:39 It's a sliding scale.

11:40 Yes, exactly.

11:41 If you got to ask, no, just kidding.

11:44 It says small fee.

11:44 If you got to ask, it's not for you.

11:47 Anyway, PyPI organizations, coming now, check it out.

11:52 Okay.

11:53 So is it just, oh, we don't know this yet, but is it just for things like,

11:57 things like, companies or is it, could it be for, like, pytest or something like that?

12:03 Sure.

12:03 It could be, like, for pytest.

12:04 I mean, you talked about, it says for large community projects, for example.

12:08 Yeah.

12:09 Like, you talked about Flask.

12:11 well, you talked about Armin, who was the original creator of Flask.

12:14 But that's now under the pallets project, which runs a bunch of different projects and has a bunch of contributors.

12:20 Like, I think a pallets organization would be potentially reasonable, you know?

12:24 Yeah.

12:24 Yeah.

12:25 It's going to be tough to come up with, like, pricing for something like this because, like we said,

12:29 some of it is a bunch of volunteer organizations and some of it is, yeah, companies.

12:34 so, yeah.

12:35 Interesting.

12:36 yeah.

12:36 I don't know.

12:37 I, it probably says somewhere, but I didn't see it in this article on the PyPI.

12:42 Nice.

12:42 Cool.

12:43 Well, should we jump into the next topic?

12:47 Yeah, go.

12:48 Okay.

12:49 Well, I just, we, I like this article by Bob Belderbos.

12:54 It's, five tips to learn any new Python library faster.

12:58 and this is, actually near and dear to my heart because we do this on a weekly basis.

13:04 you know, trying something, trying something new.

13:08 and, I think I have a condensed version of this, but let's kind of walk through, these are pretty good tips on, if you're, if you're thinking

13:16 about using something, or just want to learn, you hear, here's something cool.

13:20 You want to want to learn, learn about it.

13:22 What do you do?

13:23 so his first step is, quickly read the main docs.

13:28 So read the manual, RTFM.

13:31 especially I, I like things like if they have a quick start or getting started,

13:36 like I like to read that.

13:39 If there's a video, go ahead and watch it.

13:41 especially if it's a short video, go ahead and try that.

13:44 So, okay.

13:45 So, so you, so you know what it does great.

13:47 And you kind of know how it works and then install number two is install it.

13:51 I think this is funny.

13:53 I mean, obviously you have to install it in order to play with it, but okay.

13:56 Install it.

13:58 number three is explore the library.

14:00 Essentially play with it.

14:02 play around, see what you do.

14:05 Bob has a great idea of, of doing this within, Jupyter notebooks, to just kind

14:10 of explore what it does.

14:12 That's pretty great.

14:13 and then, and then you have to kind of make it more deliberate.

14:16 So instead of just playing around with like maybe the things it does try to do something

14:21 with it, try to have a task.

14:22 And this, and this is a deliberate called deliberate practice, but, this is where I think you're really going to start learning.

14:30 Something is, actually trying to get something done because often there'll be extra features

14:36 you don't need right away.

14:37 with a lot of projects, most people use 20% of the functionality.

14:43 So don't learn a hundred percent of the functionality.

14:46 You learn the 20% that you need to get something done.

14:49 So, deliberate exercise, and then maybe actually build something or change something.

14:55 So, number five is build something.

14:57 So, going into to a deeper level is actually incorporate this library in a project of yours,

15:02 or if it's similar to a, another project that you're already using, and you're just thinking

15:07 about switching, go ahead and try switching it.

15:09 you might not stick with it, but kind of feel how, how, how easy it is to change over

15:14 to this new, new project.

15:16 And you might not publish it, but you might, it might be great.

15:19 build, building something small is a good idea to, to just kind of get your hands dirty.

15:24 And then, the bonus number six, I always like it when the people lie about how many tips

15:30 there are.

15:30 the real bonus is teaching it.

15:34 and this, this is like massive, massive.

15:37 and it just ties a bow on the whole learning process is trying to teach it back to somebody.

15:43 And this could be a today I learned thing on your blog or an actual longer blog post, or maybe a little

15:50 tutorial video or something, or actually just sit down and with somebody and try to talk to them

15:54 about it.

15:55 one of the things that I, I find even just for ourselves from, for this podcast, trying

16:02 to look at it and go, if I was trying to teach this to somebody or tell somebody why they should

16:06 use it.

16:06 Why?

16:07 I mean, what are the different points?

16:08 So like just earlier when I was talking about Rye, what's different about that?

16:11 Well, it's, it's different because it's, it handles the Python installs also.

16:17 And it also kind of works like Pipex.

16:19 I mean, the different things about it and then think about like, and then actually try it.

16:23 So I tried it out.

16:23 I went through, set up a, an extra little project directory and tried it

16:29 out a few times and saw what it did, looked at the project Toml output.

16:32 so yeah.

16:34 And then, just doing that.

16:36 So, some great things.

16:38 Yeah.

16:39 I, I think, you know, teach it is, is really cool.

16:42 You don't have to be an expert at something to give a presentation on it.

16:46 If you structure, as long as you're genuine about it, right?

16:49 Like if you, you said, Hey, I'm going to teach you everything you need to know and how awesome

16:54 this thing is.

16:54 And really you just learned it last week at a conference talk.

16:58 People might call you out.

16:59 Like you don't seem to really know as much as you came.

17:02 If you say, no, I'm, I'm excited about this thing.

17:07 I just learned it.

17:08 I wanted to share my excitement and, and just, you know, show you a quick getting started

17:12 thing.

17:12 And then people won't go like, well, why does he know it?

17:15 Like you just start out.

17:15 Well, I just learned it, but I'm, I'm excited.

17:17 And I think you'll be excited too, if you, you know, so I do think those presentations

17:22 are awesome.

17:23 I mean, there's plenty of places.

17:24 There's user groups and meetups, regional conferences, like online meetups.

17:29 Those people are always looking for presenters.

17:31 They're like, gosh, it's a week away and we don't have a speaker yet.

17:35 Right.

17:35 So reach out.

17:36 I mean, there's a ton of opportunity to do that or even brown bags at your company.

17:39 Yeah.

17:40 I like the, I like that you brought up that, be honest about it.

17:43 that you like, you can even say, I, I just, I just got excited about this, learned

17:49 a little bit and I want to show you what it is.

17:52 don't, I, yeah, don't make yourself out to be an expert in the, in the field.

17:56 but that's great.

17:59 That's this, this process actually is like exactly how I got started, blogging about

18:04 testing is just learning, learning something new, writing an article about it and then writing

18:08 a bunch.

18:09 So if you really want to deep dive into a, into a, module or a package, you can write

18:15 a series of them.

18:16 Great.

18:16 You're getting started.

18:17 One of my first thoughts and then move on to like, well, how do I do this other thing

18:22 with it?

18:23 how do I do authentication?

18:24 We'll do a, do a little article on that.

18:26 and it, and then the whole thing could end up being a book.

18:30 I mean, you could make a book or a course or something out of it eventually.

18:32 So, but if you just want to do a quick one, this is a great way to.

18:36 Yeah.

18:37 All right.

18:37 And, and speaking of just like, he opened Bob open his conversation here with like, and

18:42 some of the things I'm learning are PyScript, Flet, PySimple GUI, PyRite, HTMX, Reddit,

18:47 Leaflet.

18:47 Those are all awesome.

18:49 So I can see why you would want to learn those.

18:51 And Liz out there says, I'm an, I'm excited about this type of presentations tend to be more

18:56 to the point, which is indeed.

18:58 Yeah.

18:58 All right.

18:59 What's next.

19:00 We have GPUs next.

19:02 All right.

19:03 I know you heard that, we can do all sorts of amazing things by programming GPUs.

19:08 And if we want to process, you know, tons of data, maybe we're doing medical research

19:14 on protein folding, we're running around a cluster of GPUs and we could, you know, solve

19:19 some kind of huge computational biological problem and make a big impact.

19:23 But if you're going to do that, you sure better hope that you, if you're gonna do something

19:27 like CUDA, you better hope that you have not just GPUs.

19:31 That's way too broad.

19:32 No, no, no.

19:32 You have Nvidia GPUs.

19:34 And Nvidia GPUs are sometimes hard to come by.

19:38 A couple of years ago, they were very hard to come by unless you're using the cloud where

19:42 you can go get them.

19:42 Right.

19:43 I have an awesome Mac here.

19:45 I've got my M two pro Mac mini now, and that thing has 16, GPU cores on it.

19:54 Can I do CUDA or use PI CUDA on it?

19:57 No, that's not an Nvidia one.

19:59 And so like honest on Mac, especially it's been extremely hard to do any sort of GPU computation.

20:06 Right.

20:06 Okay.

20:07 We had the, the afterburner cards and those like weird external graphics cards on the older

20:11 Intel ones, but those are not even an option in the last four years.

20:15 So, you know, that's, that's a drawback.

20:17 And on Mac, the graphics language like direct X on windows or open GL and a lot of things

20:24 is called metal.

20:25 And so I want to introduce you to a library and an article called Python gets down to the

20:30 metal, not like CPU, but GPU.

20:33 And it says, are you a Mac and Python person?

20:36 Do you have a trillion numbers to multiply together?

20:38 You don't have all day to wait for them.

20:40 It says, well, Python is quite slow.

20:42 Although the person acknowledges, I've been a happy Python user for quite a while.

20:46 you know, for pure number crunching, Python is not as fast as the compiled languages like

20:52 C and rest, which is totally true.

20:53 Is it plenty fast to drive your web API?

20:55 Probably.

20:56 It's probably really fast for that.

20:57 But if you literally have a trillion numbers, you want to just crunch them in a loop.

21:01 The advice is not to do that, right?

21:03 The advice is to use something like pandas or numpy or desk or something like that, which

21:09 are really all C base.

21:10 Or if you had a NVIDIA Jeep, graphics card, maybe you could use some kind of thing

21:18 like PyCuda.

21:19 But again, on the super powerful computer, it is just, you can't do it.

21:23 There's no way to get an NVIDIA graphics card.

21:26 However, if you could somehow program this metal, it says metal does have a way to program it.

21:32 It's just, there's not a lot of things for it.

21:34 And it says there's a language to do on GPU computation that looks very C++ like.

21:40 And it says on a, on an M2, this is not the pro, but the regular one has eight GP cores,

21:44 which means let's see, that gives some numbers here.

21:49 Yeah.

21:49 It says, on the eight GP, GPU core version, you could do about a trillion floating point

21:55 operations a second.

21:56 And that's the base version, right?

21:59 And so the bigger models like mine closer up towards 10 trillion.

22:04 Right.

22:04 So mine's probably like six or seven trillion, but, you know, the, the high, the ultra

22:10 max, I don't know, whatever the bigger ones can do even more than that.

22:13 Right.

22:13 So that is a ton of power.

22:16 And so we introduce metal compute.

22:19 So pip install metal compute.

22:21 And with this, it's a little bit like doing SQL, like raw SQL database stuff in that you define

22:28 a thing that you want to run on the graphics card.

22:32 That looks a lot like a lot like C++.

22:35 I think you would imagine Brian, what do you say?

22:37 Yeah.

22:38 Yeah.

22:38 It's just hash include metal standard lib using namespace metal, write a function, do the

22:44 operations.

22:44 There's a lot of const device float star buffer.

22:48 I mean, it's not easy, right?

22:50 But it's also not that easy on, on CUDA and other things as well, generally speaking.

22:55 So they come up and say, all right, what we're going to do is going to come up with a bunch

22:58 of, you know, a vector and a matrix.

23:01 And we're going to multiply them and do a bunch of work and get the answers out.

23:04 And boom, off it goes.

23:06 Print out the answer.

23:07 Very cool.

23:09 It's kind of cool that you don't have to, you don't have to compile it or anything though.

23:12 I mean, or it is cool or have it in a separate file.

23:15 It's just a string there.

23:16 That's, that's neat.

23:18 It is.

23:18 And if I was a, if this was my job and someone said, Michael, you're writing this program,

23:23 I would not do what they are doing in this example and put triple quotes and put metal

23:28 code, which is like C++ in there.

23:30 I would write a metal file or a C, call it CPP or whatever's going to give you the best

23:37 autocomplete and color syntax highlighting.

23:39 And then just do, you know, path read text and get that, you know, in one line, get that

23:45 out, but have that in a separate file.

23:47 So you could sort of more, more properly reason about it.

23:49 But anyway, it says, look, we run this together and did a whole bunch of work, took 70 milliseconds

23:56 to do 10 multiplications.

23:57 Not that impressive because there's a startup cost.

24:00 What if we gave it a billion, a billion multiplications to multiply that vector in that matrix?

24:05 Oh, that takes 0.3 seconds, a billion times.

24:08 That's a lot.

24:09 Yeah.

24:09 So, so that's pretty good.

24:11 It does say though, look like part of the, the speed or part of the challenge is moving

24:16 data into memory and then out of memory.

24:19 And so the more you move stuff in and out rather than kind of loaded up with the data and then

24:23 do operations on it, it will be slower.

24:25 So it talks a bit about some of the performance things that you can do to make it faster.

24:30 It gives some examples on how to do that.

24:31 There's probably some interesting trade-offs with the Apple Silicon having a shared memory

24:36 between memory memory and, and GPU memory, right?

24:40 You don't actually have to copy it between there, but I suspect that you're going from Python

24:43 to C++ memory and back through some kind of serialization, right?

24:48 That that's going to have some kind of cost.

24:49 Who knows?

24:50 Anyway, there's some cool examples of a Mandelbrot set being computed with this or Julia set rather.

24:57 But yeah, people are been dreaming of doing GPU processing on their Macs.

25:02 Well, this might be worth checking out.

25:04 Nice.

25:04 The other thing that's kind of cool about it is it doesn't, you know, it's not like a library

25:09 that takes Python code and compiles it or transpiles it to run on the GPU, which would be awesome.

25:16 But at the same time, if it doesn't quite get it right, how much control do you have?

25:20 How useful is it?

25:21 Right.

25:21 You don't know.

25:22 Like here, you can just, if you can just give it the data as an array, then you're just writing

25:27 straight metal, which is a bit of a pain if you don't know it.

25:30 But at the same time, it's, it means that it's, it's super flexible, kind of like a DB API.

25:35 You open a connection, you say, here's a string, run that on the database.

25:39 You can give it a selector, some kind of query or update, and it's, it kind of gets out of the way.

25:45 So it seems pretty flexible in that regard.

25:47 Yeah.

25:47 Yeah.

25:47 Interesting.

25:49 And this Mac only, right?

25:50 So this is.

25:51 Yeah, it's Mac only.

25:52 But take that NVIDIA.

25:54 You can't run Mac.

25:55 No, just kidding.

25:56 I have both an NVIDIA card and this, but I don't really have, I would like to do more GPU

26:00 stuff, but I just don't have a trillion numbers that need multiplying right now.

26:03 Well, you know, it's not a bad thing.

26:06 Someday.

26:06 No.

26:07 All right.

26:08 Over to you.

26:09 I've got, so we're onto extras.

26:12 I've got just one extra that I wanted to bring up.

26:15 And that was just the textual.

26:18 So Will McGooghan posted like this picture and like with no explanation.

26:25 Apparently it's the, it's the, the weird, I'm showing a weird bird with a large mouth.

26:30 It's kind of an ugly thing, I think.

26:32 But it's the, the logo for frog mouth.

26:35 And what is frog mouth?

26:37 Frog mouth is the first, apparently first of possibly more to come applications that the

26:43 textual team is releasing that are built on textual.

26:46 So frog mouth is a markdown viewer and browser for your terminal.

26:49 And it looks pretty clean.

26:52 I tried it out as well.

26:54 I haven't been able to get like these, these, these menu bar thing or the, the tree things

26:59 on the side.

26:59 But it's like a, it's like a navigation thing with like, you can browse, browse your markdown

27:06 with within textual.

27:08 So it's kind of fun.

27:09 Yeah.

27:10 Continues to impress with what they can build with that stuff.

27:13 Yeah.

27:13 And this is the application that I tried when I was talking about Rye.

27:16 I tried installing this as a global application and then it worked just fine.

27:21 So.

27:22 Yeah.

27:22 Cool.

27:22 All right.

27:23 I would like to serenade the audience, Brian.

27:25 Oh, yay.

27:26 Yeah.

27:27 I was going to talk about this as a main item.

27:29 This thing called serenade at serenade.ai.

27:31 And it's really neat.

27:34 What it does is you install a plugin for your editor where your editor equals VS Code or Jetbrains

27:42 IDs.

27:42 None of them do.

27:43 And then you run this in the background and you can speak to it.

27:46 Like you hit a hot key or whatever.

27:48 And you basically start speaking code oriented operations.

27:53 So there's a cool example that it shows somewhere in here.

27:59 Let's see.

28:00 Yeah.

28:00 If you go and click on the docs, you'll see a bit of a video thing here.

28:05 And basically you can go into it and you can say, you know, teach it to do tests.

28:12 You can navigate around.

28:14 This is kind of cool.

28:15 So if you're typing in the editor, you're kind of good.

28:18 I mean, I know if you have RSI and stuff, that's not ideal.

28:21 But one of the challenges is like, okay, I need to leave this and navigate over there.

28:25 So you can say things like open some file name and it'll actually go through your editor

28:31 and say, oh, that's over in this directory.

28:33 You need to expand the section and it'll jump to it.

28:35 Or you can say, go to this function or, you know, those kinds of things you can speak to

28:40 it and it'll do it.

28:42 So anyway, it's really cool.

28:43 Why is it not the main item?

28:45 Because I'm super excited about these kinds of things.

28:47 The reason it's not is it hasn't really been touched for coming up on a year.

28:52 And that was just a merge of some PR.

28:54 Is it still going?

28:56 I don't know.

28:57 It was kind of working pretty good, but then it was throwing errors when I, so I don't

29:02 know.

29:02 I love the idea.

29:03 If this thing comes back to life, you know, someone out there, let us know.

29:06 Cause this is super cool, but it doesn't quite seem to be getting kept up with the editors

29:12 and tools and so on.

29:14 I liked your comment in the show notes.

29:16 Serenade has seemed to gone silent.

29:19 It has gone silent.

29:20 Oh, thank you.

29:21 It sure has.

29:22 But it's still worth checking out.

29:24 It's kind of cool.

29:25 And then Brian Skin is when I, we've been talking a lot about packaging on this episode

29:31 and I did my packaging discussion and inspired by that, or maybe just the discussion that

29:38 I was also inspired by.

29:41 They're setting up a Python distribution packaging round table, not just of the people inside Python

29:50 core devs world, but in the broader ecosystem for like Anaconda and data science and that.

29:57 All right.

29:58 Do they have 13 maintainers across nine projects lined up for Tuesday, May 9th and a link to

30:06 go attend it.

30:07 So if you're interested, you can go check that out.

30:09 Yeah.

30:11 So I'll put a link in the show notes.

30:13 Yeah.

30:13 Cool.

30:14 Yeah.

30:14 That's it for the extras on my end.

30:16 How about a joke?

30:18 Yeah.

30:19 But before we go there, I just wanted to say, I just remembered the person that like told

30:23 me about Ryan in the first place.

30:25 And now I feel like a dork.

30:26 It was Paul Everett.

30:27 So thanks Paul from JetBrains.

30:29 Awesome.

30:30 Yeah.

30:31 Paul was quite the host at PyCon and did a bunch of awesome stuff for many people and much

30:37 appreciated.

30:37 All right.

30:38 How about a joke?

30:39 All right.

30:39 Before I put this on the screen, I'll tell you about it.

30:42 You know, sometimes programming is just amazing.

30:46 You just get in the zone and you just go and look what I built.

30:48 Boom, boom, boom, boom.

30:50 Other times you end up with a bald patch where you've been tearing your hair out.

30:54 You're like, no, why?

30:55 You may end up yelling at the computer, right?

30:58 There's just like a bunch of stuff.

30:59 And this joke highlights the small wins you might make in this situation.

31:04 Okay.

31:04 So it's just a person with two monitors, a bunch of energy drinks crushed next to them,

31:12 a bunch of wrappers, empty coffee.

31:14 They've clearly been here for a while and the arms are up like, yes.

31:18 Wow, a different error message.

31:20 Finally, some progress.

31:21 Yes.

31:24 Have I mentioned I've been working with a guy named Lauren on a Flutter mobile app?

31:31 Let me tell you, there are a lot of tools in that tool chain.

31:34 And more than once here, I've been like, yes, that's not the same error.

31:39 We're making progress.

31:40 Yeah.

31:44 This was me yesterday for half the day.

31:47 Yeah.

31:47 Working with a Docker compile that used Docker and Artifactory and a whole bunch of other C++ stuff.

31:56 Indeed.

31:57 All right.

31:59 Well, let's hope for different error messages for anyone out there struggling.

32:03 And then eventually, no more error messages.

32:06 That's a good one.

32:08 Like, may you have a different error message tomorrow.

32:10 Exactly.

32:12 May you live in interesting times and may you have different error messages.

32:16 All right.

32:17 Well, thanks for being here, Brian.

32:18 Thank you.

32:18 Thanks, everyone, for listening.

32:19 All right.

32:20 Bye.

Back to show page