Facebook reworks PHP for speedier servers

HipHop released as open source

HipHop released as open source
Facebook has said it has built a new PHP platform, dubbed HipHop, which drastically increases the speed and scalability of its systems.
In a post on the Facebook developers blog senior engineer Haiping Zhao said that the company had spent the last two years on HipHop and as a result have halved the processor load of running web pages.
“Overall HipHop allows us to keep the best aspects of PHP while taking advantage of the performance benefits of C++,” he said.
“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.”
HipHop translates PHP source code into C++ and then uses g++ to compile it. As C++ is much faster and more efficient at handling code the whole system has a much lower overhead.
Facebook has also developed an interpreter called HPHPi which frees PHP developers from compiling code before running it. Zhao said that this had helped Facebook engineers find bugs and keep writing code in their usual style.
The company is now running more than 90 per cent of its productions server operations using HipHop and is hoping that the system gets other high profile users.
  • Have your say
  • Send to a friend
  • Print
  • Digg
  • Reddit
  • Share

Do you agree?

Further reading

Fortify logo

Fortify launches online scanning tool

On-demand service promises to help firms spot critical vulnerabilities in software
Google

Google updates Analytics product

New Annotations feature allows speedy explanation of traffic peaks and dips

Microsoft releases code under General Public Licence

U-turn from Redmond pleases open source community

Chrome OS to bolster open source job market

Linux development will surge, says IT recruitment firm