on 21 September 18
HipHop Virtual Machine
HipHop Virtual Machine or (HHVM) is an open-source virtual machine designed for executing programs written in PHP and hack. HHVM is used by many including the omnipresent site, Facebook. Furthermore, HHVM employs much of the internetâs current PHP.
Yes, hack. For the benefit of those who are not aware that thereâs a programming language called hack, the Hack language is derived from PHP and possess both static typing and dynamic typing functions, while also supplementing additional features such as generics and type aliasing. For example, Facebook has utilized hack successfully where the majority of the PHP codebase has been migrated to Hack, since the hack language appears to be similar to PHP.
Examples of Hack programming codes:
1) Type Annotations allow for code to be explicitly typed on parameters, class member variables and return values