Product Code Database
Example Keywords: boots -nokia $1
   » » Wiki: Hhvm
Tag Wiki 'Hhvm'.
Tag

HipHop Virtual Machine ( HHVM) is an open-source virtual machine based on just-in-time (JIT) compilation that serves as an execution engine for the Hack programming language. By using the principle of JIT compilation, Hack code is first transformed into intermediate HipHop bytecode ( HHBC), which is then dynamically translated into x86-64 , optimized, and natively executed. This contrasts with PHP's usual interpreted execution, in which the transforms PHP into that serve as a form of , and executes the opcodes directly on the Zend Engine's virtual .

HHVM is developed by , with the project's source code hosted on ; HHVM source code on GitHub it is licensed under the terms of the and .


Overview
HHVM was created as the successor to the HipHop for PHP (HPHPc) PHP execution engine, which is a PHP-to-C++ also created by Facebook. Based on the gained experience and aiming to solve issues introduced by HPHPc, Meta decided in early 2010 to create a JIT-based PHP . Issues associated with HPHPc included reaching a for further performance improvements, a fundamental inability to support all features of the PHP language, and difficulties arising from specific time- and resource-consuming development and deployment processes. In Q1 2013, the production version of the facebook.com website stopped using HPHPc and switched to HHVM.

Following the JIT compilation principle, HHVM first converts the executed code into an intermediate language, the high-level HHBC. HHBC is a bytecode format created specifically for HHVM, appropriate for consumption by both interpreters and just-in-time compilers. Next, HHVM dynamically ("just-in-time") translates the HHBC into x86-64 machine code, optimized through dynamic analysis of the translated bytecode. Finally, it executes the x86-64 machine code. As a result, HHVM has certain similarities to the virtual machines used by other programming languages, including the Common Language Runtime (CLR, for the C# language) and Java virtual machine (JVM, for the Java language).

HHVM brings many benefits in comparison with HPHPc. HHVM uses the same execution engine when deployed in both production and development environments, while supporting integration between the execution engine and the in both environment types; as a result, maintaining (HipHop interpreter) separately as a development utility is no longer needed as it was the case with HPHPc. HHVM also eliminates the lengthy required by HPHPc to run programs, resulting in much simpler development and deployment processes than it was the case with HPHPc. Finally, versions of HHVM before 4.0 have almost complete support for the entire PHP language (as defined by the official implementation of PHP version 5.4), including the support for the create_function() and eval() constructs, which was impossible with HPHPc.

Together with HHVM 3.0, Meta also released Hack, a derivative of PHP that allows programmers to use both and (a concept also known as ), and allows to be specified for function arguments, function , and . However, Hack does not provide complete backward compatibility since it removes several PHP features, such as the [[goto]] statement and dynamic variable names.

In September 2017, it was announced that version 3.30 would be the last version of HHVM to officially support PHP, and that HHVM will only support Hack going forward. This was due to differences and incompatibilities in PHP 7. HHVM 4.0, released in February 2019, was the first version without support for PHP.


Performance
As a process virtual machine that provides the execution environment, HHVM has the ability to use live type information to produce more efficient , leading to a higher web server and lower latency. In Q4 2012, the execution of facebook.com's on HHVM achieved performance parity with HPHPc, and in December 2013 HPHPc was even surpassed by around 15%.


See also
  • Parrot virtual machine
  • Phalanger


Notes

External links

Page 1 of 1
1
Page 1 of 1
1

Account

Social:
Pages:  ..   .. 
Items:  .. 

Navigation

General: Atom Feed Atom Feed  .. 
Help:  ..   .. 
Category:  ..   .. 
Media:  ..   .. 
Posts:  ..   ..   .. 

Statistics

Page:  .. 
Summary:  .. 
1 Tags
10/10 Page Rank
5 Page Refs
1s Time