{"id":265578,"date":"2010-02-02T13:32:48","date_gmt":"2010-02-02T18:32:48","guid":{"rendered":"http:\/\/www.stoth.com\/2010\/02\/02\/update-facebook-rewrites-php-runtime-with-project-hiphop\/"},"modified":"2010-02-02T13:32:48","modified_gmt":"2010-02-02T18:32:48","slug":"update-facebook-rewrites-php-runtime-with-project-hiphop","status":"publish","type":"post","link":"https:\/\/mereja.media\/index\/265578","title":{"rendered":"UPDATE: Facebook Rewrites PHP Runtime With Project HipHop"},"content":{"rendered":"<p><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.stoth.com\/wp-content\/plugins\/wp-o-matic\/cache\/8ff06_thefacebook.jpg\"><a href=\"http:\/\/www.readwriteweb.com\/archives\/facebook_gets_faster_debuts_homegrown_php_compiler.php\">Last night, we reported<\/a> that Facebook was planning to release a JIT compiler for PHP, a huge step toward making the PHP runtime &#8211; and PHP-based sites and apps &#8211; faster by taking the interpreted lagnuage (a.k.a., more human-readable code) a few steps closer to the bare-metal ones and zeros machines actually read.<\/p>\n<p>We&#8217;ve been <a href=\"http:\/\/developers.facebook.com\/news.php?blog=1&amp;story=358\">updated <\/a>this morning that the PHP runtime has in fact been rewritten, with an extra step: The PHP is translated to C++ (a more machine-readable language) which is then compiled with g++. This project, called HipHop, has been in development under great secrecy at Facebook for the past couple years and has just this morning been open sourced.<\/p>\n<p align=\"right\"><em>Sponsor<\/em><br \/><a href=\"http:\/\/d.ads.readwriteweb.com\/ck.php?n=18065&amp;cb=18065\" ><img src='http:\/\/d.ads.readwriteweb.com\/avw.php?zoneid=14&amp;cb=18065&amp;n=18065' border='0' alt='' \/><\/a><\/p>\n<p>Facebook engineer Haiping Zhao writes, &#8220;With HipHop we&#8217;ve reduced the CPU usage on our Web servers on average by about fifty percent, depending on the page. Less CPU means fewer servers, which means less overhead.&#8221;<\/p>\n<p>We&#8217;re sure this is good news for Facebook&#8217;s brand new data center, still under construction.<\/p>\n<p>&#8220;HipHop executes the source code in a semantically equivalent manner,&#8221; Zhao continues, &#8220;and sacrifices some rarely used features &#8211; such as eval() &#8211; in exchange for improved performance.&#8221;<\/p>\n<p>He also notes that while interpreted languages such as PHP, Ruby and Python &#8211; the launguages that, by and large, rule the web of apps and social site we all use today &#8211; allow for huge strides in developer productivity, they are also less efficient and often simply slower in runtime. For a huge and ever-growing site such as Facebook, this might have eventually led to scalability issues.<\/p>\n<p>In other words, it cost Facebook less to create a faster PHP runtime than to buy all the servers that would be needed to support hundreds of millions of users without a faster runtime.<\/p>\n<p>We will update this post as news continues to break.<\/p>\n<p><strong><a href=\"http:\/\/www.readwriteweb.com\/archives\/update_facebook_rewrites_php_runtime_with_project.php#comments-open\">Discuss<\/a><\/strong><\/p>\n<p><a href=\"http:\/\/feedads.g.doubleclick.net\/~at\/VaIgwTXClC3zOMCuis1fkIv4aYg\/0\/da\"><img decoding=\"async\" src=\"http:\/\/www.stoth.com\/wp-content\/plugins\/wp-o-matic\/cache\/e8267_di\" border=\"0\"><\/img><\/a><br \/>\n<a href=\"http:\/\/feedads.g.doubleclick.net\/~at\/VaIgwTXClC3zOMCuis1fkIv4aYg\/1\/da\"><img decoding=\"async\" src=\"http:\/\/www.stoth.com\/wp-content\/plugins\/wp-o-matic\/cache\/e8267_di\" border=\"0\"><\/img><\/a><\/p>\n<div>\n<a href=\"http:\/\/feeds.feedburner.com\/~ff\/readwriteweb?a=UHlrfssqT0c:8tEBQctVR-Y:FFnlKYwJmN0\"><img decoding=\"async\" src=\"http:\/\/www.stoth.com\/wp-content\/plugins\/wp-o-matic\/cache\/e8267_readwriteweb?d=FFnlKYwJmN0\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/readwriteweb?a=UHlrfssqT0c:8tEBQctVR-Y:Ij26kaj3iuU\"><img decoding=\"async\" src=\"http:\/\/www.stoth.com\/wp-content\/plugins\/wp-o-matic\/cache\/e8267_readwriteweb?d=Ij26kaj3iuU\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/readwriteweb?a=UHlrfssqT0c:8tEBQctVR-Y:C2pbw5bZMiI\"><img decoding=\"async\" src=\"http:\/\/www.stoth.com\/wp-content\/plugins\/wp-o-matic\/cache\/fd297_readwriteweb?d=C2pbw5bZMiI\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/readwriteweb?a=UHlrfssqT0c:8tEBQctVR-Y:yIl2AUoC8zA\"><img decoding=\"async\" src=\"http:\/\/www.stoth.com\/wp-content\/plugins\/wp-o-matic\/cache\/fd297_readwriteweb?d=yIl2AUoC8zA\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/readwriteweb?a=UHlrfssqT0c:8tEBQctVR-Y:V_sGLiPBpWU\"><img decoding=\"async\" src=\"http:\/\/www.stoth.com\/wp-content\/plugins\/wp-o-matic\/cache\/fd297_readwriteweb?i=UHlrfssqT0c:8tEBQctVR-Y:V_sGLiPBpWU\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/readwriteweb?a=UHlrfssqT0c:8tEBQctVR-Y:gIN9vFwOqvQ\"><img decoding=\"async\" src=\"http:\/\/www.stoth.com\/wp-content\/plugins\/wp-o-matic\/cache\/7a652_readwriteweb?i=UHlrfssqT0c:8tEBQctVR-Y:gIN9vFwOqvQ\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/readwriteweb?a=UHlrfssqT0c:8tEBQctVR-Y:F7zBnMyn0Lo\"><img decoding=\"async\" src=\"http:\/\/www.stoth.com\/wp-content\/plugins\/wp-o-matic\/cache\/7a652_readwriteweb?i=UHlrfssqT0c:8tEBQctVR-Y:F7zBnMyn0Lo\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/readwriteweb?a=UHlrfssqT0c:8tEBQctVR-Y:OqabYuBsmOY\"><img decoding=\"async\" src=\"http:\/\/www.stoth.com\/wp-content\/plugins\/wp-o-matic\/cache\/7a652_readwriteweb?d=OqabYuBsmOY\" border=\"0\"><\/img><\/a>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.stoth.com\/wp-content\/plugins\/wp-o-matic\/cache\/b76ca_UHlrfssqT0c\" height=\"1\" width=\"1\" \/> <\/p>\n<p>Buy This Item: <a class=\"buy\" href=\"http:\/\/www.stoth.com\/buy.php\" ><span style=\"color: #33bc03\">[Click here to buy this item]<\/span><\/a><\/p>\n<p><a href=\"http:\/\/feedproxy.google.com\/~r\/readwriteweb\/~3\/UHlrfssqT0c\/update_facebook_rewrites_php_runtime_with_project.php\" >Read Original Article<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last night, we reported that Facebook was planning to release a JIT compiler for PHP, a huge step toward making the PHP runtime &#8211; and PHP-based sites and apps &#8211; faster by taking the interpreted lagnuage (a.k.a., more human-readable code) a few steps closer to the bare-metal ones and zeros machines actually read. We&#8217;ve been [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-265578","post","type-post","status-publish","format-standard","hentry","category-news"],"_links":{"self":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/posts\/265578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/comments?post=265578"}],"version-history":[{"count":0,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/posts\/265578\/revisions"}],"wp:attachment":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/media?parent=265578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/categories?post=265578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/tags?post=265578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}