Date: Mon, 15 Apr 2019 13:00:00 -0400
<div class="wp-block-jetpack-markdown"><h3>Summary</h3> <p>The CPython interpreter has been the primary implementation of the Python runtime for over 20 years. In that time other options have been made available for different use cases. The most recent entry to that list is RustPython, written in the memory safe language Rust. One of the added benefits is the option to compile to WebAssembly, offering a browser-native Python runtime. In this episode core maintainers Windel Bouwman and Adam Kelly explain how the project got started, their experience working on it, and the plans for the future. Definitely worth a listen if you are curious about the inner workings of Python and how you can get involved in a relatively new project that is contributing to new options for running your code.</p> <h3>Announcements</h3> <ul> <li>Hello and welcome to Podcast.__init__, the podcast about Python and the people who make it great.</li> <li>When you’re ready to launch your next app or want to try a project you hear about on the show, you’ll need somewhere to deploy it, so take a look at our friends over at Linode. With 200 Gbit/s private networking, scalable shared block storage, node balancers, and a 40 Gbit/s public network, all controlled by a brand new API you’ve got everything you need to scale up. And for your tasks that need fast computation, such as training machine learning models, they just launched dedicated CPU instances. Go to <a href="https://www.pythonpodcast.com/linode?utm_source=rss&utm_medium=rss">pythonpodcast.com/linode</a> to get a $20 credit and launch a new server in under a minute. And don’t forget to thank them for their continued support of this show!</li> <li>You listen to this show to learn and stay up to date with the ways that Python is being used, including the latest in machine learning and data analysis. For even more opportunities to meet, listen, and learn from your peers you don’t want to miss out on this year’s conference season. We have partnered with organizations such as O’Reilly Media, Dataversity, and the Open Data Science Conference. Go to <a href="https://www.pythonpodcast.com/conferences?utm_source=rss&utm_medium=rss">pythonpodcast.com/conferences</a> to learn more and take advantage of our partner discounts when you register.</li> <li>Visit the <a href="https://www.pythonpodcast.com?utm_source=rss&utm_medium=rss">site</a> to subscribe to the show, sign up for the newsletter, and read the show notes. And if you have any questions, comments, or suggestions I would love to hear them. You can reach me on Twitter at <a href="https://twtiter.com/Podcast__init__?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">@Podcast__init__</a> or email <a href="mailto:hosts@podcastinit.com">hosts@podcastinit.com</a>)</li> <li>To help other people find the show please 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> and tell your friends and co-workers</li> <li>Join the community in the new Zulip chat workspace at <a href="https://www.pythonpodcast.com/chat?utm_source=rss&utm_medium=rss">pythonpodcast.com/chat</a></li> <li>Your host is Tobias Macey and today I’m interviewing Adam Kelly and Windel Bouwman about RusPython, a project to implement a new Python interpreter in Rust</li> </ul> <h2>Interview</h2> <ul> <li>Introduction</li> <li>How did you get introduced to Python?</li> <li>Can you start by explaining what Rust is for anyone who isn’t familiar with it?</li> <li>How did RustPython got started and what are your goals for the project?</li> <li>Can you discuss what is involved in implementing a fully compliant Python interpreter?</li> <li>What are some of the challenges that you face in replicating the capabilities of the CPython interpreter? <ul> <li>Are you attempting to maintain bug parity?</li> <li>How much of the stdlib needs to be reimplemented?</li> <li>Can you compare and contrast the benefits of Rust vs C?</li> <li>Will the end result be compatible with libraries that rely on C extensions such as NumPy?</li> </ul> </li> <li>What is the current state of the project? <ul> <li>What are some of the notable missing features?</li> </ul> </li> <li>Can you talk through your vision of how the WebAssembly support will manifest and the types of applications that it will enable? <ul> <li>How much effort have you put into size optimization for the webassembly target to reduce client-side load time?</li> <li>Are there any existing options for minification of Python code so that it can be delivered to users with less bandwidth?</li> </ul> </li> <li>What have been some of the most interesting/challenging/unexpected aspects of implementing a Python runtime?</li> <li>What do you have planned for the future of the project?</li> <li>What are the risks that you anticipate which could derail the project before it becomes production ready?</li> </ul> <h2>Contact Info</h2> <ul> <li>Windel <ul> <li><a href="https://github.com/windelbouwman?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">windelbouwman</a> on GitHub</li> <li><a href="http://www.windel.nl/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Website</a></li> <li><a href="https://twitter.com/windelbouwman?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">@windelbouwman</a> on Twitter</li> <li><a href="https://todon.nl/@windel?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">@windel@todon.nl</a> on Mastodon</li> </ul> </li> <li>Adam <ul> <li><a href="https://github.com/cthulahoops?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">cthulahoops</a> on GitHub</li> <li><a href="https://twitter.com/cthulahoops?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">@cthulahoops</a> on Twitter</li> </ul> </li> </ul> <h2>Picks</h2> <ul> <li>Tobias <ul> <li><a href="https://en.wikipedia.org/wiki/Oysterhead?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Oysterhead</a></li> </ul> </li> <li>Adam <ul> <li><a href="https://github.com/junegunn/fzf?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">FZF</a> fuzzy finder</li> </ul> </li> <li>Windel <ul> <li><a href="https://tqdm.github.io/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">TQDM</a> Python progress bar</li> </ul> </li> </ul> <h2>Links</h2> <ul> <li><a href="https://github.com/RustPython/RustPython?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">RustPython</a></li> <li><a href="https://www.youtube.com/watch?v=YMmio0JHy_Y&utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Windel Presentation EuroPython</a></li> <li><a href="https://www.rust-lang.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Rust</a></li> <li><a href="https://en.wikipedia.org/wiki/C%2B%2B?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">C++</a></li> <li><a href="https://doc.rust-lang.org/nomicon/meet-safe-and-unsafe.html?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Rust Memory Safety</a></li> <li><a href="https://micropython.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">MicroPython</a> <ul> <li><a href="https://www.pythonpodcast.com/episode-15-damien-george-talks-to-us-about-micropython/?utm_source=rss&utm_medium=rss">Podcast Episode</a></li> </ul> </li> <li><a href="https://pypy.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">PyPy</a></li> <li><a href="https://github.com/beeware/ouroboros?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Ouroboros</a> – Pure Python standard library</li> <li><a href="https://webassembly.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">WebAssembly</a></li> <li><a href="https://github.com/lalrpop/lalrpop?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">lalrpop</a> – Rust parser generator</li> <li><a href="https://doc.rust-lang.org/beta/book/ch07-01-packages-and-crates.html?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Rust Crates</a></li> <li><a href="https://github.com/pickitup247/pyckitup?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">PickItUp</a> in-browser Python game engine</li> <li><a href="https://www.ryanisaacg.com/quicksilver/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">QuickSilver Game Engine</a></li> <li><a href="https://www.python.org/dev/peps/pep-0441/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">PEP 441</a></li> <li><a href="https://en.wikipedia.org/wiki/Just-in-time_compilation?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">JIT (Just-In-Time) Compilation</a></li> </ul> <p>The intro and outro music is from <a href="http://freemusicarchive.org/music/The_Freak_Fandango_Orchestra/Love_death_and_a_drunken_monkey/04_-_The_Hug?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">The Hug</a> by <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></p> </div> <img alt="" height="0" src="https://analytics.boundlessnotions.com/piwik.php?idsite=1&rec=1&url=https%3A%2F%2Fwww.pythonpodcast.com%2Frust-python-interpreter-episode-207%2F&action_name=Exploring+Python%27s+Internals+By+Rewriting+Them+In+Rust+-+Episode+207&urlref=https%3A%2F%2Fwww.pythonpodcast.com%2Ffeed%2F&utm_source=rss&utm_medium=rss" style="border: 0; width: 0; height: 0;" width="0" />