Facebook Announces The Hack Transpiler

Written by Michael Larabel in Programming on 11 November 2014 at 01:20 PM EST. 2 Comments
PROGRAMMING
Facebook today announced the Hack Transpiler as a tool to encourage the growth of their Hack programming language by allowing Hack code-bases to be converted back into legitimate PHP5 for use on platforms where Facebook's HHVM isn't available.

The Hack Transpiler via the h2tp command makes it possible to maintain a program's source tree in the PHP-based Hack language while allowing it to be converted back out into PHP when doing releases for platforms where the HipHop Virtual Machine isn't supported or available. While HHVM can run unmodified PHP code, the PHP5 engine is not backwards compatible with Hack code, which is why this tool is needed.

Those wishing to learn more about Facebook's Hack Transpiler / h2tp for converting Hack code back into PHP, see the Facebook code announcement. The h2tp utility is now part of the HHVM nightly code-base.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week