Description
How are you able to make the most of the HipHop Virtual Machine (HHVM) and the Hack programming language, two new technologies that Facebook developed to run their internet servers? With this practical guide, Owen Yamauchi—a member of Facebook’s core Hack and HHVM teams—shows you easy methods to get began with these battle-tested open-source tools.
You’ll explore static typechecking and a number of other features that separate Hack from its PHP origins, and learn to set up, configure, deploy, and monitor HHVM. Ideal for developers with basic PHP knowledge or revel in with other languages, this book also demonstrates how these tools can be utilized with existing PHP codebases and new projects alike.
- Learn how Hack provides static typechecking at the same time as retaining PHP’s flexible, rapid development capability
- Write typesafe code with Hack’s generics feature
- Explore HHVM, a just-in-time compilation runtime engine with full PHP compatibility
- Dive into Hack collections, asynchronous functions, and the XHP extension for PHP
- Understand Hack’s design rationale, including why it omits some PHP features
- Use Hack for multitasking, and for generating HTML securely
- Learn tools for working with Hack code, including PHP-to-Hack migration