Latest / Talk Python To Me / #103: Compiling Python through PyLLVM and MongoDB for Data Scientists
Transcript
- 0:00This episode, we have an optimization twofer.
- 0:02We begin by looking at optimizing a subset of Python code for machine learning
- 0:07using the LLVM compiler with a project called PyLLVM.
- 0:12It takes plain Python code, compiles it to optimize machine instructions,
- 0:16and distributes it across a cluster to do machine learning.
- 0:19In the second half, we'll look at a fabulous new way to work with MongoDB
- 0:23for Python writing data scientists.
- 0:26The project is called Bison NumPy and provides direct connections
- 0:31between MongoDB and NumPy.
- 0:33It's 10 times faster than working with PyMongo directly
- 0:37if you plan to end up in NumPy anyway.
- 0:39You're about to meet the woman behind both of these projects, Anna Herlihy.
- 0:43This is Talk Python To Me, episode 103, recorded February 6, 2017.
- 0:52Welcome to Talk Python To Me, a weekly podcast on Python,
- 1:17the language, the libraries, the ecosystem, and the personalities.
- 1:21This is your host, Michael Kennedy.
- 1:22Follow me on Twitter where I'm @mkennedy.
- 1:24Keep up with the show and listen to past episodes at talkpython.fm
- 1:28and follow the show on Twitter via at Talk Python.
- 1:31This episode is brought to you by Talk Python Training and Hired.
- 1:36Be sure to check out what we both have to offer during our segments.
- 1:39It helps support the show.
- 1:40Anna, welcome to Talk Python.
- 1:43Thank you.
- 1:44Thank you for having me.
- 1:45Yeah, it's great to have you here.
- 1:46We got a couple of really cool things to talk about.
- 1:49We're going to talk about PyLLVM, which is a really cool project that you worked on.
- 1:55And we're also going to talk about a super high-performance sort of data science-y thing
- 1:59with MongoDB that you're also working on right now.
- 2:02So I'm looking forward to talking about both of those.
- 2:04But before we get into those, what's your story?
- 2:06How did you get into programming in Python?
- 2:08I had my first real experience with programming.
- 2:12I mean, I had done some basic when I was pretty small, but I thought it was not very fun.
- 2:18So I kind of put that off for another five or six years.
- 2:20But in university, I was kind of all over the place.
- 2:24I didn't know if I wanted to be a writer or an engineer.
- 2:27But I figured that computers are probably going to be relevant.
- 2:31So I took a CS class because I didn't know the difference between computer science and computer
- 2:38literacy.
- 2:38But it ended up actually working out in my favor because I really, really enjoyed it.
- 2:43And I ended up prioritizing my CS classes over all my other classes.
- 2:47And then I kind of figured, maybe I should just do this full time.
- 2:50That's really cool.
- 2:51What was that first CS class?
- 2:52That was Andy Van Dam's intro to computer science, which for anybody who went to Brown will recognize
- 2:59that it's quite a popular course.
- 3:02I mean, when I took it, it was maybe 150 people.
- 3:05But I think just last year, they had 250 or something.
- 3:09It's really, really blowing up.
- 3:11Oh, that's excellent.
- 3:11What language did you study?
- 3:13Do you remember?
- 3:13Yeah, it was a Java course.
- 3:15We did a lot of swings.
- 3:17Okay, excellent.
- 3:18Yeah.
- 3:19And so you decided, hey, I kind of like this programming stuff.
- 3:22Let's just do that as a job, right?
- 3:23And how did you go from learning Java and CS 101 to working in Python?
- 3:29So I really liked programming languages in general.
- 3:34So I wrote some compilers, some interpreters.
- 3:38My area in computer science was mostly looking at different programming languages.
- 3:44And I found that Python was kind of the most elegant, in my opinion.
- 3:48And I didn't feel bogged down by really complicated syntax.
- 3:53But I also felt very powerful.
- 3:54So I kind of felt that as opposed to being pure Python, I wanted to do more like Python and C stuff,
- 4:02sort of more from the very beginning to how it gets down to the computer code at the end.
- 4:07I see.
- 4:07So you really were interested in like the internals and stuff and whatnot, huh?
- 4:11Yes.
- 4:12Okay.
- 4:12Cool.
- 4:13And so the first project we're going to talk about, which I want to ask you a question quick before then,
- 4:18but PyLLVM, that was part of your university work, right?
- 4:23Yes, exactly.
- 4:24The project that it was based on Tupleware is a research project with some of the database professors at Brown.
- 4:32And my project was a senior thesis that was built sort of on top of that.
- 4:36Okay.
- 4:36Wow.
- 4:36Very cool.
- 4:37Very cool.
- 4:37Okay.
- 4:38So today you work at MongoDB, right?
- 4:40Yes.
- 4:40Yeah.
- 4:41What do you do there?
- 4:41So I actually recently switched over from spending the majority of my time on Python work.
- 4:47So like PyMongo, Mongo Connector, other sort of Python related projects to MongoDB Compass,
- 4:55which is basically a user interface for MongoDB.
- 4:58It's actually written in JavaScript, which was something new for me since I had done a pretty
- 5:04excellent job of avoiding JavaScript until now.
- 5:06It finally got you, huh?
- 5:08Yeah, I know.
- 5:09It was inevitable.
- 5:10But now I really like it.
- 5:11I can't say that I am converted and I still think that Python is the community and the language
- 5:16that I like best.
- 5:17I'm probably preaching to the choir here.
- 5:20But I now split my time between working on Compass and working on this BSON NumPy package,
- 5:26which I hope we'll get to talk about later.
- 5:28Yeah, we'll definitely talk about it because it's very cool.
- 5:30Okay.
- 5:31Excellent.
- 5:32So it sounds like you have a lot of cool projects going on.
- 5:35Let's talk about the project that you did first with this LLVM thing.
- 5:39So I suspect a number of people out there know what LLVM is, but the audience is diverse.
- 5:45There's people from all sorts of places.
- 5:46Let's start with just talking about what is LLVM?
- 5:49Cool.
- 5:50So despite the name, it doesn't really have too much to do with virtual machines.
- 5:54It's basically just a collection of compiler technologies.
- 5:58So the LLVM project itself is huge.
- 6:01But what I worked with is LLVM IR, which stands for intermediate representation.
- 6:07And LLVM IR is basically a way of representing code that's about halfway between a top level
- 6:15language.
- 6:15So for example, Python and some machine code.
- 6:19So something that you wouldn't really want to read.
- 6:21You could probably look at the assembler and know what was going on, but it's not something
- 6:25you would ever really want to write.
- 6:26But runs much, much faster than something that a human would be able to write.
- 6:30Sure.
- 6:31So does...
- 6:32I don't know all that much about it, actually, that myself.
- 6:34So do you compile the source language into this LLVM IR and then do a further compilation
- 6:42towards some final target?
- 6:43Yes, exactly.
- 6:44And that's actually what makes it so powerful, is that a lot of the time you have compilers
- 6:50that have to be very specialized.
- 6:52So they take a language and they take a platform.
- 6:54And that is what the compiler does, is it compiles Python for a particular architecture.
- 7:01What LLVM IR does, which is not unique to LLVM, it's true for all intermediate representations
- 7:07or most of them, is that it's a way of making things both language and platform agnostic.
- 7:14So you can take any popular language you want from Java, R, Python, and you can compile it
- 7:23down to LLVM IR.
- 7:24Then you can take that LLVM IR and you can ship it anywhere and it can be compiled down to most
- 7:30platforms.
- 7:31So it doesn't even matter what the original language was and it doesn't matter what platform
- 7:36you're eventually going to run it on.
- 7:37It makes the code really...
- 7:39It makes it very cross-platform and it makes it fast.
- 7:43Yeah, sure.
- 7:44So basically, if you can get something to compile down to LLVM IR, you can get it to
- 7:49run quickly on many, many places, right?
- 7:52Because there's existing infrastructure to turn LLVM IR into executable code on all sorts
- 7:59of platforms, right?
- 8:00Exactly.
- 8:01And it's super powerful.
- 8:02The optimizations that the LLVM IR compilers do make it so that it doesn't matter if you wrote
- 8:09your code in C or if you wrote your code in Python.
- 8:12I'm of the opinion that it's much easier to write your code in Python than it is to write
- 8:15it in C.
- 8:16And so it's pretty nice because you get the benefits of maybe a more difficult syntax with
- 8:21pretty much whatever you're comfortable in.
- 8:23Yeah, that's really cool.
- 8:24What's the weirdest thing that you can execute this stuff on?
- 8:29What's the weirdest platform?
- 8:31That's a good question.
- 8:31Actually, I don't know.
- 8:33But I think it's pretty easy to if you just look up the LLVM IR or the LLVM compiler project,
- 8:39I think it's a really good way to get to know compilers in general.
- 8:44So there are a lot of proof of concept compilers that use LLVM because the infrastructure is so
- 8:51good.
- 8:51So I'm sure somebody has written something for an extremely obscure platform just to show
- 8:57that they could do it.
- 8:58Yeah, I'm sure.
- 8:59Do you think that it makes a lot of sense for people to create from scratch compilers these
- 9:05days?
- 9:05Or should most people just be building on LLVM?
- 9:08I think it depends on what the goal of your project is.
- 9:13So because this was a project that was done in the world of academia, I pretty much just
- 9:19picked whatever seemed like would be the most fun.
- 9:21And I know that's not necessarily true for a lot of people who have needs and users and they
- 9:28have to work quickly.
- 9:29And so I think it just depends on if you want something to work faster or if you want to learn
- 9:35a lot while you're doing it.
- 9:37Sure.
- 9:37Yeah.
- 9:37And I guess also like you only had, it was like a senior project sort of thing, right?
- 9:41So you couldn't start from scratch and do a ton of work.
- 9:45You had a time frame and a little amount of time and energy, right?
- 9:48So I guess that's a-
- 9:49Exactly.
- 9:49I had to graduate.
- 9:49Exactly.
- 9:50So that's a pretty good testament to LLVM.
- 9:52Cool.
- 9:53And I know it's like used for Swift and some other things on the Apple platform and it's
- 9:58pretty cool.
- 9:59Okay.
- 10:00So you also talked about a project to do with machine learning called Tupleware.
- 10:05And this is a project at Brown, right?
- 10:07Yes, it is.
- 10:08So Tupleware's tagline is that it is a distributed analytical platform that leverages LLVM IR to
- 10:18be totally platform agnostic and totally language agnostic.
- 10:23So the way that PY LLVM fits into Tupleware, it was basically a proof of concept that you
- 10:31could take Python code and you could compile it down to LLVM IR and then you could ship
- 10:38it to your clusters and then have them be automatic and have your code be automatically run on a
- 10:44very large dataset.
- 10:45Okay, cool.
- 10:46So this is like a distributed machine learning type of system and your project PY LLVM basically
- 10:52made it possible to feed Python instead of say C++ code or something like that to it, right?
- 10:57Exactly.
- 10:57And I chose Python because I didn't really want to write an R compiler, but also because at
- 11:04the time I was working on this, which is about three, three and a half years ago now, the language
- 11:10that most scientists were using for programming was still MATLAB.
- 11:14I actually had a summer job where I converted MATLAB code to scientific Python code and it was
- 11:21becoming more and more common that people who were not programmers would be programming in Python
- 11:26instead of just inheriting these old MATLAB scripts that they would reuse.
- 11:29So that's why I've picked Python.
- 11:32Yeah, that's cool.
- 11:33I've definitely seen that as well.
- 11:35When I was in school, MATLAB was definitely the thing and people would have all these scripts
- 11:40and one of my first programming jobs was to take a bunch of MATLAB code and turn it into like
- 11:47graphical visualizations on Silicon Graphics supercomputers and I had to convert the MATLAB code to C++
- 11:54but if it was today, I very well might have done that in Python instead, right?
- 11:57Yeah, that's funny.
- 11:59Sounds like the same job.
- 12:00Yeah, exactly.
- 12:01Exactly.
- 12:02Awesome.
- 12:03And so you said PY LLVM started from an abandoned open source project.
- 12:08What's the story there?
- 12:09Basically, once I had pinned down what exactly I wanted to do for my thesis,
- 12:15I went on a search spree where I tried to figure out if somebody else had done it for me,
- 12:20which would have been very convenient.
- 12:21But at the time, I couldn't find any Python 2 LLVM IR compilers that were already up and running or already published.
- 12:32So what I did is I found this GitHub.
- 12:36Actually, it wasn't even GitHub.
- 12:38It was a Google code, right?
- 12:39Yeah, it was a Google code project, which had been documented almost zero.
- 12:46There were some slides in Japanese that I found, which I tried to feed through Google Translate, which did not work.
- 12:52So it was basically just some code.
- 12:55And it ended up being almost exactly what I needed because it was a pretty simple compiler outline without any of it really implemented.
- 13:04But the structural stuff was there.
- 13:06So a lot of the scoping and a lot of the variable tracking had been started but not finished.
- 13:11So it was kind of the perfect project to pick up because a lot of the design decisions that would have resulted in a lot of cost versus value arguments.
- 13:21So, you know, we could implement it this way, but it would take a lot of time and we might not actually get that much out of it was sort of already decided for me.
- 13:28So I had a pretty clear path in terms of getting the subset of Python it supported to be something that I thought a user could actually make use of.
- 13:38Yeah, that seems really great that, you know, that's out there and you can pick it up.
- 13:42And it's funny it was on Google Code because not only was the project kind of abandoned, like Google Code itself is kind of in archive mode, right?
- 13:49I guess it's a real testament to GitHub.
- 13:51I think it was in archive mode when I found it even.
- 13:55It's definitely in archive mode now.
- 13:57It's several layers.
- 13:58Yeah, but that's helpful that it's like, well, we already kind of put the thinking into place, but hey, I need to – they just didn't take it to completion, right?
- 14:07And so, like, okay, these are the final to-dos on this project or whatever until I can actually use it on Tupleware.
- 14:13Yeah, I mean, when I found it, it wouldn't even compile.
- 14:15So I have really a lot of respect for the person that wrote it because it really had everything – it was clear that this person didn't actually run it, but they had thought about it a lot.
- 14:28And the skeleton was there, but it hadn't actually gone through the process of becoming a tool that could be run.
- 14:34And that, to me, is very incredible.
- 14:36I mean, I run my code every 10 seconds just to make sure that it's working.
- 14:39Exactly.
- 14:40Yeah, I'm with you on that.
- 14:43Like, run it often.
- 14:43So, yeah, I guess some people – you know, probably more in the early days when compiling took longer and stuff, but some people really sit there and work through it, and then they run it.
- 14:56You know, hours after hours of work, that's just how I work.
- 14:59I run it often.
- 15:00Yeah, it's very impressive.
- 15:02Yes, indeed.
- 15:03It takes a subset of Python.
- 15:05I can't feed it like Django and have it spit that out, right?
- 15:08Because what happens is it takes the Python language and it turns it to LLVMIR, which then finally compiles down to machine instructions.
- 15:16But there's no interpreter.
- 15:19There's no standard library underneath there for it to run, right?
- 15:24So, you've got to be pretty focused on what you give it.
- 15:26Yes.
- 15:27What it does have is sort of the C standard library.
- 15:31So, for example, if you want to call, like, Printline, you can do some somewhat complicated gymnastics in order to get LLVM to make that external call.
- 15:44So, that's really nice because getting Printline to work when you're writing a compiler is so important.
- 15:49And when it does work, it's, like, really one of the best feelings ever.
- 15:53But generally, no, if you wouldn't be able to import a Python package, for example, since the goal of the project was really just to provide people an alternative to using MATLAB.
- 16:05So, instead of writing your machine learning algorithms in MATLAB, you can write them in Python.
- 16:10Or, you know, in this case specifically, it'd be instead of writing in C++, you're writing it in Python.
- 16:14But the nature of those algorithms is that they're quite simple.
- 16:18So, we didn't – I didn't spend a lot of time trying to get objects or more complicated data structures working because I didn't anticipate it would be that common.
- 16:27Right.
- 16:28So, you're working with, like, loops and join and map and stuff like that.
- 16:33And then you feed it basic algorithms, huh?
- 16:36So, like, Bayesian stuff or linear regression.
- 16:40Yeah, exactly.
- 16:42You feed those off, huh?
- 16:43Okay.
- 16:43And I'm not a machine learning – I had not really done much machine learning at that time.
- 16:49So, I basically just went to my ML professor and was like, give me, like, your top five most common machine learning algorithms that you would expect to want to run on large data sets.
- 16:59I'll make these run in Python through this thing, right?
- 17:02Nice.
- 17:03And so, yeah.
- 17:05So, you basically – you write the algorithms.
- 17:06They compile down and then finally get transformed to run basically on the C, C++ runtime, like you said.
- 17:12And that goes through something called Boost Python, right?
- 17:15What is Boost Python?
- 17:16So, Boost Python – Boost is a bunch of packages for C++ that provide a lot of really, really powerful capabilities.
- 17:25And so, Boost Python is actually just an easier way of calling the Python C API.
- 17:31If I had done this now, I probably just would have skipped using Boost entirely because I'm pretty comfortable with the Python C API.
- 17:38But at the time, it was sort of the first Python plus another language interfacing I had done before.
- 17:45And this was pretty simple because it was already being used by Tupperware itself.
- 17:51So, I didn't have to do a lot of – I didn't actually have to incorporate it into the ecosystem.
- 17:55It was already there.
- 17:56Yeah.
- 17:57That's cool.
- 17:57Yeah.
- 17:58And by now, you've done so much with PyMongo and all the stuff in MongoDB.
- 18:02Yeah.
- 18:02Yeah.
- 18:02Cool.
- 18:03Okay.
- 18:03So, give us, like, a short example of what this algorithm might look like.
- 18:08I mean, code over audio is really hard.
- 18:11But just, like, what kind of stuff would you feed off to this system?
- 18:14So, I would expect there to be – so, you've got to assign to your variables.
- 18:19You most likely have an array that you are assigning values to.
- 18:26You need to iterate through the array or you need to iterate through the data that you've been given.
- 18:31And you need to do a lot of – or at least a decent amount of error checking.
- 18:35So, what that means in terms of syntax is you would want to have reassignable variables.
- 18:42You would need to have conditionals, loops, and arithmetic.
- 18:47Those are basically the most important things.
- 18:49This portion of Talk Python To Me is brought to you by us.
- 18:53As many of you know, I have a growing set of courses to help you go from Python beginner to novice to Python expert.
- 18:59And there are many more courses in the works.
- 19:01So, please consider Talk Python training for you and your team's training needs.
- 19:05If you're just getting started, I've built a course to teach you Python the way professional developers learn, by building applications.
- 19:12Check out my Python Jumpstart by building 10 apps at talkpython.fm/course.
- 19:17Are you looking to start adding services to your app?
- 19:20Try my brand new Consuming HTTP Services in Python.
- 19:23You'll learn to work with RESTful HTTP services as well as SOAP, JSON, and XML data formats.
- 19:29Do you want to launch an online business?
- 19:30Well, Matt Makai and I built an Entrepreneur's Playbook with Python for Entrepreneurs.
- 19:35This 16-hour course will teach you everything you need to launch your web-based business with Python.
- 19:40And finally, there's a couple of new course announcements coming really soon.
- 19:43So, if you don't already have an account, be sure to create one at training.talkpython.fm to get notified.
- 19:49And for all of you who have bought my courses, thank you so much.
- 19:53It really, really helps support the show.
- 19:55One of the things that seems a little challenging to me is like you're building something in Python
- 20:00and it's being more or less just compiled into the results of C++, which is a typed system, right?
- 20:09So, it expects, you know, here's a four-byte integer.
- 20:14Here's a Boolean.
- 20:16Here's a string pointer, right?
- 20:17Whereas in Python, you don't really have that, right?
- 20:20So, what do you have to do to make the type system sort of fit together there?
- 20:24That is a problem that comes up sort of time and time again because no matter how many layers of abstraction you're talking about,
- 20:32ultimately, machine code is pretty strictly typed.
- 20:36And we don't really like working in strictly typed languages.
- 20:40So, there's a lot of cost-benefit analysis going on there where you could say I demand that I can reassign my variable from an array to an integer
- 20:53or between different types of numbers, for example.
- 20:56Or you could say that's going to save me a ton of work if I just tell my user who I anticipate is probably used to MATLAB.
- 21:04Don't do that.
- 21:06This is Python, but it's not that Pythonic.
- 21:08Like, you know, maybe down the line when this is no longer a proof of concept.
- 21:13Ultimately, what we ended up doing was just sticking to pretty static types because whenever you write a compiler,
- 21:22it's kind of a debate between how much do I want to reinvent the wheel and how much are my users going to be willing to sort of have a more limited experience
- 21:32for the sake of, like, my sanity or how much time I'm willing to put in on this project.
- 21:37Sure, that makes a lot of sense.
- 21:39I feel like because it's such a limited set of types, really, that you can write your algorithm in,
- 21:45it's not so bad to sort of restrict it and talk about the types, right?
- 21:51You've got, like, the fundamental numerical types, strings, lists, and a few other things that they can really work with, right?
- 21:58Yeah, and I definitely, that's what we're trying to sell here.
- 22:03But I remember having this argument where I came up with what I thought was, like, a super clever solution for how we're going to do dynamic types.
- 22:11And it was, like, twice as much code as the entire compiler was before that point.
- 22:16And I brought it to my advisor.
- 22:17I was like, this is such a good idea.
- 22:19Like, I can't wait to implement this.
- 22:21And he kind of looked at me and he was like, this is not what we need right now.
- 22:24What we need is something that is working, which is, I guess, was my first experience with, you know, writing code that actually needs to do something.
- 22:33And it needs to do something as soon as possible.
- 22:35As opposed to code that's, like, beautiful and elegant.
- 22:38And I've, like, prototyped it three times.
- 22:40And I have all the time in the world.
- 22:41So.
- 22:42Yeah.
- 22:42You know, shipping is a feature, right?
- 22:44Yeah.
- 22:45No one's going to use your code if you don't actually get it out there and get it working, I guess.
- 22:49Yeah.
- 22:50I mean, I still struggle with that now.
- 22:52I definitely like to write code that is fully baked as opposed to just, like, getting stuff out of the door.
- 23:00But I'm definitely getting used to that now that I'm working in JavaScript more.
- 23:04Yeah, it's one benefit.
- 23:05That's awesome.
- 23:06Yeah.
- 23:07Yeah, I guess I really appreciate getting something out there so that people can use it and give me feedback.
- 23:12Like, this is working.
- 23:13This is not working.
- 23:14But, yeah, you just have to have some flexibility.
- 23:16You can't get locked into, like, some early prototype API or something, right?
- 23:19Yeah, exactly.
- 23:20Yeah.
- 23:21So you said that some of the LLVM IR features made your life easier and some made it harder.
- 23:25How'd that work out?
- 23:26So probably the most involved issue that comes up between converting from Python to a intermediate representation is like what you mentioned with types and reassigning.
- 23:41LLVM IR is written in SSA, which means static single assignment.
- 23:46And what that basically means is that you have your registers, which are your smallest unit of storage, and you can only assign to them once.
- 23:56So if you assign a number to your register, even if you want to assign something of the same type, it is frozen for that function call.
- 24:07So what I needed to do to get around that was basically move everything onto the stack.
- 24:13And once everything is on the stack, then you need to keep track of stuff using what people call a symbol table, which is basically just a dictionary where you can look up.
- 24:23I have a variable named X, and it lives at this memory address, and it's been around for this long and all sorts of other metadata like that.
- 24:31Okay.
- 24:32So, yeah.
- 24:33Does that make sense?
- 24:34Yeah, yeah.
- 24:35That's pretty interesting.
- 24:36You can only assign to them once.
- 24:38Okay.
- 24:38Pretty interesting.
- 24:39And then memory management, how did that work, actually?
- 24:42Because everything was on the stack, for the most part, things basically just took care of themselves.
- 24:48I didn't have to write a garbage collector, thankfully.
- 24:51But there was one particular instance that was really awkward.
- 24:57So if you are making a function call and you want to return something that can't fit into a register.
- 25:08So say, for example, you have an array, or you have a function call that populates an array, and then you want it to return the array to the original caller.
- 25:17The problem there is that you can no longer save that on the stack.
- 25:22Because as anyone who's ever programmed in C or C++ knows, it'll go out of scope.
- 25:26So the solution there is either, oh, do I have to keep track of scopes now?
- 25:32Do I actually have to write a garbage collector?
- 25:34Do I have to reinvent memory management in Python myself in two months?
- 25:40And the answer to that was, okay, no, that doesn't make sense either.
- 25:45So what ended up happening is I would just move the data that you put in your array onto the heap temporarily and then pass back a pointer to it.
- 25:56And then either copy it into the stack again and free it, or just chalk that up to a memory leak and let the stuff that you return from a function just call it a memory leak.
- 26:10So that's sort of a lose-lose situation.
- 26:13It was definitely one of those things that if I had had more time, I would have liked to dig into that.
- 26:18And dynamically reassigning variables to two parts of the compiler, I feel like, are unfinished.
- 26:24Sure.
- 26:25Okay.
- 26:26Yeah, that's a big challenge in adding your own garbage collector.
- 26:29That sounds like a lot of work.
- 26:31Sounds like it could be really fun, but it sounds like a different thesis.
- 26:34Exactly.
- 26:35It's not my problem right now.
- 26:37Okay.
- 26:37Interesting.
- 26:38So how was the performance?
- 26:40Say, like, one of the options was I could write my code in C++ and I could give it to Tupleware, or I could write it in Python and give it to Tupleware.
- 26:48What was the trade-off there in terms of performance?
- 26:50Was it huge or pretty close?
- 26:52So in terms of performance, I actually do have the numbers that I ran that I can dig up.
- 26:58But the bottom line was that the LLVM compiler itself was much faster.
- 27:08If you take C++ and you compile it down to LLVM IR using a compiler that I think is written in LLVM IR itself, or at least in C or C++, compared to a compiler that is written in pure Python that takes in Python code, does all the, builds the syntax tree, does the parsing, all the semantic error analysis, that kind of thing.
- 27:29It takes longer, but it doesn't take an order of magnitude longer.
- 27:35So if you're running ML algorithms on huge data sets, having the compilation of your algorithm, which only happens once, if it takes one second or if it takes five seconds, it doesn't really matter because we're talking about hours and hours of work.
- 28:01So it's definitely slower, but for what the project needed, it wasn't inhibitively slower.
- 28:08Yeah, yeah, sure.
- 28:08And for the execution speed, like would the algorithms run about the same or was it really different?
- 28:13So the algorithms itself, once they got down to LLVM IR, pretty much ran the same.
- 28:20There were a couple interesting cases there.
- 28:22So what actually happens when the code gets put into LLVM IR and is then shipped to the other half of the distributed system where it gets actually compiled, analyzed, and run, is that is all handled by LLVM and C++.
- 28:40There's no Python involved in that.
- 28:43And so the optimization passes that the LLVM IR compilers actually do are incredibly powerful.
- 28:50So the reason that there's not a lot of optimization happening in the compiler itself, I mean the compiler from Python to LLVM IR, is that it's pretty much going to get squashed no matter what with the LLVM passes themselves.
- 29:04So that was a huge benefit because I didn't really have to sweat optimizations, which is another huge part of compiler writing.
- 29:12Yeah, that's awesome.
- 29:12Just let LLVM do its analysis on the intermediate representation, yeah?
- 29:17Yeah, I mean it's a huge selling point of LLVM IR.
- 29:20But there is some interesting stuff about optimizing function calls.
- 29:25And basically if you have a recursive call, it becomes a lot more difficult.
- 29:31I basically discovered that the LLVM IR compiler is not as good at unrolling these recursive calls as it is when you give it Python code because there's sort of, if you're doing...
- 29:45It just basically doesn't like the recursion so much, huh?
- 29:47Yeah, there's some things that you have to do in Python that you don't have to do in C++ because it's closer to the end result that ends up tripping up the optimizer.
- 30:00And so for an algorithm that involves recursion, it will actually perform slower.
- 30:06Okay, interesting.
- 30:08Yeah, so this sounds like a really cool project if you have something super focused like Tupleware where you can take a really small subset of Python and execute it against that system, right?
- 30:21There's a bunch of different implementations or runtimes out there.
- 30:25So we've got things like IronPython and Jython that try to take a different take on Python.
- 30:29There's PyPy, there's Pigeon, there's Cython, and Numba.
- 30:35It sounds like you're much closer to something like Numba with this project than you would be, say, with Cython.
- 30:42Yeah, I think that a lot of the sort of the line in the sand that gets drawn between projects is everybody is trying to get Python code to run really, really fast.
- 30:52But the way that LLVM IR actually factors into it can vary a lot between projects.
- 30:59So the goal of Numba is to run your Python code super fast.
- 31:04LLVM IR is just one step in what is, I think, a six-step process.
- 31:10And there's not actually, there wasn't actually a way to extract the LLVM IR directly from Numba, which has changed now.
- 31:19But when I initially wrote it, they didn't have that ability.
- 31:23So I would have had to basically go in and pick and choose bits from their code and then move it into a separate project because there was no elegant way to really pull it out.
- 31:36Another huge difference is that a lot of these compilers are JITs, which work great for what they're trying to do and generally work faster.
- 31:48But the thing about JITs is that they're lazy.
- 31:51And if you have a lazy compiler, it won't actually compile anything unless it's run.
- 31:57But for Tupleware, we're completely unconcerned with running the code.
- 32:02We just want to compile it and then we want to take that compiled code and pass it off to somebody else.
- 32:07I see.
- 32:07So that's basically part of the mechanism for deploying to this distributed cluster, right?
- 32:14Because you've got to give it the executable code.
- 32:16I see.
- 32:16So sort of ahead of the time JIT compilation would be as close as you could get or something.
- 32:22I did some performance comparisons between Numba and PyLVM.
- 32:27But the problem there is that there's no way to actually run code using my compiler.
- 32:33But you have to run the code in order to compile stuff with Numba.
- 32:37So if you're doing benchmarking, the actual cost of the algorithm itself, it doesn't negate the data, but it makes it a pretty big asterisk.
- 32:48Like, by the way, we also had to run the algorithm.
- 32:51Yeah, sure.
- 32:53So it's hard to compare apples to apples.
- 32:55Yeah.
- 32:55Okay.
- 32:56So I guess maybe we should kind of wrap it up on PyLVM and talk about your MongoDB stuff.
- 33:02But what's the two quick questions?
- 33:05Is this a Python 2 or Python 3 project or both?
- 33:09This is Python 2.7 is what I wrote it in.
- 33:13Yeah, sure.
- 33:13Okay, cool.
- 33:15And what's the future for this project?
- 33:18Do you know if anyone's picking it up or, you know, people out there listening, if it sounds interesting, you can pick it up.
- 33:23It's on GitHub, right?
- 33:24Yes, it is on GitHub.
- 33:25I would really recommend people to look at the project and to contribute.
- 33:30But that is also from like a curiosity slash selfish interest.
- 33:35I think that if you're going to do it, there are a lot of design decisions that were made in the interest of this specific project.
- 33:45And so if it matches your use case, that's excellent.
- 33:47And so if it matches your use case, because there are so many variables, I recommend just writing one because it's probably one of my favorite projects I've ever worked on.
- 33:58Just because it's such a neat, like a very well defined and very satisfying problem to solve.
- 34:04Nice.
- 34:05Do you feel like you understand how a lot of these compilers and execution fits together better now?
- 34:10Yeah, I think it's probably the best learning project anyone could have is to actually understand what goes on under the hood of the language they use.
- 34:18It also made me much, much better at writing optimizations work.
- 34:26Okay.
- 34:26Yeah, very cool.
- 34:27All right.
- 34:28So let's talk about this, what you're up to these days at MongoDB.
- 34:32And you said you'd worked on PyMongo.
- 34:34And just for everyone listening, like that's the primary driver.
- 34:37The primary way to speak to MongoDB is to, you know, pip install PyMongo and import it.
- 34:43And then you just start talking.
- 34:44And basically the data exchange is dictionaries, right?
- 34:48You write a prototypical query sort of thing as a dictionary and you get back rows, which are documents in the forms of dictionaries, right?
- 34:55Yes, that's correct.
- 34:56So you don't actually have to get dictionaries anymore.
- 34:59For a long time, PyMongo would just automatically read your data into dictionaries.
- 35:04But now you can actually get raw BSON out of the driver.
- 35:07And that opens up a lot of doors for what you can do with it.
- 35:10Right.
- 35:10So BSON is binary JSON, which is the actual in-memory on-the-wire representation that you get talking to MongoDB.
- 35:19You had a cool talk about something called Monary, which is kind of getting superseded by the project that you're working on now.
- 35:27But you had some interesting performance numbers about getting dictionaries back or just in terms of analysis in general.
- 35:35Forget the database for a minute.
- 35:37Like working with dictionaries versus working with lists versus something like NumPy, right?
- 35:42Yes.
- 35:43So that was pretty enlightening for me as a relatively new Python programmer to realize that Python dictionaries, which I considered was kind of the most basic way of storing data in Python, was actually pretty slow.
- 36:00And compared to like ND arrays, which are C-style arrays that come with the NumPy package versus just something like a list, they are significantly slower.
- 36:10Yeah.
- 36:11You had some cool numbers.
- 36:12You said something like for a certain algorithm, working with a bunch of Python dictionaries, you could do like 12 million a second.
- 36:18Yes.
- 36:18And with lists, it was close to 10 times as much, 110 million a second.
- 36:22And with NumPy, you could do 500 million a second.
- 36:25Yes.
- 36:25And that's just a really simple like take a bunch of data that's in this form and just add them all together or like make pairs or something like that.
- 36:35Right, right.
- 36:36Like basically read through it or something to that effect.
- 36:38Exactly.
- 36:39Okay.
- 36:39And so you said, look, the way with the BSON capability notwithstanding, like basically the way that PyMongo works is you do a query, you get a bunch of dictionaries back in Python.
- 36:49But if you're doing data science or something computational, you probably want to work in, say, NumPy, right?
- 36:57But the workflow would be I make a query in my Python layer.
- 37:00It goes to Mongo.
- 37:01That comes back across the wire.
- 37:03It gets turned into Python dictionaries and then serialized back in down in the C layer into NumPy.
- 37:08And that was a problem, right?
- 37:10Yes, that's a huge problem because you're taking something that is pretty fast, namely MongoDB, and you have something on the other end of your line, which is also really fast, NumPy.
- 37:20And then you have this bottleneck, which is Python dictionaries.
- 37:24And it's kind of a shame that there hasn't been more stuff related to this until recently because MongoDB is an incredibly powerful database and it's very easy to use.
- 37:36And NumPy also has a selling point that it's extremely powerful and pretty easy to use.
- 37:40So you'd think that for a lot of data scientists or for people who don't love coding in MATLAB, they would want to put these two tools together.
- 37:48But MongoDB hasn't been used in this context super often because of the limitation that in order to get the data out, you have to put it through this kind of clunky data structure before getting it back into your super fast arrays.
- 38:01Right.
- 38:01So you said basically with some tests you did, like going through PyMongo, you could read about from MongoDB through Python into NumPy about 150,000 documents a second.
- 38:12And there's this other project called Monary that you were talking about when I saw this presentation where it basically says, let's stay down in the C layer the entire time.
- 38:24And even though we're calling it from a Python app, it sort of connects it directly to NumPy, right?
- 38:31Exactly. So now we are taking this raw BSON format and basically moving it directly into C style arrays.
- 38:39So you have two things that are in sort of natural machine order and you no longer have to take it out of that.
- 38:47Nice. And that's something like 10 times faster, right? At least it was.
- 38:51Yeah, it was 1.7 million reads per second compared to 150,000.
- 38:56That's a big difference. You might.
- 38:58That's like a difference between going and getting a cup of coffee while your algorithm runs on your data versus going to lunch or something.
- 39:07Yes, exactly. And so it's really exciting to me that we can leverage these two really awesome technologies.
- 39:14And Monary itself is actually not under active development anymore.
- 39:19Monary is a project that actually was community based.
- 39:22It was started by somebody who did not work at MongoDB, David Beach, who basically wrote it because he was sick of having to lose so much time to Python dictionaries.
- 39:33And so now we are writing a codec that is 100% in C that takes this raw BSON, which before, I think maybe a year or two ago, you couldn't actually get raw BSON from PyMongo, but now you can.
- 39:49So now you can take this raw BSON and you can have this super lightweight package that just converts it directly into NumPy and you are good to go.
- 39:58That's really cool. So what's this thing called now?
- 40:00So this is called BSON NumPy, which is a deeply uncreative name.
- 40:05And I am definitely open to alternatives, but it is descriptive.
- 40:10Basically, it is in beta.
- 40:11So maybe closer to alpha because we stopped working on it about two weeks ago and we released, we actually released about two weeks ago.
- 40:20So it's the project of both me and a Jesse Giryu Davis, who is my coworker who you spoke to twice, I think.
- 40:29Yeah, yeah. Jesse's a friend of the show.
- 40:30So hello, Jesse.
- 40:31And nice work on this project as well.
- 40:33We are both really eager to hear people's feedback.
- 40:36We really want MongoDB to become more useful for data scientists.
- 40:43And we think that this is really the tool that is going to make it happen.
- 40:46Yeah, it seems like a really great idea.
- 40:48Just we'll skip the serialization where it's slow and just flow the data straight into NumPy.
- 40:54This portion of Talk Python is brought to you by Hired.
- 41:08Hired is the platform for top Python developer jobs.
- 41:11Create your profile and instantly get access to 3,500 companies who will work to compete with you.
- 41:16Take it from one of Hired's users who recently got a job and said,
- 41:19I had my first offer on Thursday after going live on Monday and I ended up getting eight offers in total.
- 41:24I've worked with recruiters in the past, but they've always been pretty hit and miss.
- 41:28I tried LinkedIn, but I found Hired to be the best.
- 41:30I really like knowing the salary up front.
- 41:33Privacy was also a huge seller for me.
- 41:35Sounds awesome, doesn't it?
- 41:37Well, wait until you hear about the sign-in bonus.
- 41:39Everyone who accepts a job from Hired gets $1,000 sign-in bonus.
- 41:42And as Talk Python listeners, it gets way sweeter.
- 41:45Use the link Hired.com slash Talk Python To Me and Hired will double the signing bonus to $2,000.
- 41:50Opportunities knocking.
- 41:52Visit Hired.com slash Talk Python To Me and answer the door.
- 42:03I guess people can just go to MongoDB and find it.
- 42:05How do they learn more about this project?
- 42:07Because it's in its very, very first iteration.
- 42:11It's not...
- 42:12We released it on bsunnumpy.readthedocs.io.
- 42:17And you can find it on Read the Docs.
- 42:21Basically, we...
- 42:22Neither myself nor Jesse are data scientists, but we're both super familiar with Python and
- 42:29we're super familiar with MongoDB.
- 42:31But that does leave a lot of open questions that I wouldn't necessarily know how to answer.
- 42:37So I'm not sure what the most common data type for NumPy would be.
- 42:43I mean, there are all these really cool, complex data types, but for all I know, nobody ever
- 42:48uses them.
- 42:49So what I really want is to be able to reach out to the community and have people tell me
- 42:53what they need.
- 42:54Because a lot of the great features at MongoDB pretty much came out because somebody had a
- 42:59need and they asked for it.
- 43:00So we wrote them and then it became a huge selling point.
- 43:02So what I want is just to hear from what people who would use these technologies really want.
- 43:07Yeah, absolutely.
- 43:08So people can check it out.
- 43:09It's bsun-numpy on PyPI.
- 43:12And also I'll put the link in the show notes.
- 43:14So check it out and give both of you guys feedback on like, hey, this looks really cool, but it
- 43:20doesn't do whatever, right?
- 43:22Exactly.
- 43:23Nice.
- 43:23You also had in your presentation about Monary, it's still kind of the same type of question
- 43:29and answer type thing that you get the same kind of analysis you can do.
- 43:32with Bison-numpy, you had an interesting analysis you did of taxi cabs and Times Square, right?
- 43:39Do you want to tell people that story?
- 43:41Sure.
- 43:41So when I first joined MongoDB, I was working out of the headquarters, which is in Times Square
- 43:49in New York City.
- 43:50As a side note, right now I work out of Stockholm, Sweden, which I prefer quite a bit more to
- 43:55fighting my way through the crowds.
- 43:56But I was struck one morning when I was trying to think of sort of a nice data set to
- 44:02sort of show examples of how much faster Monary would be than Pymongo.
- 44:07I just was so sick of fighting through the crowds and fighting to get to the train station.
- 44:14And I kind of figured like, wow, what is...
- 44:16Why is there a Batman in my way?
- 44:17What's going on in this place?
- 44:20Exactly.
- 44:20It's like, how can I get out of here as fast as possible?
- 44:23Like, where can I go?
- 44:25How can I do it?
- 44:26So I also had access to the taxi data for all of New York City, which is freely available
- 44:33online.
- 44:34And it's a really interesting data set.
- 44:36And so I basically just took that data set and I looked at all the rides that both started
- 44:43and ended in Times Square.
- 44:44Because I kind of just wanted to know, like, where are people going?
- 44:47Like, what's the rush?
- 44:48Where are you coming from?
- 44:50Why are you coming here?
- 44:52Of all the places in New York City to be, why Times Square?
- 44:54Okay.
- 44:55Yeah.
- 44:55That's really cool.
- 44:56And you found, you had a really great bunch of visualizations that came out of MATLAB.
- 45:01And I'll put the link to that video up there because you have, you know, some really great
- 45:06maps and like bars living on flat maps and all kinds of stuff.
- 45:10I thought that was great.
- 45:10Yeah.
- 45:11It's like, it's MATPLOTLIB.
- 45:12Oh, yeah, yeah.
- 45:13Sorry.
- 45:13I keep, I don't know why I said MATLAB.
- 45:14MATLAB because we were talking about, yeah, yeah.
- 45:16MATPLOTLIB is what I had in mind.
- 45:18Yeah.
- 45:18But yeah, no, I mean, the point of those diagrams were just basically to show off how
- 45:23cool NumPy can be and how powerful MATPLOTLIB can be for creating really beautiful visualizations.
- 45:31And I know that there are a lot of different visualization tools out there.
- 45:35But in terms of selling Python and providing a way for data scientists to use both MongoDB
- 45:41and NumPy, I felt like it was a pretty good sell.
- 45:44Yeah, that's cool.
- 45:45And you also were able to leverage, I think the interesting linkage there is you were able
- 45:50to put a huge amount of data in Mongo and apply a geospatial index to it and then use that
- 45:57in your queries, but then also do the analysis with NumPy, right?
- 46:01Mm-hmm.
- 46:02Exactly.
- 46:03So you are taking advantage of these geo queries, which are really simple, really easy to use,
- 46:08but also very fast.
- 46:10And you are taking advantage of Python, NumPy specifically, where you have really, really
- 46:17fast analysis, but a lot of these algorithms are actually written for you.
- 46:20So you can use a lot of these scientific Python packages that have done what I consider the hard
- 46:26work for you completely.
- 46:27Yeah.
- 46:28Yeah.
- 46:28It seems like just take the tools, click them together, and you get some really great
- 46:32analysis.
- 46:33That's awesome.
- 46:33Yeah.
- 46:34So I'm looking forward to your presentation where you talk about your Bison NumPy version.
- 46:40Yeah.
- 46:41Well, I'll have to find something better, some better visualizations and some, you know, I
- 46:47don't have as many things to complain about now that I live in Stockholm.
- 46:49So I have to...
- 46:51Yeah.
- 46:51You can do something with snow or winter or something.
- 46:54Who knows?
- 46:54Yeah.
- 46:55The darkness.
- 46:55Yes, exactly.
- 46:56Here's the light analysis.
- 46:58All right.
- 46:59Cool.
- 46:59So I guess let's go ahead and leave it there.
- 47:01That sounds like a great project.
- 47:02And so if you're out there working with MongoDB and ultimately your data ends up in NumPy,
- 47:07you know, maybe skip the dictionaries is the message, right?
- 47:10If you can.
- 47:10Yeah, exactly.
- 47:11And especially for people who use scientific Python and have never considered MongoDB a viable
- 47:17option, I think that is going to change.
- 47:19And I think that we are going to be able to write programs that take advantage of all this
- 47:25cool work that has already been done.
- 47:27Yeah.
- 47:27And I think having it officially part of the product, the library, gives it a little more,
- 47:33probably gives people more confidence to build upon it.
- 47:35Yeah, exactly.
- 47:36And I am personally just so excited because this is the first project that I've really had
- 47:41ownership over.
- 47:42I contributed a lot to PyMongo, but it wasn't my project.
- 47:45Well, I feel very proud of what I've done for this particular project.
- 47:50It sounds really, really cool.
- 47:51So, so nice work.
- 47:52Let me ask you a couple of questions before we get out of here, as I always do.
- 47:57First one, if you're going to write some Python code, maybe not C code, if you write some Python
- 48:01code, what editor do you open up?
- 48:03So I use PyCharm.
- 48:04And it's funny that you mentioned C code because I got a perpetual license for JetBrains.
- 48:13And I love that I can write, I can write Node, I can write Ruby, I can write Python, I can write C.
- 48:20And all my shortcuts are the same.
- 48:22I was a Vim user before Jesse convinced me to switch over to PyCharm.
- 48:27And now I'm like completely converted.
- 48:30I can have all my Vim shortcuts and I can also have all the power of a really great IDE.
- 48:34So I really recommend the JetBrains libraries because it's really nice to not have to switch
- 48:39between IDEs, between like SeaLion, PyCharm, Ruby9, WebStorm.
- 48:45You know, it's the same environment.
- 48:47So I feel like I don't have to lose any time to relearning stuff.
- 48:50Yeah, that's really cool.
- 48:51Jesse's a big fan of PyCharm and so am I.
- 48:54Just so people who are not familiar, basically there's this IntelliJ platform, which is kind
- 48:59of the IDE and then they plug in the language specific stuff.
- 49:02So like when you say it's all the same, it's like all kind of the same base.
- 49:05And like you said, like it behaves the same.
- 49:07It's pretty sweet.
- 49:08Yeah.
- 49:08Okay, cool.
- 49:09And we just this week passed 100,000 packages on PyPI.
- 49:14So that's a big milestone.
- 49:16Hooray.
- 49:17Wow.
- 49:18Yeah, no kidding.
- 49:19And so there's a ton of them out there.
- 49:21Do you have one that maybe like you think people don't necessarily know about?
- 49:24You're like, hey, you should check this out.
- 49:26BSON NumPy maybe?
- 49:28Yes.
- 49:29Is it too shamelessly self-promoting to say that you should download BSON NumPy and that's
- 49:34the best package on PyPI?
- 49:36It's one of the newer ones.
- 49:38That's a really good question.
- 49:39I guess I'll just go with that because I'm very utilitarian with my packages.
- 49:44I pretty much just keep them to a minimum.
- 49:47Okay.
- 49:47Yeah.
- 49:48Very cool.
- 49:48All right.
- 49:49Yeah.
- 49:50It's a great package.
- 49:50And you know, you guys need some people to try it out and actually do real data science
- 49:54with it.
- 49:54So that's great.
- 49:55Exactly.
- 49:56All right.
- 49:57So final call to action.
- 49:58What do you want people to check out or do?
- 50:00I would like people to check out BSON NumPy because I think it's a really cool project.
- 50:05I think that if anyone is interested in a really neat piece of code, they should look through
- 50:12the LLVM Py work, especially if you're either new to compilers, maybe new to Python, new to
- 50:17LLVM IR.
- 50:18It's a very nice sort of pet project and it's very self-contained and it is, in my opinion,
- 50:24pretty well documented.
- 50:25There's an entire 20-page thesis I wrote about it.
- 50:28So if you have questions, they're probably answered.
- 50:30I'm also always happy to answer by like email, Twitter, anything.
- 50:34So those are my two things I would love to see people do.
- 50:38All right.
- 50:38That sounds great.
- 50:39Ana, thank you so much for being on the show.
- 50:41It's been really interesting to talk to you.
- 50:42Yeah, of course.
- 50:43Thank you so much again for having me.
- 50:44Yeah.
- 50:45Thanks so much.
- 50:45Bye.
- 50:45Bye.
- 50:46This has been another episode of Talk Python To Me.
- 50:50Today's guest has been Ana Herlihy and this episode has been sponsored by Hired and Talk
- 50:56Python Training.
- 50:57Are you or a colleague trying to learn Python?
- 51:00Have you tried books and videos that just left you bored by covering topics point by point?
- 51:05Well, check out my online course, Python Jumpstart by Building 10 Apps at talkpython.fm
- 51:10slash course to experience a more engaging way to learn Python.
- 51:13And if you're looking for something a little more advanced, try my Write Pythonic code course
- 51:18at talkpython.fm/pythonic.
- 51:21Hired wants to help you find your next big thing.
- 51:24Visit Hired.com slash Talk Python To Me to get five or more offers with salary and equity
- 51:29presented right up front and a special listener signing bonus of $2,000.
- 51:35Be sure to subscribe to the show.
- 51:36Open your favorite podcatcher and search for Python.
- 51:38We should be right at the top.
- 51:40You can also find the iTunes feed at /itunes, Google Play feed at /play and direct
- 51:46RSS feed at /rss on talkpython.fm.
- 51:49Our theme music is Developers, Developers, Developers by Corey Smith, who goes by Smix.
- 51:54Corey just recently started selling his tracks on iTunes, so I recommend you check it out at
- 51:59talkpython.fm/music.
- 52:01You can browse his tracks he has for sale on iTunes and listen to the full length version of the theme
- 52:06song.
- 52:06This is your host, Michael Kennedy.
- 52:08Thanks so much for listening.
- 52:09I really appreciate it.
- 52:11Smix, let's get out of here.
- 52:13I'll see you next time.
- 52:34I'll put it in.
- 52:35Thank you.