Facebook invents a PHP virtual machine to interprete PHP 9x faster

Discussion in 'User Submitted News' started by shakirmoledina, Jul 27, 2013.

  1. shakirmoledina
    OP

    shakirmoledina Legend

    Member
    6,611
    218
    Oct 23, 2004
    Tanzania
    Dar es Salaam
    I'm no expert in these matters but Facebook's take on speed and their ability to adept to the growth of its network has always fascinated me.

    Among the many strategies that Facebook has 'innovated', Facebook has come up with a new virtual machine that would convert the human readable source code into machine-readable byte code when it is needed.

    That is because their current Virtual Machine iteration has a JIT (Just in Time).
    How useful is JIT? Check out the latest version of DeSmuME or nds4droid and PPSSPP on the Android and PC (latter).

    Technical Bit:
    PHP programs are slowly due to PHP being an interpreted language while compiled languages such as C or C++ are faster as they are compiled beforehand into machine language byte code.

    The previous iteration (HipHop) used to translate PHP into C++ and produced a considerable speed gain. However with Facebook's ever growing nature, HHVM has been developed that works similar to the Java Virtual Machine (JVM). Java has been considered to be a Hybrid language that converts the human readable source code into machine-readable byte code when it is needed.

    PHP driven websites such as Twitter, Wikipedia and Wordpress may potentially benefit from this technology to around 5x its current performance.

    SOURCE
    GitHub
     
    Coto likes this.
  2. Gahars

    Gahars Bakayaro Banzai

    Member
    10,254
    17,403
    Aug 5, 2011
    United States
    New Jersey
    I misread that as "PCP" in the title.

    Super underwhelming.
     
    luigiman1928, Satangel and TehSkull like this.
  3. Flame

    Flame Me > You

    Member
    3,835
    4,941
    Jul 15, 2008
    facebook ... wat r u doing, you just being dumbing down the Internet... not making it a better place for people and devs.. facebook stahp
     
    DinohScene likes this.
  4. Coto

    Coto GBAtemp Addict

    Member
    2,346
    397
    Jun 4, 2010
    Chile
    cool. JIT's really useful..
     
  5. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,204
    8,971
    Nov 21, 2005
  6. Rydian

    Rydian Resident Furvert™

    Member
    27,883
    8,107
    Feb 4, 2010
    United States
    Cave Entrance, Watching Cyan Write Letters
    Java uses JIT: "JAVA SUCKS BECAUSE IT'S NOT COMPILED IT'S NOT A REAL PROGRAMMING LANGUAGE"
    7 years later, everybody else uses JIT: "HOLY SHIT THIS IS THE BEST TECHNOLOGY EVERRRRRR!!!"

    Also I find it ironic that PHP/Perl/Python (and other interpreted languages) are compiled to binaries and run on the fly, but the phrase "JIT" (Just In Time (Compilation)) doesn't apply to that idea. :P
     
    EZ-Megaman and Slamicite like this.
  7. DinohScene

    DinohScene Dino May Fire

    Member
    GBAtemp Patron
    DinohScene is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    15,659
    12,069
    Oct 11, 2011
    Antarctica
    В небо
    Facebook becomes the next google.

    Poor google :c
     
  8. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,204
    8,971
    Nov 21, 2005
    Wouldn't that y'know require facebook to offer a useful service that is not locked down?
     
  9. shakirmoledina
    OP

    shakirmoledina Legend

    Member
    6,611
    218
    Oct 23, 2004
    Tanzania
    Dar es Salaam
    I never see JIT as 'just in time'. Eh, just a way of making it seem a little fancy i guess.