Between the Lines

Larry Dignan, Andrew Nusca and Rachel King

Why Facebook's HipHop for PHP is important

By | February 2, 2010, 12:21pm PST

Facebook formally announced a long-rumored project it has been working on called HipHop for PHP.

According to the announcement, HipHop is a code transformer that turns PHP code into “highly optimized C++.” By using HipHop on their servers, Facebook has been able to reduce CPU usage by over 50%, and substantially increase the speed of their pages. All without giving up the “rapid pace of development that PHP offers.” As the announcement notes:

“Overall HipHop allows us to keep the best aspects of PHP while taking advantage of the performance benefits of C++. In total, we have written over 300,000 lines of code and more than 5,000 unit tests. All of this will be released this evening on GitHub under the open source PHP license.”

Speeding up PHP is important, because (as Terry Chay has often said) for most of the web era the major constraint on application speed has been database performance. So, the fact that PHP is relatively slow, wasn’t an issue in the past. Now, with data caching solutions like MemCached, the performance of PHP has become more important, particularly for large-scale sites like Facebook.

Facebook is holding a developer event tonight at which they will release more details on HipHop. You can see it streamed at http://developers.facebook.com/news.php?blog=1&story=358 at 7:30 PM Pacific.

Kick off your day with ZDNet's daily e-mail newsletter. It's the freshest tech news and opinion, served hot. Get it.

Topics

Larry Dignan is Editor in Chief of ZDNet and SmartPlanet as well as Editorial Director of ZDNet's sister site TechRepublic.

Disclosure

Larry Dignan

Larry Dignan has nothing to disclose. He doesn’t hold investments in the technology companies he covers.

Biography

Larry Dignan

Larry Dignan is Editor in Chief of ZDNet and SmartPlanet as well as Editorial Director of ZDNet's sister site TechRepublic. He was most recently Executive Editor of News and Blogs at ZDNet. Prior to that he was executive news editor at eWeek and news editor at Baseline. He also served as the East Coast news editor and finance editor at CNET News.com. Larry has covered the technology and financial services industry since 1995, publishing articles in WallStreetWeek.com, Inter@ctive Week, The New York Times, and Financial Planning magazine. He's a graduate of the Columbia School of Journalism and the University of Delaware.

For daily updates, follow Larry on Twitter.

Related Discussions on TechRepublic

Did you know you can take part in these discussions with your ZDNet membership?
7
Comments

Join the conversation!

Just In

good idea about facebook
gavin.chan 2nd Oct
A good post. Do you know tattoo? It is quite amazing. We supply kinds of tattoo kits, tattoo machines, tattoo needles, tattoo ink and so on. Please buy rotary tattoo kits at wholesale price from us.S6xWj
0 Votes
+ -
It's easier to fix problems than give up RAD tools. No reason why PHP can't be compiled down to almost bare-metal if necessary. I would expect this to be a trend in the future. Remember C++ was originally bloated and took some time to catch on, what with its double-indirection for function calls. (See Lippman's C++ object model book for details.) Nothing beat C for performance, until hardware caught up with C++. Now, nothing beats domain-specific languages like PHP for RAD productivity. Better and easier to add optimization to the back end than any other alternative.
0 Votes
+ -
HipHop seems really interesting, we have had to switch to
lighttpd and xcache to achieve huge performance benefits
for our objectCMS framework which is now faster that
wordpress, joomla and drupal. I am wondering how hiphop
compares to lighttpd and xCache, does anyone know when
hiphop is going to be released to the public.
0 Votes
+ -
Staff
Release
JFPSF 3rd Feb 2010
Should be released soon. I'm very interested in seeing the new web server they wrote with it, also.
0 Votes
+ -
RE: Why Facebook's HipHop for PHP is important
jimk_z Updated - 6th Feb 2010
Intersting compiled PHP? Not a bad idea. That way you can still work within PHP and then optimize by compiling. Hell thats more important to me then facebook.
0 Votes
+ -
You mean hiphop word is so familiar is this reason or hop links are creating very fast for that purposes php track word hiphop.. ? i wonder reason?
0 Votes
+ -
good idea about facebook
gavin.chan 1st Oct
A good post. Do you know tattoo? It is quite amazing. We supply kinds of tattoo kits, tattoo machines, tattoo needles, tattoo ink and so on. Please buy tattoo tipat wholesale price from us.7QiOZ
0 Votes
+ -
good idea about facebook
gavin.chan 2nd Oct
A good post. Do you know tattoo? It is quite amazing. We supply kinds of tattoo kits, tattoo machines, tattoo needles, tattoo ink and so on. Please buy rotary tattoo kits at wholesale price from us.S6xWj

Join the conversation!

Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]
ie8 fix

The best of ZDNet, delivered

ZDNet Newsletters

Get the best of ZDNet delivered straight to your inbox

Facebook Activity

White Papers, Webcasts, & Resources
ie8 fix