Date: Sun, 18 Sep 2022 21:00:00 -0400
<div class="wp-block-jetpack-markdown"><h2>Summary</h2> <p>Static typing versus dynamic typing is one of the oldest debates in software development. In recent years a number of dynamic languages have worked toward a middle ground by adding support for type hints. Python’s type annotations have given rise to an ecosystem of tools that use that type information to validate the correctness of programs and help identify potential bugs. At Instagram they created the Pyre project with a focus on speed to allow for scaling to huge Python projects. In this episode Shannon Zhu discusses how it is implemented, how to use it in your development process, and how it compares to other type checkers in the Python ecosystem.</p> <h2>Announcements</h2> <ul> <li>Hello and welcome to Podcast.__init__, the podcast about Python’s role in data and science.</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 their managed Kubernetes platform it’s easy to get started with the next generation of deployment and scaling, powered by the battle tested Linode platform, including simple pricing, node balancers, 40Gbit networking, dedicated CPU and GPU instances, and worldwide data centers. And now you can launch a managed MySQL, Postgres, or Mongo database cluster in minutes to keep your critical data safe with automated backups and failover. Go to <a href="https://www.pythonpodcast.com/linode?utm_source=rss&utm_medium=rss">pythonpodcast.com/linode</a> and get a $100 credit to try out a Kubernetes cluster of your own. And don’t forget to thank them for their continued support of this show!</li> <li>Your host as usual is Tobias Macey and today I’m interviewing Shannon Zhu about Pyre, a type checker for Python 3 built from the ground up to support gradual typing and deliver responsive incremental checks</li> </ul> <h2>Interview</h2> <ul> <li>Introductions</li> <li>How did you get introduced to Python?</li> <li>Can you describe what Pyre is and the story behind it?</li> <li>There have been a number of tools created to support various aspects of typing for Python. How would you describe the various goals that they support and how Pyre fits in that ecosystem?</li> <li>What are the core goals and notable features of Pyre?</li> <li>Can you describe how Pyre is implemented? <ul> <li>How have the design and goals of the project changed/evolved since you started working on it?</li> </ul> </li> <li>What are the different ways that Pyre is used in the development workflow for a team or individual?</li> <li>What are some of the challenges/roadblocks that people run into when adopting type definitions in their Python projects?</li> <li>How has the evolution of type annotations and overall support for them affected your work on Pyre?</li> <li>As someone who is working closely with type systems, what are the strongest aspects of Python’s implementation and opportunities for improvement?</li> <li>What are the most interesting, innovative, or unexpected ways that you have seen Pyre used?</li> <li>What are the most interesting, unexpected, or challenging lessons that you have learned while working on Pyre?</li> <li>When is Pyre the wrong choice?</li> <li>What do you have planned for the future of Pyre?</li> </ul> <h2>Keep In Touch</h2> <ul> <li><a href="https://github.com/shannonzhu?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">shannonzhu</a> on GitHub</li> </ul> <h2>Picks</h2> <ul> <li>Tobias <ul> <li><a href="https://www.amazon.com/dp/B09QHCPD34/ref=dvm_us_or_cs_SH_all_22LTUM_s1_i0_TSTO-PV_Motion/?_encoding=UTF8&pd_rd_w=clIu2&content-id=amzn1.sym.5a6065ca-20a9-43e0-bf13-e291e9c0d7ff&pf_rd_p=5a6065ca-20a9-43e0-bf13-e291e9c0d7ff&pf_rd_r=JRZGJHWYK1W8HKNBGEK0&pd_rd_wg=OX0ys&pd_rd_r=62039a1a-bb02-4239-9251-db1d461b1e75&ref_=pd_gw_unk&utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Lord Of The Rings: The Rings of Power</a> on Amazon Video</li> </ul> </li> <li>Shannon <ul> <li><a href="https://horribleguild.com/product/the-kings-dilemma/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">King’s Dilemma</a> board game</li> </ul> </li> </ul> <h2>Closing Announcements</h2> <ul> <li>Thank you for listening! Don’t forget to check out our other shows. The <a href="https://www.dataengineeringpodcast.com?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Data Engineering Podcast</a> covers the latest on modern data management. The <a href="https://www.themachinelearningpodcast.com?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Machine Learning Podcast</a> helps you go from idea to production with machine learning.</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 mailing list, and read the show notes.</li> <li>If you’ve learned something or tried out a project from the show then tell us about it! Email <a href="mailto:hosts@podcastinit.com">hosts@podcastinit.com</a>) with your story.</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> </ul> <h2>Links</h2> <ul> <li><a href="https://pyre-check.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">PYre</a></li> <li><a href="http://mypy-lang.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">MyPy</a> <ul> <li><a href="https://www.pythonpodcast.com/episode-65-mypy-with-david-fisher-and-greg-price/?utm_source=rss&utm_medium=rss">Podcast Episode</a></li> </ul> </li> <li><a href="https://github.com/microsoft/pyright?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">PyRight</a></li> <li><a href="https://github.com/google/pytype?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">PyType</a></li> <li><a href="https://github.com/Instagram/MonkeyType?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">MonkeyType</a> <ul> <li><a href="https://www.pythonpodcast.com/monkeytype-with-carl-meyer-and-matt-page-episode-146/?utm_source=rss&utm_medium=rss">Podcast Episode</a></li> </ul> </li> <li><a href="https://en.wikipedia.org/wiki/Java_(programming_language)?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Java</a></li> <li><a href="https://en.wikipedia.org/wiki/C_(programming_language)?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">C</a></li> <li><a href="https://peps.python.org/pep-0484/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">PEP 484</a></li> <li><a href="https://peps.python.org/pep-0484/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Flow</a></li> <li><a href="https://hacklang.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Hack</a></li> <li><a href="https://en.wikipedia.org/wiki/Continuous_integration?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Continuous Integration</a></li> <li><a href="https://ocaml.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">OCaml</a></li> <li><a href="https://peps.python.org/pep-0675/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">PEP 675</a> – Arbitrary literal strings</li> <li><a href="https://en.wikipedia.org/wiki/Gradual_typing?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Gradual Typing</a></li> <li><a href="https://en.wikipedia.org/wiki/Abstract_syntax_tree?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">AST == Abstract Syntax Tree</a></li> <li><a href="https://microsoft.github.io/language-server-protocol/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Language Server Protocol</a></li> <li><a href="https://en.wikipedia.org/wiki/Tensor?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Tensor</a></li> <li><a href="https://wiki.haskell.org/Type_arithmetic?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Type Arithmetic</a></li> <li><a href="https://www.youtube.com/watch?v=nRt_xk2MGYU&utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">PyCon: Securing Code With The Python Type System</a></li> <li><a href="https://www.youtube.com/watch?v=pMgmKJyWKn8&utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">PyCon: Type Checked Python In The Real World</a></li> <li><a href="https://www.youtube.com/watch?v=wbohVjhqg7c&list=PL2Uw4_HvXqvYeXy8ab7iRHjA-9HiYhRQl&index=2&utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">PyCon: Ćukasz Lange 2022 Keynote</a></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></p> </div> <img alt="" height="0" src="https://analytics.boundlessnotions.com/piwik.php?idsite=1&rec=1&url=https%3A%2F%2Fwww.pythonpodcast.com%2Fpyre-type-checker-episode-378%2F&action_name=Catching+Up+With+Pyre%2C+A+Fast+Type+Checker+For+Python+-+Episode+378&urlref=https%3A%2F%2Fwww.pythonpodcast.com%2Ffeed%2F&utm_source=rss&utm_medium=rss" style="border: 0; width: 0; height: 0;" width="0" />