by StudlyCaps · 12y ago · 0 comments
The whole development process of Hack is interesting. It was very organic, if the stories I heard were true. Someone got it in their head to try compiling php to c++; they tested it and got a free 20% (ballpark) speedup of everything. Then they made a VM to make it faster and more efficient, and once they had that vm, it was easy to add small, useful features like 'await' and such.
Much of what people hate about PHP isn't in Hack, by the way. It has type hinting, lots of dumb conversions don't happen, and obviously it's not interpreted. Hack is really just a better language they made that, because it shares the same syntax as PHP, was very easy to switch over to while still developing features.