Latest / Talk Python To Me / #21: PyPy - The JIT Compiled Python Implementation
Transcript
- 0:00Is your Python code running a little slow?
- 0:02Did you know the PyPy runtime could make it run up to 10 times faster?
- 0:06Seriously.
- 0:07Maja Falkowski is here to tell us all about it.
- 0:10This is episode number 21, recorded Wednesday, July 8th, 2015.
- 0:16Developers, developers, developers, developers.
- 0:19I'm a developer in many senses of the word because I make these applications, but I also
- 0:25use these verbs to make this music.
- 0:27I construct it line by line, just like when I'm coding another software design.
- 0:31In both cases, it's about design patterns.
- 0:34Anyone can get the job done.
- 0:36It's the execution that matters.
- 0:37I have many interests.
- 0:39Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries, the
- 0:45ecosystem, and the personalities.
- 0:47This is your host, Michael Kennedy.
- 0:49Follow me on Twitter, where I'm @mkennedy.
- 0:51Keep up with the show and listen to past episodes at talkpython.fm.
- 0:56And follow the show on Twitter via at talkpython.
- 0:59This episode, we'll be talking with Maja Falkowski about the amazing alternative Python implementation,
- 1:05PyPy.
- 1:06This episode is brought to you by Hired and Codeship.
- 1:10Thank them for supporting the show via Twitter, where they're at hired underscore HQ,
- 1:15and at codechip.
- 1:16Before we get to Maja, let me share a little news with you.
- 1:19First off, Talk Python To Me has a new domain name, talkpython.fm.
- 1:24I put the idea of a shorter .fm-based domain out on Twitter, and I'd say about 80% of the
- 1:30listeners said they liked it better than the longer .com domain.
- 1:32So here you go.
- 1:34About a month ago, I moved all the MP3 file traffic out of Amazon S3 and into a dedicated
- 1:39audio file cache server.
- 1:41It's a lightweight Flask Python 3 app running through Nginx and uWSGI.
- 1:47A few listeners expressed interest in seeing the code, so I did a little work to try to generalize
- 1:52this a bit, and I open sourced it.
- 1:53I'm calling the project Cachedier.
- 1:55And you can find a blog post as well as a link to the GitHub project on the show notes.
- 2:01Next up, we have a new Python podcast.
- 2:03I'm super happy to announce a Python podcast by Brian Okken called Python Test Podcast.
- 2:11You can find it at pythontesting.net slash category slash podcast.
- 2:16Now, let's get on to the show.
- 2:18Maja, welcome to the show.
- 2:19Thanks for inviting me.
- 2:20Yeah, I'm super excited to talk about our topic today, which is PyPy.
- 2:25And I think what you guys are doing with PyPy is so incredibly cool to be taking some of
- 2:32these JIT compilation GC sort of semi-compiled languages or concepts and applying them to
- 2:38Python.
- 2:38So really happy to talk about that.
- 2:40The story of compiling dynamic languages is really sort of old and half-forgotten.
- 2:47Like, we know these days that you can do this with JavaScript, but the original work on small
- 2:54talk dates back to at least mid-90s, if not earlier, which is what we are all building on
- 3:02top of anyway.
- 3:03So it's nothing new.
- 3:05The new part is just applying this to Python.
- 3:07That's right.
- 3:09That's right.
- 3:09Well, I think it's great.
- 3:11Maybe before we get into the details of what you guys are doing, maybe you could give the
- 3:16listeners who are not familiar with PyPy a little history and introduction to it.
- 3:21So PyPy is essentially a Python interpreter, which works very, very similarly to the normal
- 3:29thing that you would call Python, that technically is called CPython.
- 3:34It's a Python interpreter written in C.
- 3:35And we have a different Python interpreter, which is implemented slightly differently.
- 3:40And for the most part, glancing over all the details, it should run faster on most of the
- 3:48examples because it can dynamically compile Python down all the way to the assembler level.
- 3:55So it's like a normal Python interpreter, except sometimes faster, most times faster, in fact.
- 4:02That's it.
- 4:03It sounds very simple, but it's actually quite a big project.
- 4:07It has been around more or less 10 years by now.
- 4:10Wow.
- 4:11It started 10 years ago.
- 4:12And when did you get involved with it?
- 4:14I got involved, I think, 2006 or 2007.
- 4:19I was doing, I sort of got interested in Python static analysis, which PyPy, part of PyPy is doing
- 4:29that, is taking a restricted subset of Python, which PyPy is implemented in and compiling it
- 4:35down to the C level.
- 4:36So I was interested in Python static analysis and I glanced over PyPy project and sort of
- 4:42started getting involved.
- 4:44And then I got a spot at Google Summer of Code to work on PyPy for the summer.
- 4:50And that's essentially how it all started.
- 4:52How many people work on PyPy or contribute to PyPy?
- 4:55Depending how you count, it's anything between three and 30.
- 5:00PyPy is a big umbrella project for a vast variety of anything from, as I said, a Python interpreter
- 5:09to very researchy stuff that people at various universities try to experiment with.
- 5:15Like there is a couple of people working on running Python and PHP in the same process.
- 5:22So you run PHP code in the server, but you can still call Python functions in that process.
- 5:29There are people working on software transactional memory.
- 5:33So it's a big umbrella project that is a research vehicle for a lot of people, additionally to
- 5:39being the Python interpreter.
- 5:40Yeah, I can see how that would work for if you're doing some sort of academic research,
- 5:45especially something with JIT and GC, then it makes a lot of sense.
- 5:50I think one of the things that people either who are new to Python or have kind of dabbled
- 5:54in it, but are not, you know, deeply working with it and thinking about the internals of
- 6:00it every day, don't realize that there's actually a whole variety of different interpreters out
- 6:05there.
- 6:05There's a bunch.
- 6:07They're all slightly different.
- 6:10So let's glance over them because I think it's important to know there's like the CPython is
- 6:17the normal Python interpreter that is probably used by 99% of people using Python.
- 6:22Yeah.
- 6:23If I open up Linux or my Mac and I type the word Python and enter that's CPython, right?
- 6:27That's CPython.
- 6:28So that's what most people would use.
- 6:30CPython internals that you need to know is the fact that it's implemented in C.
- 6:36And another internal detail that's important to know is that it exposes the C API, which
- 6:43goes quite low.
- 6:45So it's possible to write C extensions in C for Python.
- 6:49So you write a bunch of C code, use a special API for accessing Python objects, and then it
- 6:54can be called from Python code, your C functions.
- 6:59Then we have Jiton, which is quite old, actually.
- 7:04And it's a Python interpreter written in Java and a similar project called Iron Python, which
- 7:11is a Python interpreter written in C#.
- 7:13And those two interpreters, they're quite widely used for people who write Java and want a better
- 7:22language.
- 7:22So they, so their main big advantage is integration with the underlying platform.
- 7:31So Jiton is very well integrated with Java and Iron Python with C#.
- 7:35So if you're writing C#, but you would really love to write some Python, you can do that these
- 7:40days.
- 7:40And then there's PyPy, which is another Python interpreter written slightly differently with
- 7:46a just-in-time compiler.
- 7:48So those are the four main interpreters.
- 7:50And there is, there is quite a few projects that try to enter this space, like PyStone, which
- 7:57is another Python interpreter written by Dropbox people.
- 8:00Yeah.
- 8:01I wanted to ask you about PyStone because that's, that seems to me to be somewhat similar to
- 8:07what you guys are doing.
- 8:08And, and it comes, the fact that it comes from Dropbox where Guido is and a lot, there's a
- 8:13lot of sort of gravity for the Python world at Dropbox that made it more interesting to me.
- 8:17Do you know anything about it or can you speak to how it compares or the goals or anything
- 8:21like that?
- 8:23So, well, I know that it's very, very similar to the project that once existed at Google
- 8:28called Unladen Swallow.
- 8:29So the main idea is that it's a Python interpreter that contains a just-in-time compiler that uses
- 8:38LLVM as the underlying assembler platform.
- 8:41Let's call it that way.
- 8:42And this is the main goal.
- 8:44The main goal is to run fast.
- 8:46Now, the current status is that it doesn't run fast.
- 8:50That's for sure.
- 8:52It runs roughly at the same speed as CPython for stuff that I've seen on their website.
- 8:57As for the future, I don't know.
- 9:01I really think the future is really hard.
- 9:02Especially when you don't have much visibility into it, right?
- 9:06Yeah.
- 9:07Like, I can tell you that like PyPy, PyPy has a bunch of different problems to PyStone.
- 9:15So, for example, we consciously choose to not implement the C API at first because the
- 9:23C API ties you a lot into the CPython model.
- 9:28We choose not to implement it at first.
- 9:31We implement it later as a compatibility layer.
- 9:34So the first problem is that it's quite slow.
- 9:38It's far, far slower than the one in CPython.
- 9:41And as far as I know, right now, Dropbox uses the same C API, which gives you a lot of problems,
- 9:48like a lot of constraints of your design.
- 9:51But also, like, gives you a huge, huge benefit, which is being able to use the same C modules, which are a huge part of the Python ecosystem.
- 10:00Yeah, especially some of the really powerful ones that people don't want to live without, things like NumPy and, to a lesser degree, SQLAlchemy, the things that have the C extensions that are really popular as well.
- 10:11So you guys don't want to miss out on that, right?
- 10:14Right.
- 10:15So you brought two interesting examples.
- 10:18So, for example, NumPy is so tied to the C API that it's very hard to avoid.
- 10:24It's not just NumPy.
- 10:27It's the entire ecosystem.
- 10:28We, in PyPy, we re-implemented most of NumPy, but we are still missing out on the entire ecosystem.
- 10:37And we have some stories how to approach that problem, but it's a hard problem to tackle, that we choose to make harder by not implementing the C API.
- 10:47However, for example, the SQLAlchemy stuff.
- 10:50SQLAlchemy is Python.
- 10:53It's not C, but it uses the database drivers, which are implemented in C, like a lot of them.
- 11:01So our answer to that is CFFI, which is a very, very simple way to call C from Python.
- 11:08And CFFI took off like crazy.
- 11:12Like, for most things, like database drivers, there's a CFFI-ready replacement that works as well and usually a lot better on PyPy that made it possible to use PyPy in places where you would normally not be able to do that.
- 11:31And CFFI is like really, really popular.
- 11:35It gets like over a million downloads a month, which is quite crazy.
- 11:39And CFFI is not just a PyPy thing.
- 11:42It also works in CPython, right?
- 11:44Yeah, it works in CPython in between like 2.6 and 3.something, I think.
- 11:503.whatever is the latest.
- 11:51And it works on both PyPy and PyPy3.
- 11:54And since it's so simple, it will probably work one day in JITON too.
- 12:01You said you have a plan for the NumPy story and these other heavy sort of C-based ones.
- 12:07Currently, the way you support it, this is a question I don't know, is that you've kind of re-implemented a lot of it in Python?
- 12:15So we, to be precise, we re-implemented a lot of it in our Python.
- 12:22Our Python is the internal language that we use in PyPy.
- 12:26Right, that's the restricted Python that you guys actually target, right?
- 12:29Yes.
- 12:30Yeah, but we don't, generally don't encourage anybody to use it.
- 12:35Unless you're writing interpreters, then it's great.
- 12:38But if you're not writing interpreters, it's an awful language.
- 12:41But we, so the problem with NumPy is that NumPy ties so closely that we added special support in the JIT for parts of it and things like that, that we decided are important enough that you want to have them implement in the core of PyPy.
- 12:57So we have, most of NumPy actually works on PyPy.
- 13:01And this is sometimes not good enough because if you're using NumPy, chances are you're using SciPy, Scikit, Learn, Matplotlib, and all this stuff.
- 13:11We have some story how to use it, which is to, the simplest thing is just to embed the Python interpreter inside PyPy and call it using CFFI.
- 13:23It's a great hack.
- 13:24It works for us.
- 13:25Really?
- 13:25You can like fall back to regular Cpython within your PyPy app?
- 13:30Yeah, it's called PyMetabiosis.
- 13:33That's awesome.
- 13:34I'm pretty sure there's at least one video online with the author talking about it.
- 13:44It works great for the numeric stack, which is its goal.
- 13:49So this is our story.
- 13:51We are still raising funds to finish implementing NumPy.
- 13:56It says a very, very long tale of features.
- 13:58And once we are done with NumPy, we'll try to improve the story of calling other numeric libraries on top of PyPy to be able to mostly seamlessly be able to use stuff like SciPy and Matplotlib.
- 14:13It will still take a while.
- 14:15I'm not even willing to give an estimate.
- 14:17Sure.
- 14:19But it's great.
- 14:20And it does look like there's a lot of support there.
- 14:21We'll talk about that stuff in a little bit because I definitely want to call attention to that and let people know how they can help out.
- 14:27Before we get into those kind of details, though, can we talk just briefly about why would I use PyPy or when and why would I use PyPy over, say, CPython or Jython?
- 14:39Like, what do you guys excel at?
- 14:41When should a person out there is thinking, like, they've just realized, oh, my gosh, there's more than one interpreter?
- 14:46How do I choose?
- 14:48Like, can you help give some guidance around that?
- 14:49So typically, if you just discovered, oh, there's more than one interpreter, you just want to use CPython.
- 14:55That's like the simplest answer.
- 14:57You want to use CPython, but if you're writing an open source library, you want to support PyPy at least, which is what most people are doing.
- 15:04They're using CPython and the libraries support PyPy for the most part.
- 15:08Our typical user, and this is a very terrible description, but this is our typical user.
- 15:14This episode is brought to you by Hired.
- 15:27Hired is a two-sided, curated marketplace that connects the world's knowledge workers to the best opportunities.
- 15:33Each offer you receive has salary and equity presented right up front, and you can view the offers to accept or reject them before you even talk to the company.
- 15:43Typically, candidates receive five or more offers in just the first week, and there are no obligations, ever.
- 15:49Sounds pretty awesome, doesn't it?
- 15:51Well, did I mention there's a signing bonus?
- 15:53Everyone who accepts a job from Hired gets a $2,000 signing bonus, and as Talk Python listeners, it gets way sweeter.
- 16:01Use the link Hired.com slash Talk Python To Me, and Hired will double the signing bonus to $4,000.
- 16:10Opportunity's knocking.
- 16:11Visit Hired.com slash Talk Python To Me and answer the call.
- 16:14You have a large Python application that's spanning servers, serving millions of users,
- 16:30and you're running into corners.
- 16:33Like, you can't serve requests quickly enough.
- 16:37You can't serve enough users from machine.
- 16:40You're running into problems.
- 16:41Now, your application is too big to, say, rewrite it in C or Go, or it's just, like, too scary for whatever reason.
- 16:50So, you look, like, what it would take to run stuff in PyPy.
- 16:54It usually takes, like, a bit of, your code should run, but it usually takes a bit of effort to, like, see what sort of libraries do you use.
- 17:06Do you use NSE extensions?
- 17:07If their C extensions are, like, crucial, can you replace them with something?
- 17:11So, yeah, this is our typical user.
- 17:13And I have people, I run a consulting company that does that.
- 17:18There are people coming and asking, like, okay, I have this set up.
- 17:22It's impossible to do anything with it now.
- 17:25Can I just, like, swap the interpreters, make it run faster, and make the problems go away?
- 17:30This is our typical user.
- 17:33I hear why you described it that way is maybe not the best way, but, you know, you're right.
- 17:38If you have 100,000, half a million lines of Python, and really you just need to make it a little faster.
- 17:44If switching to a different interpreter like PyPy will solve that, that's great.
- 17:49So, speaking of faster, can you talk about the performance comparisons?
- 17:53I have a little example I'll tell you, but I'll let you go first.
- 17:57So, as usual, performance comparisons are usually very hard to do and flawed.
- 18:04Everybody, yes, absolutely.
- 18:05Everybody's thing they care about is not exactly what you're measuring, and so it might be totally misleading.
- 18:10But give it a shot.
- 18:12One good estimate is if you don't have benchmarks, you don't care about performance.
- 18:17Like, if you never wrote benchmarks for your applications, then chances are you don't actually care all that much.
- 18:24And you shouldn't really...
- 18:27That's the first step.
- 18:28Like, make sure you know how fast your applications run.
- 18:32Once you know that, you can measure it on different interpreters.
- 18:34But as far as expectations go, PyPy tends to run heavy computations a lot faster.
- 18:41Like, a lot is anything between 10 and 100 times faster, depending on the workload.
- 18:49For stuff that's more...
- 18:50And again, what is a typical Python program?
- 18:54Typical Python program is probably Hello World.
- 18:56How fast Python runs Hello World.
- 18:58Roughly at the same speed as CPython, you won't notice.
- 19:01But for a typical web application, the speed up, if you're not heavily relying on C extensions, would be around 2x.
- 19:09So, 2x faster for a lot of people makes a lot of difference.
- 19:13Absolutely.
- 19:14It also depends on where are you waiting.
- 19:16Like you said, you should profile it and figure this out.
- 19:18If your Python web app is slow because 80% of the time you're waiting on the database, well, it doesn't really matter how fast your Python code is.
- 19:26Your database is a problem.
- 19:27Or something like this, right?
- 19:29Exactly.
- 19:30Exactly.
- 19:30And like, the thing is like, so let's narrow it down to, say, web applications.
- 19:36Like, okay, let me first talk about other stuff and then let's go to web applications.
- 19:40Like, where people found Piper incredibly useful is things like high-frequency trading.
- 19:46Like, not the very crazy high-frequency where you have to make decisions like multiple times per millisecond.
- 19:52But like the sort of frequency where you want to make decisions within a few milliseconds.
- 19:58And then those decisions are like tens of milliseconds.
- 20:02Those decisions can, then you want to be able to modify your algorithms fast, which is a lot easier on Python than, say, on C++.
- 20:10And you're running into less problems with how to shoot yourself in the foot and segfault all your trading.
- 20:16So, that's when people tend to use Piper because like, in this sort of scenario, it would be like 10 times faster.
- 20:24So, super low latency stuff where 10 milliseconds makes a huge difference to you.
- 20:28Something like that.
- 20:29Yeah.
- 20:29Okay.
- 20:30Another example is there's, for example, a project called MyHDL, which is the hardware emulation layer.
- 20:40And these tend to emit sort of low-level Python code that just do computations to emulate hardware.
- 20:48And then again, on Piper, it's like over 10 times faster.
- 20:51So, those are the very good examples.
- 20:53The very bad examples, as you said.
- 20:54If your program, if your staff is waiting on the database, then you're out of luck.
- 21:00Like, no matter how fast your interpreter responds.
- 21:02But yeah.
- 21:05On the typical web server load, even if there is such a thing, it would be around two times speed up.
- 21:11Sometimes more, sometimes less.
- 21:13Depending on the setup, really.
- 21:15But as I said, you should really measure yourself.
- 21:18The things where Python is quite better, if you spend most of the time in C extensions,
- 21:26then it's either not helping or actually prevent you from doing so.
- 21:29And the second time where it's not that great is when the program is short running.
- 21:36So, because it's just-in-time compilation, it means that each time you run your program,
- 21:41the interpreter has to look what's going on, pick things to compile to Assembler, compile them to Assembler,
- 21:49and that all takes time.
- 21:50Right.
- 21:50There's a little more initial startup when that happens.
- 21:54Yeah, the warm-up time is usually quite bad.
- 21:57Well, I like to think that warm-up time of PyPy is quite bad.
- 22:01And then I look at Java, when it's absolutely outrageous.
- 22:04It's a relative statement.
- 22:07It's a relative term.
- 22:08Like, compared to CPython, PyPy time is really terrible.
- 22:11And compared to Luach, it's, again, the warm-up time is terrible.
- 22:14But compared to Java, it's not that bad.
- 22:17So, yeah, it really depends on your setup.
- 22:20And it's typically important for long-running applications.
- 22:23Then again, this is a typical PyPy user.
- 22:26When stuff like server-based applications where your programs run for a long time.
- 22:32Right.
- 22:33You start it up and it's going to serve a million requests an hour until it gets recycled or something, yeah?
- 22:38Something like that.
- 22:40I mean, these days, even JavaScript is long-running up.
- 22:44Like, how long do you keep your Gmail open?
- 22:46For usually, for longer than a few seconds.
- 22:49Yeah, that's for sure.
- 22:51So, let's talk a little bit about the internals.
- 22:55Could you describe just a little bit of...
- 23:00So, if I take a Python script and it's got some classes and some functions and they're calling each other and so on.
- 23:05What does it look like in terms of what's happening when that code runs?
- 23:09Okay.
- 23:11So, I'll maybe start from, like, how PyPy is built and then get back to your question directly.
- 23:16Yeah, great.
- 23:17So, PyPy is two things.
- 23:19And it has been very confusing because we've been calling them PyPy and PyPy.
- 23:24And calling two things which are related but not identical the same name is absolutely terrible.
- 23:30We'll probably fix that at some point.
- 23:32But, like, PyPy is mostly two things.
- 23:35So, one thing is a Python interpreter.
- 23:38And the other thing is a part that I would call RPython, which is a language for writing interpreters.
- 23:44It tends to be similar to Python in a sense that it's a restricted subset of Python.
- 23:51But this is largely irrelevant for the architectural question.
- 23:54So, you have an interpreter written in RPython that can be PyPy.
- 24:01We have a whole variety.
- 24:03There's Hippie, which is a PHP interpreter.
- 24:05There's a bunch of Scheme interpreters.
- 24:08And there's even a Prolog interpreter and a whole bunch of other interpreters written in RPython.
- 24:14And then...
- 24:14Is RPython a compiled language?
- 24:17Yes.
- 24:18And the other part is essentially the translation toolchain or a compiler for RPython.
- 24:25So, it contains various things like garbage collector implementation for RPython,
- 24:31the data types like strings, unicodes, and all the things that RPython supports.
- 24:36It also contains a just-in-time compiler for RPython and for interpreters written in RPython,
- 24:43which is one level in direction compared to what you usually do.
- 24:49So, the just-in-time compiler would be sort of generated from your RPython interpreter and not implemented directly,
- 24:59which is very, very important for us because Python, despite looking simple,
- 25:03is actually an incredibly complicated language.
- 25:06If you're trying to encode all the descriptor protocol or how actually functions and parameters are called,
- 25:11chances are you'll make a mistake.
- 25:13So, if you're implementing an interpreter and a just-in-time compiler,
- 25:16it's very, very hard to get all the details right.
- 25:19So, we implement the Python semantics once in the Python interpreter,
- 25:27and then it gets either directly executed or compiled to assembly.
- 25:32So, if you're coming back to your question,
- 25:34if you have a Python program,
- 25:37first, what it does, it will compile to bytecode,
- 25:40and bytecode is quite high level.
- 25:42There's a thing called this module,
- 25:45which you can just call this.this on any sort of Python object,
- 25:51and it will display bytecode.
- 25:54And the basic idea, which is what CPython does,
- 25:57and which is what PyPy does too at first,
- 26:00is to take bytecodes one by one,
- 26:03look what's it,
- 26:04and then execute it.
- 26:06Yeah.
- 26:08And is that like what's in the PyCache folders and things like that?
- 26:11Like those PYC files?
- 26:13Yeah.
- 26:13The PYC files are essentially a serialized version of Python bytecode.
- 26:17Okay.
- 26:18It's just a cache to store to not have to parse Python files
- 26:22each time you import a giant project.
- 26:25Right.
- 26:25Okay.
- 26:26And so then CPython takes those instructions
- 26:28and executes them via an interpreter,
- 26:30but that's not what happens on PyPy, right?
- 26:32That's what happens on PyPy initially.
- 26:35So, all your code will be like executed like CPython,
- 26:39except if you hit a magic number of like function calls
- 26:43or loop iterations,
- 26:44I think it's 1037 for loop iterations,
- 26:48then you compile this particular loop,
- 26:53in fact, this particular execution of a loop,
- 26:55into assembler code.
- 26:56Then if you have a mix of interpreter code
- 27:01and assembler code,
- 27:03and if you,
- 27:04the assembler code is a linear sequence of instructions
- 27:08that contains so-called guards.
- 27:11So, the guards will be anything from
- 27:13if something in the Python source
- 27:16to is the type of this thing stays the same.
- 27:19Then if you happen to fail those guards,
- 27:23then you,
- 27:23okay, I failed this guard,
- 27:25I'm going to go and start compiling assembler again.
- 27:29I mean,
- 27:30at first you jump back to the interpreter,
- 27:32but if you,
- 27:33again,
- 27:33hit a magic number,
- 27:34you compile the assembler again from this guard.
- 27:36And then you end up with like a tree of execution
- 27:39that resembles
- 27:40both your Python code
- 27:43and the type structure
- 27:44that you're passing in a few other things
- 27:46that are automatically determined.
- 27:48So,
- 27:49at the end of the day,
- 27:50you end up with a Python function
- 27:52or like multiple Python functions
- 27:54that got compiled to assembler
- 27:55if you warm stuff for long enough.
- 27:57Okay.
- 27:58That's,
- 27:58that is super interesting.
- 27:59I didn't expect that it would have
- 28:02this initial non-assembled assembler version.
- 28:05That's,
- 28:05that's very cool.
- 28:06What was,
- 28:07do you know what the thinking around that was?
- 28:08Is it just better performance?
- 28:09So,
- 28:10there's a variety of things.
- 28:12Like,
- 28:12one thing is that if you try to,
- 28:14to compile everything like upfront,
- 28:17it would take you forever.
- 28:19But also you are,
- 28:22you can do some optimizations.
- 28:24Like,
- 28:25a lot of optimizations done in PyPy
- 28:27are sort of optimistic.
- 28:28Like,
- 28:29we're going to assume special things like
- 28:32sys.setTrace
- 28:34or sys.getFrame
- 28:35just does not happen.
- 28:37And until it doesn't happen,
- 28:39things can run nicely and smoothly.
- 28:41But you're trying to figure out
- 28:43on the fly
- 28:44what's going on.
- 28:45And then you compile pieces
- 28:47that you know about.
- 28:47So,
- 28:48at the moment when you are compiling
- 28:50a Python loop
- 28:51or a function
- 28:52or something like that,
- 28:53you tend to know more
- 28:55about the,
- 28:56the state of execution
- 28:57than,
- 28:57that is just in the source.
- 28:58Like,
- 28:59you tend to know
- 28:59the types,
- 29:00the precise shape of objects.
- 29:02Like,
- 29:02is this an object
- 29:04that's class X
- 29:05and has two attributes A and B?
- 29:07Or is it an object of class X
- 29:09that has three attributes A, B, and C?
- 29:11And those decisions
- 29:13can lead to better performance,
- 29:15essentially.
- 29:15So,
- 29:16on your website,
- 29:17you say that this,
- 29:18that PyPy may be better
- 29:20in terms of memory usage as well.
- 29:22How does that work?
- 29:23It's a trade-off, right?
- 29:25So,
- 29:25first of all,
- 29:26PyPy does
- 29:28consume memory
- 29:29memory for
- 29:30the compound assembler
- 29:32and the
- 29:32associated bookkeeping data.
- 29:34That depends on how much code
- 29:37you actually run.
- 29:38But,
- 29:39the object representation
- 29:40of Python,
- 29:40of Python objects
- 29:42is more compact
- 29:43than PyPy.
- 29:43So,
- 29:44the actual amount
- 29:46of memory consumed
- 29:47by your heap
- 29:48tends to be smaller.
- 29:50Like,
- 29:50all PyPy objects
- 29:52are as memory compact
- 29:53as
- 29:54see Python objects
- 29:56using
- 29:56slots.
- 29:58Right,
- 29:58okay.
- 29:58So,
- 29:59it's the same optimization
- 30:00except it's transparent.
- 30:01Then,
- 30:04the,
- 30:04like,
- 30:05list of only integers
- 30:07would not allocate
- 30:08the entire objects.
- 30:10It would allocate
- 30:11only small integers.
- 30:12Then,
- 30:13the,
- 30:13the objects
- 30:15are smaller themselves
- 30:16because we use
- 30:17a different garbage collection
- 30:18strategy.
- 30:18It's not ref counting.
- 30:20it's a garbage collector.
- 30:21Right,
- 30:22so,
- 30:22let's talk about
- 30:23the garbage collector
- 30:23just for a moment.
- 30:24Is it a mark and sweep
- 30:26garbage collector?
- 30:27This episode
- 30:42is brought to you
- 30:42by CodeShip.
- 30:43CodeShip has launched
- 30:45organizations,
- 30:46create teams,
- 30:47set permissions
- 30:47for specific team members,
- 30:49and improve collaboration
- 30:50in your continuous
- 30:51delivery workflow.
- 30:52Maintain centralized control
- 30:54over your organization's
- 30:55projects and teams
- 30:56with CodeShip's
- 30:57new organizations plan.
- 30:58And,
- 30:59as Talk Python listeners,
- 31:00you can save 20% off
- 31:01any premium plan
- 31:02for the next three months.
- 31:03Just use the code
- 31:05TALKPYTHON,
- 31:05all caps,
- 31:06no spaces.
- 31:07Check them out
- 31:08at CodeShip.com
- 31:09and tell them thanks
- 31:10for supporting the show
- 31:11on Twitter
- 31:11where they're at,
- 31:12CodeShip.
- 31:13It's in,
- 31:18very convoluted
- 31:19variant of mark and sweep.
- 31:21Yeah.
- 31:21It has two generations
- 31:24of objects,
- 31:24young objects
- 31:25and old objects,
- 31:26and old objects
- 31:27are mark and sweep,
- 31:28and young objects
- 31:29are pointer bump
- 31:31allocations.
- 31:31So,
- 31:32the net effect
- 31:35is that
- 31:35if you are having
- 31:36a lot of small objects
- 31:38that get allocated
- 31:39all the time
- 31:39and forgotten
- 31:40really quickly,
- 31:40allocation takes,
- 31:42like,
- 31:43on average,
- 31:43around one CPU
- 31:44instruction.
- 31:45It's,
- 31:47on average,
- 31:48one,
- 31:48because it takes,
- 31:49like,
- 31:50slightly more,
- 31:50but then you have
- 31:51pipelining,
- 31:51so sometimes
- 31:52it takes slightly less.
- 31:53Okay,
- 31:54do you guys do compaction
- 31:55and things like that
- 31:56as well?
- 31:57No,
- 31:58but we do
- 31:59copy old objects
- 32:01from the young generation
- 32:03to the old generation.
- 32:04Then we don't compact
- 32:05the old generation,
- 32:06but usually more compact
- 32:08than your normal setup
- 32:10where you have
- 32:10lots of objects
- 32:11that are scattered
- 32:12all over the place
- 32:13because you only
- 32:14have to deal with objects
- 32:15that survive minor collection.
- 32:17Right,
- 32:18and that's the majority
- 32:19of objects
- 32:19that we interact with
- 32:21all die right away.
- 32:22Vast majority.
- 32:22Yeah,
- 32:23absolutely.
- 32:23For the most part.
- 32:25Okay,
- 32:25yeah,
- 32:26that's very cool.
- 32:27One of the things
- 32:29that is not super easy
- 32:30in regular Python
- 32:31is parallelism
- 32:33and asynchronous programming
- 32:34and so on.
- 32:35And you guys have
- 32:37this thing called
- 32:38stackless mode.
- 32:39What's the story
- 32:40with that?
- 32:40It's the same thing
- 32:43as stackless Python.
- 32:44It gives you
- 32:45an ability
- 32:46to have coroutines
- 32:47that can be swapped out
- 32:48without an explicit
- 32:50yield keyword.
- 32:51So it's not like
- 32:52Python 3 coroutines.
- 32:54it's like
- 32:56normal coroutines
- 32:57when you can swap them
- 32:58randomly.
- 32:59For example,
- 33:00GEvent uses
- 33:01I think GEvent
- 33:03uses stackless mode
- 33:04for swapping
- 33:05the coroutines.
- 33:06Okay,
- 33:07so you said
- 33:09that you can get
- 33:09better concurrency.
- 33:10Can you kind of describe
- 33:11speak to that any
- 33:13or what are your thoughts there?
- 33:14I personally
- 33:16don't use stackless
- 33:16all that much
- 33:17but the net effect
- 33:19is that you
- 33:20you can write code
- 33:22like with
- 33:23Python 3 coroutines
- 33:25without the yield keyword.
- 33:27So you just call function
- 33:28then you can swap
- 33:28the functions
- 33:29for other things.
- 33:31It's a bit like
- 33:33implicit
- 33:33twisted
- 33:34where
- 33:35you don't get
- 33:36better concurrency
- 33:37than twisted
- 33:37but you're not
- 33:38you don't need
- 33:39to write your programs
- 33:41in the style
- 33:41that twisted requires.
- 33:43I was going to say
- 33:45it's just a little more
- 33:46automatic
- 33:46and you don't have
- 33:47to be so explicit
- 33:48that you're doing
- 33:48threading.
- 33:49Yeah,
- 33:50exactly.
- 33:51Like the normal
- 33:52normal threads
- 33:54especially in Python
- 33:55where you have the
- 33:56global interpreter log
- 33:57they don't scale
- 33:58all that well
- 33:59and like the solution
- 34:00is usually twisted
- 34:01but twisted requires
- 34:02you to have
- 34:02all the libraries
- 34:04and everything
- 34:04written twisted aware
- 34:06which stackless
- 34:08does not generally
- 34:09requires.
- 34:09I don't have
- 34:11any particular feelings
- 34:13towards all of that
- 34:14to be honest.
- 34:15Sure.
- 34:16Does it also support
- 34:17Twisted running on PyPy?
- 34:18Do you know?
- 34:19Yeah,
- 34:19obviously.
- 34:20Twisted is a Python program.
- 34:21We had
- 34:22from the very early days
- 34:25we had
- 34:25good contact
- 34:27with twisted people
- 34:28and people who use twisted
- 34:30tend to be from
- 34:30the same category
- 34:31as people who use PyPy.
- 34:32People who have
- 34:33large running code bases
- 34:35that are boring
- 34:36but have problems
- 34:38because they're
- 34:38actually huge.
- 34:39I mean not huge
- 34:41in terms of code base
- 34:42but huge in terms
- 34:43of number
- 34:43of requests
- 34:44they serve
- 34:45and stuff like this.
- 34:46So they tend
- 34:47to be
- 34:48very,
- 34:50very focused
- 34:51on how to make
- 34:52the stuff
- 34:53work both reliably
- 34:54and fast.
- 34:56So for example
- 34:57like a typical answer
- 34:59to Python performance
- 35:01problems
- 35:01oh just rewrite
- 35:02pieces in C.
- 35:03Well that's
- 35:04that's all
- 35:05cool if you have
- 35:06like few
- 35:07small loops
- 35:08that you can
- 35:09rewrite in C
- 35:10and have everything
- 35:11fast.
- 35:11But like
- 35:12most web servers
- 35:13are not like this.
- 35:14If you look at the profile
- 35:15it's just flat.
- 35:15It's tons of dictionaries
- 35:17and things that are
- 35:18not easy to write
- 35:19in C.
- 35:20And C introduces
- 35:21security problems
- 35:23like suddenly
- 35:24dealing in C
- 35:25with untrusted data
- 35:26is not that much fun.
- 35:28No.
- 35:28So it's definitely
- 35:29not.
- 35:29Or even
- 35:30reliability
- 35:30right?
- 35:31Yeah.
- 35:32So all those
- 35:33problems.
- 35:33So Twisted people
- 35:34tend to write
- 35:35like Python
- 35:36better than C
- 35:37and they've
- 35:39been very supportive
- 35:40of PyPy
- 35:41from the very
- 35:42first day.
- 35:43So they
- 35:44generally
- 35:45PyPy is running
- 35:46Twisted
- 35:47and it's running
- 35:47Twisted quite fast
- 35:48for quite a few
- 35:50years right now.
- 35:50Yeah that's
- 35:51excellent.
- 35:51It seems like
- 35:52if you have a
- 35:52problem that
- 35:53Twisted would solve
- 35:54you also probably
- 35:55want to look
- 35:55into PyPy.
- 35:57Exactly.
- 35:57This is like
- 35:58the same category
- 35:59of problems
- 36:00that you're
- 36:02trying to solve.
- 36:02Another interesting
- 36:04stuff about
- 36:05concurrency
- 36:05which I guess
- 36:06I'm slightly
- 36:07more excited
- 36:07about is the
- 36:08software transactional
- 36:09memory that
- 36:10Armin Rigo is
- 36:11working on right
- 36:12now.
- 36:12So this is
- 36:13one of our
- 36:13fundraisers
- 36:14just like
- 36:15NumPy.
- 36:15Yeah so this
- 36:16is one of your
- 36:17three sort of
- 36:18major going
- 36:18forward projects
- 36:20if you will.
- 36:20Yeah those are
- 36:22the three
- 36:22publicly funded
- 36:24projects.
- 36:24Right and if
- 36:25you go to
- 36:25PyPy.org
- 36:26right there
- 36:27on the
- 36:27right it
- 36:27says donate
- 36:28towards
- 36:28STM
- 36:29and you
- 36:30guys have
- 36:30quite a
- 36:31bit of
- 36:31money towards
- 36:33this project
- 36:34and so
- 36:34it's excellent.
- 36:36What is
- 36:36software transactional
- 36:37memory for the
- 36:38listeners?
- 36:38There are two
- 36:39ideas.
- 36:40First problem
- 36:41they're related
- 36:43but not
- 36:44identical.
- 36:44First problem
- 36:45is that Python
- 36:45has the
- 36:46global
- 36:47interpreter
- 36:48log.
- 36:48So global
- 36:49interpreter
- 36:50log essentially
- 36:51prevents you
- 36:51from running
- 36:52multiple threads
- 36:54on multiple
- 36:54cores on one
- 36:55machine.
- 36:57So if you
- 36:57write Python
- 36:58program and
- 36:59you write
- 36:59it multi
- 37:00threaded it
- 37:00will only
- 37:01ever consume
- 37:02one CPU
- 37:02which is
- 37:04not great
- 37:05if you want
- 37:05to compute
- 37:05anything.
- 37:06So that's
- 37:07one problem
- 37:08that STM
- 37:08is solving
- 37:09and I'm
- 37:09going to
- 37:09explain just
- 37:10now how
- 37:11it's solving
- 37:11it.
- 37:11But another
- 37:12problem is
- 37:13that it's
- 37:15trying to
- 37:15provide a much
- 37:16better model
- 37:17for writing
- 37:18programs with
- 37:18threads.
- 37:19If you start
- 37:20using threads
- 37:21the Python
- 37:21mutability
- 37:22model makes
- 37:24it so hard
- 37:25to write
- 37:25correct programs.
- 37:26you're essentially
- 37:27running into
- 37:28problems like
- 37:29suddenly
- 37:29okay but I
- 37:30have to think
- 37:31who modified
- 37:31what in what
- 37:32order and
- 37:33consider all
- 37:34the possible
- 37:35combinations.
- 37:36Make sure that
- 37:37every bit of
- 37:38code that's
- 37:38going to work
- 37:39with this
- 37:39segment of
- 37:41data is
- 37:41taking the
- 37:42right locks
- 37:43and all that
- 37:43kind of stuff
- 37:44that gets
- 37:44really tricky
- 37:45to ensure
- 37:45right?
- 37:47yeah so
- 37:47essentially
- 37:48the
- 37:49model is
- 37:50where
- 37:51if you
- 37:52write
- 37:52program in
- 37:53C
- 37:53you write
- 37:54the program
- 37:55it's all
- 37:55fine then
- 37:55you switch
- 37:56to threading
- 37:57and you get
- 37:59performance
- 37:59immediately
- 38:00like
- 38:01your program
- 38:03if you write
- 38:04threads correctly
- 38:04it will run
- 38:05four times faster
- 38:07on four cores
- 38:07or whatever
- 38:08but
- 38:09it will
- 38:10likely
- 38:10crash
- 38:11and it will
- 38:12likely crash
- 38:13for the next
- 38:13couple of
- 38:14weeks
- 38:14months
- 38:14years
- 38:15whatever
- 38:15you throw
- 38:16into it
- 38:17because you
- 38:18need to get
- 38:18100%
- 38:19correctness
- 38:19back
- 38:20so
- 38:21the S-team
- 38:22works slightly
- 38:23differently
- 38:23where you
- 38:24you essentially
- 38:26write programs
- 38:27in a mode
- 38:28where
- 38:28it looks like
- 38:30you put a
- 38:30gigantic lock
- 38:31around
- 38:32everything that
- 38:33matters in
- 38:34your program
- 38:34so you
- 38:36write one
- 38:36event loop
- 38:37and you know
- 38:38like okay
- 38:38this loop
- 38:40will
- 38:40consume blocks
- 38:42or whatever
- 38:42consume some
- 38:43sort of data
- 38:44in an unordered
- 38:45queue
- 38:46and you can
- 38:47add to the
- 38:47queue
- 38:48in an unordered
- 38:49way
- 38:49and then you
- 38:49put a giant
- 38:50lock
- 38:50over like
- 38:51the whole
- 38:52processing
- 38:52if you
- 38:53write that
- 38:53sort of
- 38:53program
- 38:54with normal
- 38:54threads
- 38:55and normal
- 38:55locks
- 38:56it will
- 38:57it will
- 38:58be correct
- 38:58but it
- 38:59won't run
- 38:59fast
- 38:59because
- 39:00everything
- 39:00will be
- 39:01giant
- 39:01will be
- 39:02inside
- 39:02the giant
- 39:03locks
- 39:03to be more
- 39:04or less
- 39:04serial
- 39:05but all
- 39:05the complexity
- 39:06in your
- 39:06code
- 39:07of doing
- 39:07parallelism
- 39:08anyway
- 39:08yeah
- 39:09so
- 39:09this
- 39:11so
- 39:11STM
- 39:12stands
- 39:12for
- 39:13software
- 39:13transactional
- 39:14memory
- 39:14it means
- 39:15it works
- 39:15roughly
- 39:16like a
- 39:16database
- 39:16where you
- 39:17run
- 39:18multiple
- 39:19transactions
- 39:20and then
- 39:21if you
- 39:22don't
- 39:23touch
- 39:23the memory
- 39:24from two
- 39:26threads
- 39:27at the
- 39:27same
- 39:27time
- 39:28then
- 39:28it's
- 39:28all
- 39:28cool
- 39:29and if
- 39:29you
- 39:29touch
- 39:30one of
- 39:30those
- 39:30gets
- 39:30aborted
- 39:31and reverted
- 39:32and you
- 39:32can only
- 39:33commit a
- 39:33transaction
- 39:34if
- 39:34the
- 39:35memory
- 39:36access
- 39:36was
- 39:36right
- 39:37so
- 39:37if
- 39:37you
- 39:38think
- 39:38again
- 39:38about
- 39:38the
- 39:38model
- 39:39where
- 39:39you
- 39:39have
- 39:39one
- 39:40gigantic
- 39:40log
- 39:40it means
- 39:41it will
- 39:41run
- 39:41in parallel
- 39:42optimistically
- 39:43a few
- 39:44versions
- 39:45of the
- 39:45same
- 39:46code
- 39:46on
- 39:46different
- 39:46data
- 39:47and if
- 39:48they
- 39:48tend
- 39:49not to
- 39:49conflict
- 39:50if
- 39:50they can
- 39:51be
- 39:51run
- 39:53serially
- 39:54in a
- 39:54sense
- 39:54like
- 39:55they
- 39:55modify
- 39:56some
- 39:56global
- 39:56data
- 39:56but
- 39:57not
- 39:57in a
- 39:57conflicting
- 39:58manner
- 39:58then
- 40:00you'll
- 40:01get
- 40:02parallelism
- 40:03for free
- 40:04but if
- 40:05they do
- 40:05conflict
- 40:05every now
- 40:06and again
- 40:06then
- 40:07one of
- 40:08the guys
- 40:09gets
- 40:09reverted
- 40:10back to
- 40:10the start
- 40:11so the
- 40:12net effect
- 40:12is that
- 40:13it looks
- 40:14like you're
- 40:14running
- 40:14stuff
- 40:15serially
- 40:15for the
- 40:16programmer
- 40:16and you
- 40:17get
- 40:17correctness
- 40:18for free
- 40:18if you
- 40:19write it
- 40:20in a
- 40:21way
- 40:21that
- 40:22that's
- 40:24naive
- 40:24then you
- 40:25won't get
- 40:25performance
- 40:26because your
- 40:26stuff will
- 40:27collide
- 40:27all the
- 40:27time
- 40:28but then
- 40:28you can
- 40:29use
- 40:29tools
- 40:29and look
- 40:30where it
- 40:30collides
- 40:31and remove
- 40:31those
- 40:32contention
- 40:32points
- 40:32and you
- 40:33get more
- 40:33and more
- 40:34performance
- 40:34which is
- 40:35almost the
- 40:36same goal
- 40:37but the
- 40:38difference
- 40:38is that
- 40:38if you
- 40:39have
- 40:39100%
- 40:40performance
- 40:41and 99%
- 40:42correctness
- 40:43your program
- 40:43is still
- 40:44incorrect
- 40:44and you
- 40:44can't run
- 40:45it
- 40:45if you
- 40:46have
- 40:46100%
- 40:47correctness
- 40:47and 99%
- 40:48performance
- 40:49you're
- 40:49mostly
- 40:49good to
- 40:50go
- 40:50yeah
- 40:51would you
- 40:52rather be
- 40:53fast and
- 40:54wrong or
- 40:54slow and
- 40:54right
- 40:55it's sort
- 40:55of
- 40:55that you
- 40:56know
- 40:56there's a
- 40:57really
- 40:57interesting
- 40:57classification
- 40:59of those
- 41:00types of
- 41:00problems
- 41:01that you
- 41:01only see
- 41:02every
- 41:02very very
- 41:04rarely
- 41:04from the
- 41:05you know
- 41:06sort of
- 41:06some kind
- 41:07of race
- 41:07condition
- 41:07or timing
- 41:08threading
- 41:08problem
- 41:09and I've
- 41:10heard people
- 41:10describe those
- 41:11as Heisen bugs
- 41:11because
- 41:13because as you
- 41:14interact with
- 41:14a program
- 41:15trying to
- 41:15see the
- 41:15problem
- 41:16you might
- 41:16not be
- 41:17able to
- 41:17observe it
- 41:17but if
- 41:17you're not
- 41:18looking
- 41:18all of a
- 41:18sudden
- 41:18boom
- 41:19the
- 41:19timing
- 41:20realigns
- 41:20and it's
- 41:21a problem
- 41:21again
- 41:21they're very
- 41:22frustrating
- 41:22so it's
- 41:23important
- 41:23to look
- 41:24at
- 41:24so that
- 41:26the
- 41:26usual
- 41:26answer
- 41:27for
- 41:27those
- 41:28problems
- 41:28in
- 41:28Python
- 41:29is
- 41:29just
- 41:29use
- 41:29multiple
- 41:30processes
- 41:30and using
- 41:32multiple
- 41:32processes
- 41:33works for a
- 41:33category of
- 41:34applications
- 41:34and web
- 41:35servers tend
- 41:36to be one
- 41:36of those
- 41:37because they
- 41:37only ever
- 41:38share data
- 41:39that's
- 41:40either
- 41:40caches
- 41:40or database
- 41:42usually
- 41:43that's
- 41:43another
- 41:43process
- 41:44anyway
- 41:44like
- 41:44Redis
- 41:45or
- 41:45it's
- 41:45in a
- 41:46database
- 41:46like
- 41:46Mongo
- 41:46or
- 41:47SQL
- 41:47or
- 41:47something
- 41:47like
- 41:48that
- 41:48yeah
- 41:48so
- 41:49you
- 41:49don't
- 41:49care
- 41:49but like
- 41:50there's a
- 41:50whole
- 41:51set of
- 41:52problems
- 41:53where
- 41:53this is not
- 41:55what you
- 41:55have
- 41:55you have
- 41:55data
- 41:56that's
- 41:56mostly
- 41:57not
- 41:57contentious
- 41:57but
- 41:58you still
- 41:58have to
- 41:59share it
- 41:59and work
- 42:00on it
- 42:00you can't
- 42:01afford
- 42:01to
- 42:02serialize
- 42:02and deserialize
- 42:03and pass
- 42:04between
- 42:04processes
- 42:05and yet
- 42:07you want
- 42:07to have
- 42:07a correct
- 42:09result
- 42:10so this
- 42:10is what
- 42:11STM
- 42:11is trying
- 42:11to address
- 42:12a set
- 42:13of problems
- 42:14that can
- 42:14be solved
- 42:15by just
- 42:16splitting
- 42:16stuff
- 42:16into
- 42:16processes
- 42:17right
- 42:18maybe
- 42:19something
- 42:19very
- 42:19computational
- 42:20or scientific
- 42:21where it's
- 42:21iterative
- 42:22or something
- 42:22would be
- 42:23way harder
- 42:24well
- 42:25essentially
- 42:26anything
- 42:26where
- 42:27you have
- 42:28data
- 42:28that
- 42:28mostly
- 42:29does not
- 42:29conflict
- 42:30and you
- 42:30can do
- 42:30it
- 42:31in
- 42:31parallel
- 42:32but
- 42:33every now
- 42:33and again
- 42:34it's a
- 42:34big data
- 42:35set
- 42:35that you
- 42:35work on
- 42:36and every
- 42:36now and
- 42:36again
- 42:37you
- 42:37tend
- 42:38to
- 42:38conflict
- 42:39like
- 42:39graph
- 42:41algorithms
- 42:41are a
- 42:41great
- 42:42example
- 42:42and you
- 42:42have this
- 42:42large
- 42:43complicated
- 42:44data
- 42:44structure
- 42:44in memory
- 42:45and most
- 42:46of the time
- 42:46you're walking
- 42:47different parts
- 42:48of graphs
- 42:48so you don't
- 42:49care
- 42:49but every
- 42:50now and again
- 42:51you'll find
- 42:52contention
- 42:52on one graph
- 42:53because two
- 42:54parts are doing
- 42:55stuff on the
- 42:56same node
- 42:57and then you're
- 42:57like
- 42:57that's wrong
- 42:59and writing
- 42:59this sort of
- 43:00stuff using
- 43:00threads
- 43:00is really
- 43:01hard
- 43:01yeah
- 43:02so that
- 43:03has a lot
- 43:03of promise
- 43:04do you know
- 43:04when it
- 43:05might
- 43:05start to
- 43:06show up
- 43:07as a thing
- 43:07people can
- 43:07use
- 43:08is it
- 43:09there yet
- 43:09so it's
- 43:10already there
- 43:11to an extent
- 43:12you can
- 43:13download the
- 43:14STM demo
- 43:15somewhere
- 43:15and the
- 43:16STM demo
- 43:17works
- 43:17it might
- 43:19not scale
- 43:20how you want
- 43:20it
- 43:20it might
- 43:21not work
- 43:21how you
- 43:21want
- 43:22it
- 43:22but it
- 43:22should
- 43:23generally
- 43:23work
- 43:23and scale
- 43:24so the
- 43:25current version
- 43:26only scales
- 43:27to like
- 43:27two or three
- 43:29cores
- 43:30and given
- 43:32that it
- 43:32comes at
- 43:32a quite
- 43:33hefty cost
- 43:34of like
- 43:351.5
- 43:36to two
- 43:37times slower
- 43:38on each
- 43:38core
- 43:38it's not
- 43:39that useful
- 43:40so the
- 43:41next version
- 43:41will try to
- 43:42reduce the
- 43:43overhead of
- 43:43single core
- 43:44and improve
- 43:45the scalability
- 43:46to more
- 43:46cores
- 43:46and then
- 43:47we'll see
- 43:47how it
- 43:48goes
- 43:48it's going
- 43:49along quite
- 43:50well
- 43:50I would
- 43:50expect
- 43:51like
- 43:51I mean
- 43:52there are
- 43:54consecutive
- 43:54prototypes
- 43:55that are
- 43:55usable
- 43:56to some
- 43:57extent
- 43:57like we
- 43:57managed to
- 43:58get
- 43:58some
- 43:59performance
- 44:00improvements
- 44:00running
- 44:01on multiple
- 44:02cores
- 44:02but they
- 44:02have
- 44:0220-30%
- 44:04range
- 44:04which is
- 44:05just not
- 44:06that exciting
- 44:06but on the
- 44:07other hand
- 44:08they were
- 44:08mostly for
- 44:08free
- 44:09which is
- 44:10again
- 44:11something
- 44:11that you
- 44:12might
- 44:13what if
- 44:15I rewrite
- 44:16no no
- 44:16the point
- 44:17is you
- 44:17don't have
- 44:17to rewrite
- 44:18it's
- 44:18a very
- 44:19simple
- 44:19change
- 44:20and then
- 44:20you might
- 44:20get
- 44:20some
- 44:21performance
- 44:22benefit
- 44:22yeah
- 44:22that's
- 44:23fantastic
- 44:23the other
- 44:24one of the
- 44:25other
- 44:25projects
- 44:26that you
- 44:27have
- 44:27on your
- 44:28donation
- 44:28list
- 44:28is a
- 44:29major
- 44:29thing
- 44:29you guys
- 44:29are
- 44:29working
- 44:30on
- 44:30is
- 44:30Pi3k
- 44:32in
- 44:32PiPi
- 44:32what's
- 44:33that
- 44:33it's
- 44:34the
- 44:35Python 3
- 44:35implementation
- 44:36of
- 44:36PiPi
- 44:36so
- 44:37as I
- 44:38said
- 44:38before
- 44:39we
- 44:40have
- 44:40various
- 44:41interpreters
- 44:41in
- 44:43PiPi
- 44:44that are
- 44:44all
- 44:45implemented
- 44:46in our
- 44:46Python
- 44:46and one
- 44:47of those
- 44:47interpreters
- 44:48is a
- 44:48Python 2
- 44:48interpreter
- 44:49and one
- 44:49of those
- 44:50interpreters
- 44:50which is
- 44:51less
- 44:52complete
- 44:52is Python 3
- 44:53interpreter
- 44:54that supports
- 44:55like
- 44:553.2
- 44:56by now
- 44:56so
- 44:57we need
- 44:58money
- 44:58to push
- 44:59it forward
- 44:59and help
- 45:00I guess
- 45:00too
- 45:01to push
- 45:01it forward
- 45:02to like
- 45:023.3
- 45:03or 3.4
- 45:04or even
- 45:053.5
- 45:06to bring
- 45:08it more
- 45:08up to
- 45:08speed
- 45:09one thing
- 45:10that we
- 45:10don't do
- 45:11in
- 45:11PiPi
- 45:11is we
- 45:12don't
- 45:12debate
- 45:13the
- 45:13Python
- 45:13language
- 45:14choices
- 45:15and I
- 45:15think it
- 45:16serves
- 45:16us
- 45:16well
- 45:16so
- 45:17for
- 45:17example
- 45:18I
- 45:18don't
- 45:18work
- 45:18much
- 45:19on
- 45:19the
- 45:19Python
- 45:19interpreter
- 45:20itself
- 45:20I
- 45:21work
- 45:21a lot
- 45:21on
- 45:21the
- 45:22R
- 45:22Python
- 45:22side
- 45:23of
- 45:23things
- 45:23and
- 45:24most
- 45:24of
- 45:24the
- 45:24improvements
- 45:25help
- 45:25all
- 45:26of the
- 45:26interpreters
- 45:27not
- 45:27just
- 45:28Python
- 45:30interpreter
- 45:30so
- 45:31I
- 45:31personally
- 45:32don't care
- 45:32if it's
- 45:33Python 2
- 45:33or Python 3
- 45:34the improvements
- 45:34are all the
- 45:35same to me
- 45:35right
- 45:36that's
- 45:36great
- 45:36then you
- 45:37also
- 45:38have a
- 45:38section
- 45:39towards
- 45:39general
- 45:40progress
- 45:40and
- 45:41the
- 45:41last
- 45:41one
- 45:41is
- 45:41NumPy
- 45:42what are
- 45:43you
- 45:43trying to
- 45:43accomplish
- 45:44with
- 45:44that
- 45:44sprint
- 45:46or
- 45:46whatever
- 45:46you
- 45:47call
- 45:47it
- 45:48so
- 45:49as I
- 45:49said
- 45:49before
- 45:49the
- 45:50NumPy
- 45:50stuff
- 45:51is we
- 45:51want to
- 45:52reimplement
- 45:52the
- 45:52NumPy
- 45:53so the
- 45:53numeric
- 45:54part
- 45:54the
- 45:55operation
- 45:55on
- 45:56arrays
- 45:56and we
- 45:56have
- 45:57a very
- 45:58exciting
- 45:58project
- 45:59for
- 46:01summer
- 46:01of
- 46:01code
- 46:01that
- 46:02does
- 46:02vectorization
- 46:03so using
- 46:03SSE
- 46:03for
- 46:04NumPy
- 46:05and then
- 46:06we want
- 46:07to integrate
- 46:08more of
- 46:08the
- 46:09have a
- 46:11way to
- 46:12call
- 46:12more of
- 46:13the
- 46:13whole
- 46:15ecosystem
- 46:15of
- 46:16numeric
- 46:16Python
- 46:16so
- 46:17scipy
- 46:17mat
- 46:18world
- 46:18lib
- 46:18all
- 46:18this
- 46:19stuff
- 46:19that's
- 46:20outside
- 46:20of
- 46:20the
- 46:20scope
- 46:21so we
- 46:21want
- 46:21to
- 46:21have
- 46:21the
- 46:22core
- 46:22of
- 46:22NumPy
- 46:23implemented
- 46:23in
- 46:23PyPy
- 46:24because
- 46:24those
- 46:24things
- 46:25are
- 46:25too
- 46:25low
- 46:26level
- 46:26to
- 46:26just
- 46:27call
- 46:27external
- 46:27library
- 46:28and
- 46:29then
- 46:29we
- 46:29want
- 46:30to
- 46:30have
- 46:30a
- 46:31way
- 46:31or
- 46:32multiple
- 46:33ways
- 46:33depending
- 46:33on
- 46:34the
- 46:34setup
- 46:34to
- 46:35call
- 46:35all
- 46:36the
- 46:36other
- 46:36ecosystem
- 46:37and
- 46:37this
- 46:38is
- 46:38essentially
- 46:39what
- 46:39those
- 46:39goals
- 46:40are
- 46:40here
- 46:40those
- 46:42are
- 46:42three
- 46:43ambitious
- 46:43and
- 46:44very
- 46:44cool
- 46:44goals
- 46:45very
- 46:45nice
- 46:45well
- 46:46they've
- 46:46been
- 46:46around
- 46:47for
- 46:47a
- 46:47couple
- 46:47years
- 46:48I
- 46:48think
- 46:49so
- 46:49we
- 46:50are
- 46:50working
- 46:50towards
- 46:51them
- 46:51and
- 46:52we
- 46:52have
- 46:52people
- 46:52working
- 46:53right
- 46:53now
- 46:53on
- 46:53all
- 46:54three
- 46:54proposals
- 46:55as far
- 46:55as I
- 46:56can
- 46:56tell
- 46:56yeah
- 46:57that's
- 46:57great
- 46:57so
- 46:58one
- 46:59thing
- 46:59that
- 46:59is
- 47:00related
- 47:00to
- 47:00PyPy
- 47:00that
- 47:01you've
- 47:01done
- 47:01individually
- 47:02is
- 47:03the
- 47:03JIT
- 47:04viewer
- 47:05can you
- 47:05talk
- 47:06about
- 47:06that
- 47:06briefly
- 47:06so
- 47:08JIT
- 47:08viewer
- 47:08is
- 47:09a
- 47:09bit
- 47:09of
- 47:09an
- 47:09internal
- 47:10tool
- 47:10for
- 47:12visualizing
- 47:13assembler
- 47:14and the
- 47:15intermediate
- 47:15representation
- 47:16of
- 47:17your
- 47:18Python
- 47:18program
- 47:19so
- 47:19it's
- 47:19very
- 47:19useful
- 47:20for
- 47:20if
- 47:20you're
- 47:21really
- 47:21interested
- 47:21how
- 47:22PyPy
- 47:22compiles
- 47:23your
- 47:23program
- 47:23you can
- 47:24look
- 47:24into
- 47:24that
- 47:24so
- 47:25one
- 47:26related
- 47:26project
- 47:26that
- 47:27I've
- 47:27been
- 47:27working
- 47:28on
- 47:28recently
- 47:28quite
- 47:28a lot
- 47:29is
- 47:29called
- 47:30VMProf
- 47:30and
- 47:31VMProf
- 47:31is
- 47:32a
- 47:32low
- 47:34overhead
- 47:34statistical
- 47:35profiler
- 47:36for
- 47:36Python
- 47:36or
- 47:37for
- 47:37VMs
- 47:38in
- 47:38general
- 47:38but
- 47:38we're
- 47:39going
- 47:39to
- 47:39start
- 47:39with
- 47:39CPython
- 47:40and
- 47:40PyPy
- 47:40so
- 47:42those
- 47:42are
- 47:42tools
- 47:43that
- 47:43help
- 47:43developers
- 47:44find
- 47:44their
- 47:45bottlenecks
- 47:46in the
- 47:46code
- 47:46and
- 47:47find
- 47:48how
- 47:48to
- 47:49improve
- 47:49performance
- 47:50usually
- 47:50because
- 47:50if you
- 47:51can
- 47:51understand
- 47:51it
- 47:51you
- 47:52can
- 47:52usually
- 47:52improve
- 47:52it
- 47:53yeah
- 47:54that's
- 47:54excellent
- 47:54yeah
- 47:55we've
- 47:56been
- 47:56talking
- 47:56a lot
- 47:56about
- 47:56how
- 47:57PyPy
- 47:57makes
- 47:57stuff
- 47:57faster
- 47:58but
- 47:59before
- 47:59you
- 48:00just
- 48:00say
- 48:00well
- 48:00we're
- 48:01switching
- 48:01to
- 48:01some
- 48:01new
- 48:01interpreter
- 48:02maybe
- 48:02it
- 48:03makes
- 48:03sense
- 48:03to
- 48:03think
- 48:03about
- 48:04your
- 48:04algorithms
- 48:04and
- 48:04where
- 48:05they're
- 48:05slow
- 48:05and
- 48:05whether
- 48:05or not
- 48:06that
- 48:06switch
- 48:06would
- 48:06even
- 48:07help
- 48:07it
- 48:08it
- 48:08really
- 48:09depends
- 48:09on
- 48:10the
- 48:10situation
- 48:10sometimes
- 48:11you
- 48:11switch
- 48:11without
- 48:11thinking
- 48:12about
- 48:12it
- 48:12and
- 48:12sometimes
- 48:13it
- 48:13doesn't
- 48:13make
- 48:13sense
- 48:14and
- 48:14you
- 48:14have
- 48:14to
- 48:14think
- 48:14about
- 48:15it
- 48:15first
- 48:15it
- 48:15really
- 48:16depends
- 48:16on
- 48:17your
- 48:17program
- 48:17and
- 48:17what
- 48:17are
- 48:18you
- 48:18trying
- 48:18to
- 48:19achieve
- 48:19and
- 48:19sometimes
- 48:20you
- 48:20want
- 48:20to
- 48:20switch
- 48:20look
- 48:21improve
- 48:21sometimes
- 48:22you
- 48:22want
- 48:22to
- 48:22do
- 48:22both
- 48:23yeah
- 48:23well
- 48:24at
- 48:24minimum
- 48:25you
- 48:25probably
- 48:25want
- 48:25to
- 48:26measure
- 48:26and
- 48:27profile
- 48:27your
- 48:27app
- 48:27and
- 48:28try
- 48:28it
- 48:28on
- 48:29you
- 48:34definitely
- 48:34want
- 48:34to
- 48:35measure
- 48:35you
- 48:35definitely
- 48:35want
- 48:35to
- 48:36know
- 48:36how
- 48:36fast
- 48:36your
- 48:37application
- 48:37is
- 48:37running
- 48:38before
- 48:38attempting
- 48:39anything
- 48:40it
- 48:40felt
- 48:40a little
- 48:41faster
- 48:41let's
- 48:42do
- 48:42it
- 48:43exactly
- 48:44you're
- 48:45laughing
- 48:45but
- 48:45we've
- 48:46seen
- 48:46people
- 48:46like
- 48:46that
- 48:47like
- 48:47my
- 48:48application
- 48:48runs
- 48:48faster
- 48:49on
- 48:49my
- 48:50local
- 48:51machine
- 48:51but
- 48:51not
- 48:51on
- 48:52the
- 48:52server
- 48:52okay
- 48:53how
- 48:54did
- 48:54you
- 48:54benchmark
- 48:54oh
- 48:55I
- 48:55looked
- 48:55at
- 48:55the
- 48:55loading
- 48:56time
- 48:56Chrome
- 48:57like
- 48:57developer
- 48:58tools
- 48:58that's
- 48:59not
- 49:00good
- 49:00enough
- 49:01usually
- 49:01that's
- 49:02like
- 49:02yes
- 49:04it might
- 49:05be
- 49:05slower
- 49:05because
- 49:06your
- 49:06network
- 49:06is
- 49:06slower
- 49:07I
- 49:07don't
- 49:07know
- 49:08what
- 49:08your
- 49:08setup
- 49:08is
- 49:09maybe
- 49:09the
- 49:10ping
- 49:10time
- 49:10is
- 49:10100
- 49:10milliseconds
- 49:11the
- 49:11request
- 49:11time
- 49:12is
- 49:1210
- 49:12milliseconds
- 49:13so
- 49:13geez
- 49:13it's
- 49:13really
- 49:14slow
- 49:14on the
- 49:14server
- 49:14right
- 49:15awesome
- 49:16all right
- 49:18Manja
- 49:18this is
- 49:19probably
- 49:19a good
- 49:20place
- 49:20to wrap
- 49:20up
- 49:20the
- 49:20show
- 49:20this
- 49:21has
- 49:21been
- 49:21such
- 49:21an
- 49:21interesting
- 49:22conversation
- 49:22I'm
- 49:23really
- 49:24excited
- 49:24about
- 49:24what
- 49:24you
- 49:24are
- 49:25doing
- 49:25and
- 49:25you
- 49:25know
- 49:25I
- 49:26hope
- 49:26you
- 49:26keep
- 49:26going
- 49:26I
- 49:27want
- 49:27to
- 49:28make
- 49:28sure
- 49:28that
- 49:28people
- 49:28know
- 49:28that
- 49:29the
- 49:29source
- 49:29code
- 49:29is
- 49:30on
- 49:30bitbucket
- 49:30they can
- 49:31go to
- 49:31bitbucket.org
- 49:32slash
- 49:32pipi
- 49:32that's the
- 49:33main repo
- 49:33the main
- 49:36way to
- 49:36contact us
- 49:37is usually
- 49:37through
- 49:37either
- 49:38mailing
- 49:38list
- 49:38or
- 49:39irc
- 49:39we
- 49:40hang
- 49:40out
- 49:41on
- 49:41irc
- 49:41a lot
- 49:41it's
- 49:42hash
- 49:42pipi
- 49:42on
- 49:42free
- 49:43node
- 49:43and
- 49:43we're
- 49:45usually
- 49:45quite
- 49:45approachable
- 49:46when you
- 49:46come
- 49:47with
- 49:48problems
- 49:48and
- 49:48one
- 49:49interesting
- 49:49thing
- 49:50is
- 49:50if
- 49:50you
- 49:50find
- 49:51your
- 49:51program
- 49:51running
- 49:52slower
- 49:53on their
- 49:53pipi
- 49:53than
- 49:54c
- 49:54python
- 49:54it's
- 49:55usually
- 49:55considered
- 49:56a bug
- 49:56unless
- 49:56you're
- 49:57using
- 49:57a lot
- 49:57of
- 49:57c
- 49:57extensions
- 49:58right
- 49:59so
- 49:59if
- 49:59people
- 49:59run
- 49:59into
- 50:00that
- 50:00maybe
- 50:00they
- 50:00should
- 50:00communicate
- 50:01with
- 50:01you
- 50:01guys
- 50:02and
- 50:02they
- 50:03can
- 50:03definitely
- 50:03file a
- 50:04bug
- 50:04and
- 50:04complain
- 50:06excellent
- 50:06two
- 50:07quick
- 50:07questions
- 50:07I
- 50:08typically
- 50:08ask
- 50:08people
- 50:09at
- 50:09the
- 50:09end
- 50:09of
- 50:09the
- 50:09show
- 50:09what
- 50:10what's
- 50:10your
- 50:10favorite
- 50:11editor
- 50:11how do
- 50:11you
- 50:11write
- 50:11code
- 50:12during
- 50:12the
- 50:12day
- 50:12I
- 50:13have
- 50:13heavily
- 50:14hacked
- 50:14emux
- 50:15actually
- 50:15that
- 50:16does
- 50:17all
- 50:17kinds
- 50:17of
- 50:18weird
- 50:18stuff
- 50:18and
- 50:19I'm
- 50:20way
- 50:20more
- 50:20proficient
- 50:21with
- 50:21elisp
- 50:22than
- 50:22I
- 50:22would
- 50:22ever
- 50:23want
- 50:23to
- 50:23be
- 50:23actually
- 50:24a
- 50:25skill
- 50:26you
- 50:26didn't
- 50:26really
- 50:26want
- 50:26to
- 50:27earn
- 50:27but
- 50:27you
- 50:27you've
- 50:28done
- 50:28it
- 50:28anyway
- 50:28huh
- 50:28something
- 50:30like
- 50:30that
- 50:30yeah
- 50:30and
- 50:31then
- 50:31also
- 50:31what's
- 50:32a
- 50:33notable
- 50:34or
- 50:34interesting
- 50:35pypi
- 50:36package
- 50:37that
- 50:38you
- 50:38want
- 50:39to
- 50:39tell
- 50:39people
- 50:39about
- 50:39that's
- 50:40a
- 50:40tough
- 50:40one
- 50:40for
- 50:41me
- 50:41because
- 50:41I
- 50:41don't
- 50:42actually
- 50:42write
- 50:42all that
- 50:43much
- 50:43Python
- 50:43code
- 50:44that's
- 50:44using
- 50:44libraries
- 50:45you can't
- 50:46import
- 50:46too much
- 50:46into the
- 50:47like
- 50:47the
- 50:47core
- 50:47core
- 50:48bits
- 50:49right
- 50:49right
- 50:50but
- 50:50definitely
- 50:50and I
- 50:52mean
- 50:52it is
- 50:52self
- 50:52promotion
- 50:53but
- 50:53definitely
- 50:54cffi
- 50:54is
- 50:55something
- 50:55that
- 50:55I
- 50:55would
- 50:55recommend
- 50:56people
- 50:56to
- 50:56look
- 50:57at
- 50:57as
- 50:57a
- 50:57way
- 50:57to
- 50:57call
- 50:58c
- 50:58because
- 50:58this
- 50:59is
- 50:59something
- 50:59very
- 50:59low
- 51:00that
- 51:00has
- 51:02been
- 51:02very
- 51:02successful
- 51:03as a
- 51:04simple
- 51:04simple
- 51:05simple
- 51:05way
- 51:05to
- 51:06call
- 51:06c
- 51:06that's
- 51:06cool
- 51:07and
- 51:07if
- 51:07I
- 51:07was
- 51:07writing
- 51:08some
- 51:08program
- 51:08in
- 51:09Python
- 51:09and
- 51:10I
- 51:10had
- 51:10some
- 51:11computational
- 51:12bits
- 51:12I'd
- 51:12written
- 51:13in
- 51:13c
- 51:13I
- 51:13could
- 51:13wire
- 51:14them
- 51:14together
- 51:14with
- 51:14cffi
- 51:15you'll
- 51:17be
- 51:17surprised
- 51:17how
- 51:17few
- 51:17people
- 51:18actually
- 51:18do
- 51:18that
- 51:19most
- 51:19of
- 51:19the
- 51:20time
- 51:20I
- 51:20have
- 51:21this
- 51:21Python
- 51:21program
- 51:21and I
- 51:22have
- 51:22this
- 51:22obscure
- 51:22c
- 51:23library
- 51:23that
- 51:23accesses
- 51:24this
- 51:24weird
- 51:25device
- 51:25that
- 51:25nobody
- 51:26heard
- 51:26about
- 51:26and
- 51:28I
- 51:28need
- 51:28to
- 51:28call
- 51:28it
- 51:28somehow
- 51:29and
- 51:29that's
- 51:29why
- 51:29you
- 51:30call
- 51:30c
- 51:30the
- 51:31computational
- 51:31bits
- 51:32it's
- 51:33actually
- 51:33quite
- 51:34rare
- 51:34but
- 51:34that
- 51:35would
- 51:35be
- 51:35an
- 51:35option
- 51:36too
- 51:36yeah
- 51:36sure
- 51:36sure
- 51:37okay
- 51:38awesome
- 51:39and
- 51:39then
- 51:39finally
- 51:40just
- 51:40you said
- 51:41that you
- 51:42do
- 51:42some
- 51:42consulting
- 51:42do you
- 51:43want to
- 51:43maybe
- 51:43talk
- 51:44a little
- 51:44bit
- 51:44about
- 51:44what
- 51:45you
- 51:45do
- 51:45so
- 51:45if
- 51:45people
- 51:45want
- 51:46to
- 51:46contact
- 51:46you
- 51:46or
- 51:46anything
- 51:47like
- 51:47that
- 51:47so
- 51:48the
- 51:48website
- 51:48is
- 51:49barocksoftware.com
- 51:50and
- 51:51essentially
- 51:51what
- 51:52we
- 51:52do
- 51:52is
- 51:53we
- 51:53make
- 51:53your
- 51:54Python
- 51:54programs
- 51:54run
- 51:55faster
- 51:55like
- 51:55the
- 51:56same
- 51:56thing
- 51:56as
- 51:56we
- 51:56do
- 51:57in
- 51:57open
- 51:57source
- 51:57except
- 51:58on
- 51:58the
- 51:58commercial
- 51:58side
- 51:59so
- 51:59typically
- 52:00if
- 52:00your
- 52:00open
- 52:01source
- 52:01software
- 52:01is
- 52:02running
- 52:02too
- 52:02slow
- 52:02just
- 52:03come
- 52:03to
- 52:03IRC
- 52:03and
- 52:04if
- 52:04your
- 52:04commercial
- 52:05software
- 52:05is
- 52:05running
- 52:06too
- 52:06slow
- 52:06we
- 52:06can
- 52:06definitely
- 52:07do
- 52:08a
- 52:08contract
- 52:08with
- 52:09you
- 52:09to
- 52:09make
- 52:09it
- 52:09run
- 52:10faster
- 52:10yeah
- 52:11that's
- 52:11awesome
- 52:11yeah
- 52:12so
- 52:12I'm
- 52:12sure
- 52:12people
- 52:13who
- 52:13are
- 52:13having
- 52:13trouble
- 52:13might
- 52:14be
- 52:14interested
- 52:14in
- 52:15checking
- 52:15that
- 52:15out
- 52:15so
- 52:15great
- 52:16Machia
- 52:17this
- 52:17has
- 52:17been
- 52:18super
- 52:18fun
- 52:18I've
- 52:18learned
- 52:19a lot
- 52:19thanks
- 52:19thank you
- 52:21Michael
- 52:21have a good
- 52:22day
- 52:22yeah
- 52:22you too
- 52:23this
- 52:24has been
- 52:24another
- 52:25episode
- 52:25of
- 52:25talk
- 52:26Python
- 52:26to
- 52:26me
- 52:27today's
- 52:27guest
- 52:28was
- 52:28Machia
- 52:28Falkowski
- 52:29and this
- 52:29episode
- 52:30has been
- 52:30sponsored
- 52:30by
- 52:31Hired
- 52:31and
- 52:32Codeship
- 52:32thank
- 52:33you guys
- 52:33for
- 52:34supporting
- 52:34the
- 52:34show
- 52:34Hired
- 52:36wants
- 52:36to help
- 52:36you
- 52:36find
- 52:37your
- 52:37next
- 52:37big
- 52:37thing
- 52:38visit
- 52:38Hired.com
- 52:39slash
- 52:40Talk Python
- 52:40to me
- 52:41to get
- 52:41five or
- 52:42more offers
- 52:42with salary
- 52:43and equity
- 52:43presented
- 52:44right up
- 52:44front
- 52:44and a
- 52:45special
- 52:46listener
- 52:46signing
- 52:47bonus
- 52:47of
- 52:47$4,000
- 52:48Codeship
- 52:50wants you
- 52:50to
- 52:50always
- 52:51keep
- 52:51shipping
- 52:52check
- 52:52them
- 52:52out
- 52:53at
- 52:53Codeship.com
- 52:54and thank
- 52:54them on
- 52:54Twitter
- 52:55via
- 52:55at
- 52:55Codeship
- 52:56don't
- 52:56forget
- 52:57the
- 52:57discount
- 52:57code
- 52:57for
- 52:58listeners
- 52:58it's
- 52:59easy
- 52:59Talk Python
- 53:00all
- 53:00caps
- 53:00no
- 53:01spaces
- 53:01you can
- 53:03find
- 53:03the links
- 53:03from the
- 53:03show
- 53:04at
- 53:04talkpython.fm
- 53:05episodes
- 53:06show
- 53:0721
- 53:08and be
- 53:09sure to
- 53:10subscribe
- 53:10to the
- 53:10show
- 53:11open your
- 53:11favorite
- 53:12podcatcher
- 53:12and search
- 53:13for Python
- 53:13we should
- 53:14be right
- 53:14at the
- 53:14top
- 53:15you can
- 53:15also
- 53:16find
- 53:16the
- 53:16iTunes
- 53:16and
- 53:17direct
- 53:17RSS
- 53:17feeds
- 53:18in the
- 53:18footer
- 53:18of the
- 53:18website
- 53:19our
- 53:20theme
- 53:21music
- 53:21is
- 53:21developers
- 53:22developers
- 53:22developers
- 53:23by
- 53:23Corey
- 53:23Smith
- 53:24who
- 53:24goes
- 53:24by
- 53:24Smix
- 53:25you can
- 53:26hear
- 53:26the
- 53:26entire
- 53:26song
- 53:27on
- 53:27talk
- 53:27python.fm
- 53:28this is
- 53:29your host
- 53:30Michael
- 53:30Kennedy
- 53:31thanks for
- 53:31listening
- 53:32Smix
- 53:33take us
- 53:33out of
- 53:34here
- 53:34dating
- 53:35with my
- 53:36voice
- 53:36there's no
- 53:37norm
- 53:37that I
- 53:37can
- 53:37feel
- 53:38within
- 53:38haven't
- 53:38been
- 53:39sleeping
- 53:39I've been
- 53:40using
- 53:40lots
- 53:40of
- 53:40rest
- 53:41I'll
- 53:41pass
- 53:41the
- 53:42mic
- 53:42back
- 53:42to
- 53:42who
- 53:42rocked
- 53:43it
- 53:43best
- 53:44I'm first developers, developers, developers, developers, developers.
- 53:52Developers, developers, developers, developers, developers.