News for hackers. Stuff that matters.
Re:Pyre: Fast Type Checking for Python by ericpts on Friday May 11, 2018 @12:23PM (#17048595)
I am particularly curious why they chose to start from scratch instead of cooperating with Dropbox on mypy.
Re:Pyre: Fast Type Checking for Python by phooji on Friday May 11, 2018 @12:32PM (#17048682)
Good question [I am the 'Pieter' on that blog post]. There will be a talk at PyCon that covers parts of this. It comes down to two reasons:

1) Performance. We needed something that would consistently work quickly on Instagram's server codebase (currently at several million lines).

2) We are building deeper semantic static analysis tools on top of Pyre. We've built some of these tools for Hack/PHP already, so following the Hack type checker's architecture is the best way for us to achieve this.

Re:Pyre: Fast Type Checking for Python by Twirrim on Friday May 11, 2018 @01:09PM (#17049018)
> 1) Performance. We needed something that would consistently work quickly on Instagram's server codebase (currently at several million lines).

That's not really an answer to why you didn't work on mypy, at least to an outsider to the decision making process. Are you saying that you discovered it's just not possible to scale mypy (or at least not without extensive work / more work than building your own solution?)

I can appreciate the choice in context of 2) :)

Re:Pyre: Fast Type Checking for Python by phooji on Friday May 11, 2018 @01:26PM (#17049176)
I think (2) is the overriding concern: we're getting really great results with the static analysis tools we've built internally on top of the Hack type checker. Building a similar tool on top of mypy would've required fairly invasive changes; we decided to use the Hack type checker infra instead.

Full disclosure: I worked on the Hack type checker briefly, a long time ago :)

Re:Pyre: Fast Type Checking for Python by ben509 on Friday May 11, 2018 @12:27PM (#17048639)
They didn't start entirely from scratch, they've been doing this with PHP already:

> Internally, Pyre's high-level architecture is similar to that of Hack, Facebook's type checker for PHP.

If they had a performant codebase to start with, this makes a lot of sense.

Re:Pyre: Fast Type Checking for Python by stochastic_monk on Friday May 11, 2018 @12:28PM (#17048651)
The same reason everyone has a deep learning platform. It’s about developer mindshare and industry dominance rather than honestly thinking they’ll make a better framework starting from scratch rather than improving someone else’s.
Re:Pyre: Fast Type Checking for Python by oblio on Friday May 11, 2018 @12:43PM (#17048792)
Also the same reason everyone has a VM, programming language, back end framework or front end framework.

Apple: LLVM (I know I’m stretching the definition here :) ); Objective-C, Swift; N/A; Cocoa.

Microsoft: .NET CLR; Visual Basic, C#, F#; ASP.NET; N/A.

Facebook: HHVM; Hack; N/A; React.

Google: Go, Dart; Golang, Dartlang; GWT, Guava; Angular; Android, Flutter.

Oracle: JVM; Java; APEX; N/A.

It seems that for some reason just Amazon doesn’t want to play :)

Re:Pyre: Fast Type Checking for Python by jrs95 on Friday May 11, 2018 @05:00PM (#17050765)
Apple actually sort of does have a backend framework: WebObjects. They just seem to have deprecated it in favor of other solutions. Still, I've noticed at least iTunes Connect is still using it. And for what it's worth, Swift is going to have more server related stuff coming to the standard library (https://swift.org/server-apis/), and I wouldn't be surprised if Apple starts adopting this eventually as well as it continues to improve.
Re:Pyre: Fast Type Checking for Python by Rotareti on Sunday May 13, 2018 @08:45AM (#17058633)
I'd add ReasonML to the Facebook list - one of the most promising general purpose languages out there, IMO.
Re:Pyre: Fast Type Checking for Python by electrum on Friday May 11, 2018 @01:20PM (#17049125)
You could add Folly as Facebook's backend C++ framework (it's somewhat analogous to Google's Guava for Java).
Re:Pyre: Fast Type Checking for Python by Sammi on Friday May 11, 2018 @02:55PM (#17049929)
Missing some front end frameworks:

Microsoft: WPF, Blazor Oracle: JavaFX

Re:Pyre: Fast Type Checking for Python by ldng on Friday May 11, 2018 @01:21PM (#17049134)
Typical Facebook NIH: it's not fast enough because it's written in O'Caml

Edit: oh and copyright