View Feed
group-icon
PHP Programmers
Community for PHP Programmers : Ask questions, doubts and help each other get better at PHP
297 Members
Join this group to post and comment.
Kaustubh Katdare
Kaustubh Katdare • Jun 23, 2012

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

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.
Anoop Kumar
Anoop Kumar • Jun 23, 2012
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.
Sounds interesting , biggie can you give source
Kaustubh Katdare
Kaustubh Katdare • Jun 23, 2012
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
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
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....

Share this content on your social channels -