Does Facebook compile PHP into JVM bytecode?

Source: Internet
Author: User
Today, an article claims that Facebook is working on compiling PHP to run in JVM. We all know that Facebook is already using PHP-to-C ++ for cross-compilation. The addition of dynamic Java calls adds many new possibilities for Facebook. The author of this article pointed out that the relationship between PHP and multi‑agevm is like Objective C.

Today, an article claims that Facebook is working on compiling PHP to run in JVM. We all know that Facebook is already using PHP-to-C ++ for cross-compilation. The addition of dynamic Java calls adds many new possibilities for Facebook. Alexander Turner is the author of the article pointing out that the relationship between PHP and Multi Language VM is like Objective C.

Today, an article claims that Facebook is working on compiling PHP to run in JVM. We all know that Facebook is already using PHP-to-C ++ for cross-compilation. The addition of dynamic Java calls adds many new possibilities for Facebook.

Alexander Turner is the author of the article who pointed out that the relationship between PHP and Multi Language VM is like the relationship between JavaScript and V8: interpreted Language will show a significant increase in speed after JIT compilation.

In any case, it is a pleasure for heavyweight companies to adopt JVM. Facebook may have to spend a lot of time executing their code on virtual machines, unless they use the implementation of Quercus or Project Zero.

We are not sure whether this will happen, but it is an interesting topic. If you have PHP code of the same size as Facebook, will you compile it into JVM bytecode? Maybe Node. js is a more fashionable choice?

From: DZone

Source: open-source Chinese community

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.