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