4 ms·
On the other hand, Facebook being built on PHP meant they eventually felt the need to dedicate significant engineering time into building their own PHP VM (HHVM
by gcommer 11y ago
On the other hand, Facebook being built on PHP meant they eventually felt the need to dedicate significant engineering time into building their own PHP VM (HHVM) along with their own spin-off of the PHP language (Hack) to get it to work for them.
- thejosh 11y agoYeah, and they could have switched to any language they wanted, but they stuck with PHP and created HHVM (they most likely run other languages as well). They also felt the need to create other open source things you have had heard of, such as react.
- bigiain 11y agoHeh - it's funny you mention React there, in the context of sticking with PHP instead of jumping ship to some more appropriate technology: http://techcrunch.com/2012/09/11/mark-zuckerberg-our-biggest-mistake-with-mobile-was-betting-too-much-on-html5/ http://techcrunch.com/2012/09/11/mark-zuckerberg-our-biggest... It was only 4 years ago when creating HTML5 based hybrid mobile apps was "the biggest mistake Facebook ever made", and it was all about "native apps" for iOS and Android... Now React and React Native are "the new hotness"...
- thejosh 11y agoOr maybe the devices are "good enough" now to actually run these sorts of things? But yes, it is a circle of life.
- mappu 11y agoUpstream PHP has gained to about the same speed, and added many of the features (e.g. gradual strict typing and generators). I don't think Facebook would have made the same decision today.
- LukasReschke 11y agoWe also have some nice graphs about the speed of PHP 7: https://owncloud.org/blog/php-7-is-here-and-owncloud-is-ready/ https://owncloud.org/blog/php-7-is-here-and-owncloud-is-read...