|
|
|
|
|
by NoodleIncident
4251 days ago
|
|
By the time they got around to building "frankenstein PHP", it was way too late to switch languages. Before that, there was no time to switch. 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. |
|