Live data from Hacker News

Pyrefly: A new type checker and IDE experience for Python

engineering.fb.com

31–40 of 177 posts

Re: Pyrefly: A new type checker and IDE experience for Python

#31

To repeat an earlier comment of mine from the launch of uv on hn (tl; dr: these new type checkers never support django): The way these type checkers get fast is usually by not supporting the crazy rich reality of realworld python code. The reason we're stuck on mypy at work is because it's the only type checker that has a plugin for Django that properly manages to type check its crazy runtime generated methods. I wis…

[deleted]

Re: Pyrefly: A new type checker and IDE experience for Python

#32
post #6

Earlier quoted context omitted.

I think astral and meta were both working on their own type-checkers independently. My current understanding is that meta released so they could preempt the initial release of ty. It seems like they're a bit further ahead in development. Not sure if there are going to be any real differences between the two down the line.

Sounds a lot like TypeScript and Flow.

Typescript was Microsoft though. Meta might have the edge here based on brand awareness, but who knows for sure.

Re: Pyrefly: A new type checker and IDE experience for Python

#34

Seems there are at least three Rust-based competitors for type checkers in Python now (Microsoft, Facebook, Astral), and of course there's still mypy.

Close, Microsoft’s type checker Pyright is Typescript. Its still faster than mypy for me though.

Pls forgive my ignorance, but how is Typescript (a superset of Javascript) used to type-check Python?

Re: Pyrefly: A new type checker and IDE experience for Python

#35

Its probably cool n' all but fb isnt getting any of my attention. They'd need to come up with AGI for that to happen, and even then I'd shrug it off.

I agree. I simply can't support anything Mark Zuckerberg does at this point.

This is an open source developer tooling project, not a product which Zuckerberg had anything to do with. What's the point of ignoring it?

Re: Pyrefly: A new type checker and IDE experience for Python

#37

Earlier quoted context omitted.

Close, Microsoft’s type checker Pyright is Typescript. Its still faster than mypy for me though.

Pls forgive my ignorance, but how is Typescript (a superset of Javascript) used to type-check Python?

There's nothing magical to type-checking Python. You can write this in any programming language. TypeScript is actually a pretty nice language for writing static analysis tools.

Re: Pyrefly: A new type checker and IDE experience for Python

#39

Earlier quoted context omitted.

Sounds a lot like TypeScript and Flow.

Typescript was Microsoft though. Meta might have the edge here based on brand awareness, but who knows for sure.

Right, and Flow was FB

Re: Pyrefly: A new type checker and IDE experience for Python

#40
post #6

This is very cool but why wouldn’t they just contribute to uv and ruff and ty https://github.com/astral-sh/ty

I think astral and meta were both working on their own type-checkers independently. My current understanding is that meta released so they could preempt the initial release of ty. It seems like they're a bit further ahead in development. Not sure if there are going to be any real differences between the two down the line.

I think they've mentioned earlier that it's really just because PyCon is this week (so a good time to announce new Python tooling).
Post reply on HN