Date: Thu, 31 Mar 2016 21:00:00 -0400
<p>Visit our <a href="http://pythonpodcast.com?utm_source=rss&utm_medium=rss">site</a> to listen to past episodes, support the show, join our <a href="https://discourse.pythonpodcast.com?utm_source=rss&utm_medium=rss">community</a>, and sign up for our mailing list.</p> <h3>Summary</h3> <p>In an attempt to improve the performance characteristics of the CPython implementation, Dino Viehland began work on a patch to allow for a pluggable interface to a JIT (Just In Time) compiler. His employer, Microsoft, decided to sponsor his efforts and the result is the Pyjion project. In this episode we spoke with Dino Viehland and Brett Cannon about the goals of the project, the progress they have made so far, and the issues they have encountered along the way. We also made an interesting detour to discuss the general state of performance in the Python ecosystem and why the GIL isn’t the bogeyman it’s made out to be.</p> <h3>Brief Introduction</h3> <ul> <li>Hello and welcome to Podcast.__init__, the podcast about Python and the people who make it great.</li> <li>Subscribe on <a href="https://itunes.apple.com/us/podcast/podcast.-init/id981834425?mt=2&uo=6&at=&ct=&utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">iTunes</a>, <a href="http://www.stitcher.com/s?fid=64838&refid=stpr&utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Stitcher</a>, <a href="http://tunein.com/embed/follow/p726240/#?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">TuneIn</a> or <a href="https://www.pythonpodcast.com/feed/mp3/?utm_source=rss&utm_medium=rss">RSS</a></li> <li>Follow us on <a href="https://twitter.com/Podcast__init__?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Twitter</a> or <a href="https://plus.google.com/+Podcastinit-the-python-podcast?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Google+</a></li> <li>Give us feedback! Leave a review on <a href="https://itunes.apple.com/us/podcast/podcast.-init/id981834425?mt=2&uo=6&at=&ct=&utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">iTunes</a>, <a href="https://twitter.com/Podcast__init__?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Tweet</a> to us, send us an <a href="mailto:hosts@podcastinit.com">email</a> or leave us a message on <a href="https://plus.google.com/+Podcastinit-the-python-podcast?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Google+</a></li> <li>Join our community! Visit <a href="https://discourse.pythonpodcast.com?utm_source=rss&utm_medium=rss">discourse.pythonpodcast.com</a> for your opportunity to find out about upcoming guests, suggest questions, and propose show ideas.</li> <li>I would like to thank everyone who has donated to the show. Your contributions help us make the show sustainable. For details on how to support the show you can visit our site at <a href="http://pythonpodcast.com?utm_source=rss&utm_medium=rss">pythonpodcast.com</a></li> <li>Linode is sponsoring us this week. Check them out at <a href="http://linode.com/podcastinit?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">linode.com/podcastinit</a> and get a $20 credit to try out their fast and reliable Linux virtual servers for your next project</li> <li>I would also like to thank Hired, a job marketplace for developers and designers, for sponsoring this episode of Podcast.__init__. Use the link <a href="http://hired.com/podcastinit?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">hired.com/podcastinit</a> to double your signing bonus.</li> <li>Your hosts as usual are Tobias Macey and Chris Patti</li> <li>Open Data Science Conference, Boston MA May 21st – 22nd, use the discount code EP at <a href="https://odsceast.eventbrite.com/?discount=EP&utm_source=rss&utm_medium=rss" rel="noopener" target="_blank" title="">registration</a> for 20% off</li> <li>Today we are interviewing Brett Cannon and Dino Viehland about their work on Pyjion, a CPython extension that provides an API to allow for plugging a JIT compilation engine into the CPython runtime.</li> </ul> <h3>Interview with Brett Cannon and Dino Viehland</h3> <ul> <li>Introductions</li> <li>How did you get introduced to Python? – Chris</li> <li>What was the inspiration for the Pyjion project and what are its goals? – Tobias</li> <li>The FAQ mentions that Pyjion could easily be made cross platform, but this being a Microsoft project it was bootstrapped on Windows. Have any of the discrete tasks required to get Pyjion running under OSX or Linux been laid out even in outline form? – Chris</li> <li>Given that this is a Microsoft backed project it makes sense that the first JIT engine to be implemented is for the CoreCLR. What would an alternative implementation provide and in what ways can a JIT framework be tuned for particular workloads? – Tobias</li> <li>What kinds of use cases and problem domains that were previously impractical will be enabled by this? – Tobias</li> <li>Does Microsoft’s recent acquisition of Xamarin and the Mono project change things for the Pyjion project at all? – Chris</li> <li>What are the challenges associated with your work on Pyjion? Are there certain aspects of the Python language and the CPython implementation that make the work more difficult than it might be otherwise? – Tobias</li> <li>When I think of Microsoft and programming languages I generally think of C++ and C#. Did your team have to go through an approval process in order to utilize Python, and further to open source your work on Pyjion? – Chris</li> <li>How does Pyjion hook into the CPython runtime and what kinds of primitives does it expose to JIT engines for them to be able to work with? – Tobias</li> <li>Would an entire project be run through the JIT engine during runtime or is it possible to target a subset of the code being executed? – Tobias</li> <li>In what ways can a JIT compiler implementation be purpose-built for a given workload and how would someone go about creating one? – Tobias</li> <li>Could a JIT plugin be designed with different trade-offs, like no C API compatibility, but that worked around the GIL to provide real concurrency in Python? – Chris</li> <li>One of the most notable benefits of having a JIT implementation for the CPython runtime is the fact that modules with C extensions can be used, such as NumPy. Does that pose any difficulties in the compilation methods used for optimizing the Python portion of the code? – Tobias</li> <li>What kinds of performance improvements have you seen in your experimentation? – Tobias</li> <li>Which release of Python do you hope to have Pyjion incorporated into? – Tobias</li> <li>Has any thought been given to making Python a first class citizen in Visual Studio Code? – Chris</li> <li>What areas of the project could use some help from our listeners? – Chris</li> </ul> <h3>Keep In Touch</h3> <ul> <li>Dino <ul> <li><a href="https://github.com/DinoV?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">GitHub</a></li> </ul> </li> <li>Brett <ul> <li><a href="https://twitter.com/brettsky?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Twitter</a></li> <li><a href="http://snarky.ca?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Blog</a></li> <li><a href="https://blogs.msdn.microsoft.com/pythonengineering/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Python Engineering @ Microsoft Blog</a></li> </ul> </li> </ul> <h3>Picks</h3> <ul> <li>Tobias <ul> <li><a href="http://amzn.to/1SEokE2?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Logitech Wave MK550</a></li> <li><a href="https://saltstack.com?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">SaltStack</a></li> <li><a href="http://testinfra.readthedocs.org?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">TestInfra</a></li> <li><a href="https://github.com/mitodl/saltstack-formula-cookiecutter?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">SaltStack Formula Cookiecutter</a></li> </ul> </li> <li>Chris <ul> <li><a href="https://anchor.fm/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Anchor – Public Radio for the People</a></li> <li><a href="http://www.syfy.com/themagicians?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">The Magicians</a></li> <li><a href="https://www.youtube.com/watch?v=JgnublE4dxU&utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Portal is a Feminist Masterpiece – PBS Gameshow</a></li> </ul> </li> <li>Brett <ul> <li><a href="http://amzn.to/1SEorQe?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Breville Tea Maker</a></li> <li><a href="http://amzn.to/1TQu2UX?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Bodom Mugs</a></li> <li><a href="http://altosadventure.com/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Alto’s Adventure</a></li> </ul> </li> <li>Dino <ul> <li><a href="http://www.channel4.com/programmes/come-dine-with-me?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Come Dine With Me</a></li> </ul> </li> </ul> <p>The intro and outro music is from Requiem for a Fish <a href="http://freemusicarchive.org/music/The_Freak_Fandango_Orchestra/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">The Freak Fandango Orchestra</a> / <a href="http://creativecommons.org/licenses/by-sa/3.0/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">CC BY-SA</a><img alt="" height="0" src="https://analytics.boundlessnotions.com/piwik.php?idsite=1&rec=1&url=https%3A%2F%2Fwww.pythonpodcast.com%2Fepisode-51-pyjion-with-dino-viehland-and-brett-cannon%2F&action_name=Pyjion+with+Dino+Viehland+and+Brett+Cannon+-+Episode+51&urlref=https%3A%2F%2Fwww.pythonpodcast.com%2Ffeed%2F&utm_source=rss&utm_medium=rss" style="border: 0; width: 0; height: 0;" width="0" /></p>