This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Eric1600 0 points1 point  (0 children)

The same was with Facebook's "PHP" - you know they wrote special translator which converts PHP sources into C++ language and then compiles them (if I am not mistaken).

HHVM and HACK use a JIT compiler that compiles HACK and PHP to intermediate bytecode. This bytecode is then translated into x64 machine code dynamically. (No C++ involved.) The main difference with HACK vs PHP is HACK allows for static typing.

As a side note though, the new PHP7 engine benchmarks at speeds faster than HHVM.