Trent Nelson on PyParallel

The Python Podcast.__init__

Episode | Podcast

Date: Wed, 14 Oct 2015 09:00:00 -0400

<p>Visit our <a href="http://pythonpodcast.com?utm_source=rss&amp;utm_medium=rss">site</a> to listen to past episodes, support the show, and sign up for our mailing list.</p> <h3>Summary</h3> <p>Trent Nelson is a software engineer working with Continuum Analytics and a core contributor to CPython. He started experimenting with a way to sidestep the restrictions of the Global Interpreter Lock without discarding its benefits and that has become the PyParallel project. We had the privilege of discussing the details around this innovative experiment with Trent and learning more about the challenges he has experienced, what motivated him to start the project, and what it can offer to the community.</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&amp;uo=6&amp;at=&amp;ct=&amp;utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">iTunes</a>, <a href="http://www.stitcher.com/s?fid=64838&amp;refid=stpr&amp;utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">Stitcher</a>, <a href="http://tunein.com/embed/follow/p726240/#?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">TuneIn</a> or <a href="https://www.pythonpodcast.com/feed/mp3/?utm_source=rss&amp;utm_medium=rss">RSS</a></li> <li>Follow us on <a href="https://twitter.com/Podcast__init__?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">Twitter</a> or <a href="https://plus.google.com/+Podcastinit-the-python-podcast?utm_source=rss&amp;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&amp;uo=6&amp;at=&amp;ct=&amp;utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">iTunes</a>, <a href="https://twitter.com/Podcast__init__?utm_source=rss&amp;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&amp;utm_medium=rss" rel="noopener" target="_blank">Google+</a></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</li> <li>I would also like to thank Hired, a job marketplace for developers, for sponsoring this episode of Podcast.__init__. Use the link <a href="https://hired.com/?utm_content=shownotes-4k&amp;utm_medium=podcast&amp;utm_source=podcastinit&amp;utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">hired.com/podcastinit</a> to double your signing bonus.</li> <li>We are recording today on September 7th, 2015 and your hosts as usual are Tobias Macey and Chris Patti</li> <li>Today we are interviewing Trent Nelson about PyParallel</li> </ul> <div><a href="https://hired.com/?utm_content=shownotes-4k&amp;utm_medium=podcast&amp;utm_source=podcastinit&amp;utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank"><img alt="Hired Logo" src="https://i0.wp.com/podcastinit.podbean.com/mf/web/ehi957/hired-logo-dark-padding.png?w=1200&amp;utm_source=rss&amp;utm_medium=rss" style="float: left; margin: 0 10px 10px 0;" /></a>On Hired software engineers &amp; designers can get 5+ interview requests in a week and each offer has salary and equity upfront. With full time and contract opportunities available, users can view the offers and accept or reject them before talking to any company. Work with over 2,500 companies from startups to large public companies hailing from 12 major tech hubs in North America and Europe. Hired is totally free for users and If you get a job you’ll get a $2,000 “thank you” bonus. If you use our <a href="https://hired.com/?utm_content=shownotes-4k&amp;utm_medium=podcast&amp;utm_source=podcastinit&amp;utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">special link</a> to signup, then that bonus will double to $4,000 when you accept a job. If you’re not looking for a job but know someone who is, you can refer them to Hired and get a $1,337 bonus when they accept a job.</p> </div> <h3 style="clear: both;">Interview with Trent Nelson</h3> <ul> <li>Introductions</li> <li>How did you get introduced to Python?</li> <li>For our listeners who may not be aware, can you give us an overview of what Pyparallel is and what makes it different from other Python implementations?</li> <li>How did PyParallel come about?</li> <li>What are some of the biggest technical hurdles that you have been faced with during your work on PyParallel?</li> <li>I understand that PyParallel currently only works on Windows. What was the motivation for that and what would be required for enabling PyParallel to run on a Linux or BSD style operating system?</li> <li>How does Pyparallel get around the limitations of the global interpreter lock without removing it?</li> <li>Is there any special syntax required to take advantage of the parallelism offered by PyParallel? How does it interact with the threading module in the standard library?</li> <li>In the abstract for the Pyparallel paper, you cite a simple rule &#8211; “Don’t persist parallel objects” &#8211; how easy is this to do with currently available concurrency paradigms and APIs, and would it make sense to add such support? <ul> <li>For instance, how would one be sure to follow this rule when using Twisted or asyncio?</li> </ul> </li> <li>Are there any operations that are not supported in parallel threads?</li> <li>What drove the decision to fork Python 3.3 as opposed to the 2.X series?</li> <li>In the documentation you mention that the long term goal for PyParallel is to merge it back into Python mainline, possibly within 5 years. Has anything changed with that goal or timeline? What milestones do you need to hit before that becomes a realistic possibility?</li> <li>Can you compare PyParallel to PyPy-STM and Go with Goroutines in terms of performance and user implementation?</li> <li>What are some particular problem areas that you are looking for help with?</li> <li>Assuming that it does get merged in as Python 4, how do you think that would affect the features and experiments that went into Python 5?</li> <li>To be continued…</li> </ul> <h3>Picks</h3> <ul> <li>Tobias <ul> <li><a href="http://testinfra.readthedocs.org/en/latest/?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">Testinfra</a></li> <li><a href="http://softwareengineeringdaily.com/?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">Software Engineering Daily</a></li> </ul> </li> <li>Chris <ul> <li><a href="https://www.kickstarter.com/projects/1868398473/hello-web-app-intermediate-concepts?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">Hello Webapp &#8211; Intermediate Concepts</a></li> <li><a href="http://grimmales.com/rainbowdome/?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">Grimm Rainbow Dome</a></li> <li><a href="https://www.youtube.com/user/pbsideachannel?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">PBS Idea Channel</a></li> </ul> </li> <li>Trent <ul> <li><a href="http://amzn.to/1UxJExs?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">Show Stopper</a> by G. Pascal Zachary</li> </ul> </li> </ul> <h3>Keep In Touch</h3> <ul> <li><a href="https://github.com/pyparallel/pyparallel?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">GitHub</a></li> <li>Twitter <ul> <li><a href="https://twitter.com/pyparallel?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">@PyParallel</a></li> <li><a href="https://twitter.com/trentnelson?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">@TrentNelson</a></li> </ul> </li> </ul> <p><img alt="" height="0" src="https://analytics.boundlessnotions.com/piwik.php?idsite=1&amp;rec=1&amp;url=https%3A%2F%2Fwww.pythonpodcast.com%2Fepisode-27-trent-nelson-on-pyparallel%2F&amp;action_name=Trent+Nelson+on+PyParallel+-+Episode+27&amp;urlref=https%3A%2F%2Fwww.pythonpodcast.com%2Ffeed%2F&amp;utm_source=rss&amp;utm_medium=rss" style="border: 0; width: 0; height: 0;" width="0" /></p>