1. Home >
  2. Apps >
  3. Groups >

Facebook Hip Hop for PHP - Transfer PHP Code Into C++ Code

Question asked by Kaustubh Katdare in #PHP on Jun 23, 2012
Kaustubh Katdare
Kaustubh Katdare 路 Jun 23, 2012
Rank A1 - PRO
Facebook operates and maintains petabytes of data on their servers and powers the website through PHP. Facebook's engineers have figured out a way to turn PHP code into highly optimized C++ code to handle the performance issues. I'm wondering whether anyone can offer more insights into why this is done and how it happens. If any of the Facebook engineers is reading this post; we'd love to hear from you 😀

I think it'd be a great learning for all the Computer Science Engineers here. Posted in: #PHP
Anoop Kumar
Anoop Kumar 路 Jun 23, 2012
Rank A2 - PRO
I don't know PHP.. but I think PHP is a interpreted language. i.e. compiled at run time while C++ or java are compiled once and at run time only compiled code used.
One more reason is C/C++ can access hardware directly, that is why these code used in simulation system.
Manish Goyal
Manish Goyal 路 Jun 23, 2012
Rank A2 - PRO
Sounds interesting , biggie can you give source
Kaustubh Katdare
Kaustubh Katdare 路 Jun 23, 2012
Rank A1 - PRO
goyal420
Sounds interesting , biggie can you give source
I guess they've mentioned it on their engineering page. I also remember their engineers talking about it in one of their videos (don't have the link though).
Reya
Reya 路 Jun 23, 2012
Rank A3 - PRO
Just read about "HipHop for PHP" and "How it works" in their blog. Quite interesting 馃榾 goyal420

https://developers.facebook.com/blog/post/2010/02/02/hiphop-for-php--move-fast/
VickyNGL
VickyNGL 路 Jun 24, 2012
Rank E1 - BEGINNER
feels good... if going in this way.. all the softwares cn be ttached to any pp tht will be written any of the coding languages... I think interpreter like PHP have more fetures to be added....

You must log-in or sign-up to reply to this post.

Click to Log-In or Sign-Up