Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Here’s how orbital dynamics wizardry helped save NASA’s next Mars mission

    Blue Origin will ‘move heaven and Earth’ to help NASA reach the Moon faster, CEO says

    FBI orders domain registrar to reveal who runs mysterious Archive.is site

    Facebook X (Twitter) Instagram
    • Artificial Intelligence
    • Business Technology
    • Cryptocurrency
    • Gadgets
    • Gaming
    • Health
    • Software and Apps
    • Technology
    Facebook X (Twitter) Instagram Pinterest Vimeo
    Tech AI Verse
    • Home
    • Artificial Intelligence

      Amazon to lay off 14,000 corporate employees

      October 29, 2025

      Elon Musk launches Grokipedia as an alternative to ‘woke’ Wikipedia

      October 29, 2025

      Fears of an AI bubble are growing, but some on Wall Street aren’t worried just yet

      October 18, 2025

      The sleeper issue that could play a huge role in Virginia and New Jersey — and the midterms

      October 16, 2025

      California bill regulating top AI companies signed into law

      September 30, 2025
    • Business

      Government faces questions about why US AWS outage disrupted UK tax office and banking firms

      October 23, 2025

      Amazon’s AWS outage knocked services like Alexa, Snapchat, Fortnite, Venmo and more offline

      October 21, 2025

      SAP ECC customers bet on composable ERP to avoid upgrading

      October 18, 2025

      Revenue generated by neoclouds expected to exceed $23bn in 2025, predicts Synergy

      October 15, 2025

      You can now try Fortnite directly in Discord

      October 8, 2025
    • Crypto

      Pi Coin Price Recovery Appears Difficult Despite Investor Support

      November 8, 2025

      Bitcoin Treasuries Face Capital Shock as Falling Prices Erase Gains

      November 8, 2025

      Will Crypto Markets Rebound When the US Government Shutdown Ends?

      November 8, 2025

      Two Altcoins are Defying Market Odds With a Sustained Rally

      November 8, 2025

      Caffeine AI Lisbon: A Full-Day Event Exploring the Self-Writing Internet and the Future of AI-Built Applications

      November 8, 2025
    • Technology

      Here’s how orbital dynamics wizardry helped save NASA’s next Mars mission

      November 9, 2025

      Blue Origin will ‘move heaven and Earth’ to help NASA reach the Moon faster, CEO says

      November 9, 2025

      FBI orders domain registrar to reveal who runs mysterious Archive.is site

      November 9, 2025

      Questions swirl after Trump’s GLP-1 pricing deal announcement

      November 9, 2025

      Oddest ChatGPT leaks yet: Cringey chat logs found in Google analytics tool

      November 9, 2025
    • Others
      • Gadgets
      • Gaming
      • Health
      • Software and Apps
    Check BMI
    Tech AI Verse
    You are at:Home»Technology»Pyrefly: A new type checker and IDE experience for Python
    Technology

    Pyrefly: A new type checker and IDE experience for Python

    TechAiVerseBy TechAiVerseMay 17, 2025No Comments5 Mins Read2 Views
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr Email Reddit
    Pyrefly: A new type checker and IDE experience for Python
    Share
    Facebook Twitter LinkedIn Pinterest WhatsApp Email

    Pyrefly: A new type checker and IDE experience for Python

    Today we are announcing an alpha version of Pyrefly, an open source Python type checker and IDE extension crafted in Rust. Pyrefly is a static type checker that analyzes Python code to ensure type consistency and help you catch errors throughout your codebase before your code runs. It also supports IDE integration and CLI usage to give you flexibility in how you incorporate it into your workflow. 

    The open source community is the backbone of the Python language. We are eager to collaborate on Pyrefly with the community and improve Python’s type system and the many libraries that we all rely on.  

    Get started

    Ready to dive in? The official Pyrefly website has all the details, but to quickly get started:

    • Install Pyrefly on the command-line: pip install pyrefly.
    • Migrate your existing type checker configuration to Pyrefly.
    • Enhance Your IDE: Download the Pyrefly extension for VSCode and enjoy a lightning fast IDE experience from starter projects to monorepos.
    • Leave feedback for us on GitHub.

    Why we built Pyrefly

    Back in 2017, we embarked on a mission to create a type checker that could handle Instagram’s massive codebase of typed Python. This mission led to the birth of the Pyre type checker, inspired by the robust designs of Hack and Flow, and written in OCaml to deliver scalable performance. 

    Over the years, Pyre served us well, but as the type system evolved and the need for typechecking to drive responsive IDE emerged, it was clear that we needed to take a new approach. We explored alternate solutions and leveraged community tools like Pyright for code navigation. But the need for an extensible type checker that can bring code navigation, checking at scale, and exporting types to other services drove us to start over, creating Pyrefly. 

    The principles behind Pyrefly

    Today, we’re excited to unveil Pyrefly, a project we’ve been developing openly on GitHub. We invite you to explore our work and try it out on your own project. While a project like Pyrefly is the sum of thousands of technical choices, a few notable principles we’ve followed are:

    Performance

    We want to shift checks that used to happen later on CI to happening on every single keystroke. That requires checking code at speed (on large codebases we can check 1.8 million lines of code per second!) and careful thought to incrementality and updates. Pyrefly is implemented in Rust and designed for high performance on codebases of all sizes.

    IDE first

    We want the IDE and command line to share a consistent view of the world, which means crafting abstractions that capture the differences without incurring unnecessary costs. Designing these abstractions from the beginning is much easier than retrofitting them, which we tried with Pyre.

    Inference

    Some Python programs are typed, but many aren’t. We want users to benefit from types even if they haven’t annotated their code – so automatically infer types for returns and local variables and display them in the IDE. What’s more, in the IDE you can even double click to insert these inferred types if you think that would make the program better.

    Open source

    Python is open source, and hugely popular. The Python typing specification is open source, which made Pyrefly vastly easier to develop. Many of the libraries Meta contributes to are open source,( e.g., PyTorch).

    Pyrefly is also open source, available on GitHub under the MIT license, and we encourage pull requests and issue reports. We also have a Discord channel for more free flowing discussions. We would love to build a community around Pyrefly.

    The future of Pyrefly

    We will work with the Python community to drive the language forward and improve the developer experience. Since the beginning of Pyre, we open sourced our code and contributed a number of PEPs alongside the community of type checker maintainers. We feel we can do more with Pyrefly to help Python developers leverage the benefits of types for developers, library authors, and folks just learning the language. 

    Meta has leveraged types in dynamic languages from the beginning and knows the significant benefits it brings to developer productivity and security. We plan to share more of our learnings and tooling with blogs, better types in the ecosystem and language enhancements. 

    Today we’re releasing Pyrefly as an alpha. At the same time, we’re busy burning down the long-tail of bugs and features aiming to remove the alpha label this Summer. Your feedback is invaluable to get there, so please give it a try and report your bugs or things you think can be improved. Even if Pyrefly isn’t right for your project, we would love to hear how you use types and what you would like to see improved in your editor.

    Join us on the journey as we help illuminate your bugs with Pyrefly. Happy coding! 🐍✨

    Hear more about Pyrefly 

    Check out the episode of the Meta Tech Podcast where several team members share their experience developing Pyrefly and technical details for how it works. We also just talked at PyCon US about high-performance Python through faster type checking and free threaded execution.

    To learn more about Meta Open Source, visit our open source site, subscribe to our YouTube channel, or follow us on Facebook, Threads, X, and LinkedIn.

    Acknowledgements 

    Pyrefly was created By Meta’s Python Language Tooling Team: Jia Chen, Rebecca Chen, Sam Goldman, David Luo, Kyle Into, Zeina Migeed, Neil Mitchell, Maggie Moss, Conner Nilsen, Aaron Pollack, Teddy Sudol, Steven Troxler, Lucian Wischik, Danny Yang, and Sam Zhou.

    Share. Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Telegram Email
    Previous ArticleOBNC – Oberon-07 Compiler
    Next Article The Japanese method of creating forests comes to Mexico
    TechAiVerse
    • Website

    Jonathan is a tech enthusiast and the mind behind Tech AI Verse. With a passion for artificial intelligence, consumer tech, and emerging innovations, he deliver clear, insightful content to keep readers informed. From cutting-edge gadgets to AI advancements and cryptocurrency trends, Jonathan breaks down complex topics to make technology accessible to all.

    Related Posts

    Here’s how orbital dynamics wizardry helped save NASA’s next Mars mission

    November 9, 2025

    Blue Origin will ‘move heaven and Earth’ to help NASA reach the Moon faster, CEO says

    November 9, 2025

    FBI orders domain registrar to reveal who runs mysterious Archive.is site

    November 9, 2025
    Leave A Reply Cancel Reply

    Top Posts

    Ping, You’ve Got Whale: AI detection system alerts ships of whales in their path

    April 22, 2025359 Views

    Lumo vs. Duck AI: Which AI is Better for Your Privacy?

    July 31, 202593 Views

    6.7 Cummins Lifter Failure: What Years Are Affected (And Possible Fixes)

    April 14, 202569 Views

    Is Libby Compatible With Kobo E-Readers?

    March 31, 202555 Views
    Don't Miss
    Technology November 9, 2025

    Here’s how orbital dynamics wizardry helped save NASA’s next Mars mission

    Here’s how orbital dynamics wizardry helped save NASA’s next Mars mission Blue Origin is counting…

    Blue Origin will ‘move heaven and Earth’ to help NASA reach the Moon faster, CEO says

    FBI orders domain registrar to reveal who runs mysterious Archive.is site

    Questions swirl after Trump’s GLP-1 pricing deal announcement

    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    About Us
    About Us

    Welcome to Tech AI Verse, your go-to destination for everything technology! We bring you the latest news, trends, and insights from the ever-evolving world of tech. Our coverage spans across global technology industry updates, artificial intelligence advancements, machine learning ethics, and automation innovations. Stay connected with us as we explore the limitless possibilities of technology!

    Facebook X (Twitter) Pinterest YouTube WhatsApp
    Our Picks

    Here’s how orbital dynamics wizardry helped save NASA’s next Mars mission

    November 9, 20251 Views

    Blue Origin will ‘move heaven and Earth’ to help NASA reach the Moon faster, CEO says

    November 9, 20251 Views

    FBI orders domain registrar to reveal who runs mysterious Archive.is site

    November 9, 20251 Views
    Most Popular

    Xiaomi 15 Ultra Officially Launched in China, Malaysia launch to follow after global event

    March 12, 20250 Views

    Apple thinks people won’t use MagSafe on iPhone 16e

    March 12, 20250 Views

    French Apex Legends voice cast refuses contracts over “unacceptable” AI clause

    March 12, 20250 Views
    © 2025 TechAiVerse. Designed by Divya Tech.
    • Home
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms & Conditions

    Type above and press Enter to search. Press Esc to cancel.