{"id":7520,"date":"2013-06-13T17:21:31","date_gmt":"2013-06-13T22:21:31","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=7520"},"modified":"2013-06-13T17:21:32","modified_gmt":"2013-06-13T22:21:32","slug":"how-three-guys-rebuilt-the-foundation-of-facebook","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2013\/06\/13\/how-three-guys-rebuilt-the-foundation-of-facebook\/","title":{"rendered":"How Three Guys Rebuilt the Foundation of Facebook"},"content":{"rendered":"<p><a href=\"http:\/\/www.wired.com\/wiredenterprise\/2013\/06\/facebook-hhvm-saga\/all\/\">Cade Metz<\/a>:<\/p>\n<blockquote cite=\"http:\/\/www.wired.com\/wiredenterprise\/2013\/06\/facebook-hhvm-saga\/all\/\">\n<p>In a nod to the company&rsquo;s original PHP converter, they called the system the <a href=\"https:\/\/www.facebook.com\/note.php?note_id=10150415177928920\">HipHop Virtual Machine<\/a>, or HHVM for short, and it was soon installed beneath the live site, where it continues to run today.<\/p>\n<p>HHVM uses what&rsquo;s called just-in-time compilation, which means Facebook&rsquo;s PHP code is converted to machine language as it executes on the server. This is the way the Java programming language runs, but the Java virtual machine was built over many years to serve an entire industry of programmers. The HipHop Virtual Machine was built just for Facebook &mdash; though, <a href=\"http:\/\/www.wired.com\/wiredenterprise\/2012\/08\/facebook-prism\/\">as with so many parts of its infrastructure<\/a>, Facebook has open sourced the system, so that anyone can use it.<\/p><p>With the HipHop Virtual Machine, Facebook can run PHP at speeds most developers never thought possible. But some still wonder why the company would go to such extremes. Longtime developer and programming pundit <a href=\"http:\/\/www.scala-blogs.org\/2007\/12\/scala-statically-typed-dynamic-language.html\">David Pollack<\/a> doesn&rsquo;t buy the notion that PHP helps Facebook iterate at a faster clip.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Cade Metz: In a nod to the company&rsquo;s original PHP converter, they called the system the HipHop Virtual Machine, or HHVM for short, and it was soon installed beneath the live site, where it continues to run today. HHVM uses what&rsquo;s called just-in-time compilation, which means Facebook&rsquo;s PHP code is converted to machine language as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[326,25,470,46,138,359,71,96],"class_list":["post-7520","post","type-post","status-publish","format-standard","hentry","category-technology","tag-c-plus-plus","tag-facebook","tag-hhvm","tag-languagedesign","tag-optimization","tag-php","tag-programming","tag-web"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=7520"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7520\/revisions"}],"predecessor-version":[{"id":7521,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7520\/revisions\/7521"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=7520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=7520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=7520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}