Book description
How can you take advantage of the HipHop Virtual Machine (HHVM) and the Hack programming language, two new technologies that Facebook developed to run their web servers? With this practical guide, Owen Yamauchi—a member of Facebook’s core Hack and HHVM teams—shows you how to get started with these battle-tested open-source tools.
You’ll explore static typechecking and several other features that separate Hack from its PHP origins, and learn how to set up, configure, deploy, and monitor HHVM. Ideal for developers with basic PHP knowledge or experience with other languages, this book also demonstrates how these tools can be used with existing PHP codebases and new projects alike.
- Learn how Hack provides static typechecking while 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
Publisher resources
Table of contents
- Foreword
- Preface
- 1. Typechecking
- 2. Generics
- 3. Other Features of Hack
- 4. PHP Features Not Supported in Hack
- 5. Collections
- 6. Async
- 7. XHP
- 8. Configuring and Deploying HHVM
- 9. hphpd: Interactive Debugging
- 10. Hack Tools
- Index
Product information
- Title: Hack and HHVM
- Author(s):
- Release date: September 2015
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491920831
You might also like
book
Data Science from Scratch, 2nd Edition
To really learn data science, you should not only master the tools—data science libraries, frameworks, modules, …
book
Practical Statistics for Data Scientists, 2nd Edition
Statistical methods are a key part of data science, yet few data scientists have formal statistical …
book
Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 2nd Edition
Through a series of recent breakthroughs, deep learning has boosted the entire field of machine learning. …
book
Learning SQL, 3rd Edition
As data floods into your company, you need to put it to work right away—and SQL …