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

Kaustubh Katdare

Kaustubh Katdare

@thebigk Oct 26, 2024
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.

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Anoop Kumar

    Anoop Kumar

    @anoop-kumar-GDGRCn 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.
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Jun 23, 2012

    Sounds interesting , biggie can you give source
  • Kaustubh Katdare

    Kaustubh Katdare

    @thebigk 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

    @reya-SMihdC Jun 23, 2012

    Just read about "HipHop for PHP" and "How it works" in their blog. Quite interesting 😀 #-Link-Snipped-#

    #-Link-Snipped-#
  • VickyNGL

    VickyNGL

    @vickyngl-onYP9l Jun 23, 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....