News for hackers. Stuff that matters.
Re:Pyrefly: A new type checker and IDE experience for Python by samwgoldman on Sunday May 18, 2025 @12:11PM (#44022372)
Hack is quite a bit more optimized than Pyre was, but Pyrefly is at least 10x faster than Pyre on the IG codebase.

I didn’t know about the Rust-based Hack checker— that’s really cool!

Re:Pyrefly: A new type checker and IDE experience for Python by muglug on Sunday May 18, 2025 @10:55PM (#44026192)
Where do those speed ups come from? 10x seems extraordinary for a task that’s pretty IO-bound. Was Pyre ineffectively parallelised or something?
Re:Pyrefly: A new type checker and IDE experience for Python by CoolCold on Sunday May 18, 2025 @11:18PM (#44026269)
IO bound, how you define that? From my perspective, modern consumer grade SSDs/NVMes producing 7GB/s-8GB/s (yep, Giga Byte per second) for reads gives me 1/7-1/8 of second to load that data in RAM the rest of the 1 second is for CPU.
Re:Pyrefly: A new type checker and IDE experience for Python by muglug on Monday May 19, 2025 @09:05AM (#44029427)
"pretty" was doing too much work, but there's the twin cost of reading and parsing the file, which usually needs to be done twice (once for static reflection, and once for analysis). The reading and parsing eats up about 16% of the analysis phase, and slightly more overall — maybe 20% of the total runtime.
Re:Pyrefly: A new type checker and IDE experience for Python by fastball on Tuesday May 27, 2025 @11:30PM (#44112512)
Parsing is not IO and clearly an area you can get much better performance in-program.