NOTICE:
This content is in the "archives" of a retired blog called Gadgetopia. It has been moved to this subdomain as it is no longer considered relevant to the site. It is being hosted here for a indeterminate period of time. Its existence at this URL is not guaranteed, and it may be removed at any time. If you would like to refer to this content in the future, you are encouraged to save it to your local file system.

Some content from Gadgetopia was moved to the technical blog on deanebarker.net

Facebook and Hyper-PHP

Originally published by "dbarker" on 2010-01-14 13:01:00Z

Conversations About The Internet #5: Anonymous Facebook Employee : This is a wide-ranging interview with an anonymous Facebook employee, which is very interesting in itself, but particularly for this bit about their infrastructure.

Our site is coded, I’d say, 90% in PHP. All the front end – everything you see – is generated via a language called PHP. He is creating HPHP, Hyper-PHP, which means he’s literally rewriting the entire language. […] So this engineer is converting the site from one that runs on a scripted language to one that runs on a compiled language.

I couldn’t find any reference to Hyper-PHP anywhere, so I’m assuming it’s a Facebook-only thing.  Some pre-compiled derivation of PHP.

Comment by "Azeroth" on 2010-01-14 13:56:00Z
I find the idea intriguing and although I have no hopes Facebook will make this public and open source, maybe someone will take the idea and start a new project.
Comment by "Oscar M." on 2010-01-14 14:59:00Z
Isn't this why PHP supports extensions? So that you could move bottle neck code into compiled extensions that make functions available?
Comment by "duryodhan" on 2010-01-14 18:13:00Z
you should google around .. most people think that interview is a fake
Comment by "Nicolas" on 2010-01-17 08:13:00Z
Come on, Hyper-PHP is crap. Consider APC or eAccelerator!
Comment by "Abraham Williams" on 2010-01-19 07:31:00Z
Facebook has made several of their projects open source so hopefully if HPHP is real they will open it as well.
Comment by "Andrej Vol?anšek" on 2011-01-02 11:08:00Z
I think that she was talking about OO PHP. This would mean that FB was a procedural PHP and they wil rewrite it into object otiented approach. In other words, someone will do a code cleanup.