上传者: ramissue
|
上传时间: 2021-08-22 00:58:10
|
文件大小: 2.77MB
|
文件类型: PDF
A couple of years ago, Facebook switched its production servers from a PHP-to-C++ compiler to their own HipHop Virtual Machine (HHVM) and then launched a new version of PHP to run on HHVM called Hack. This comprehensive guide—written by a member of the core HHVM and Hack teams at Facebook—shows you how to get up and running with both HHVM and Hack.
What makes them useful? The HHVM engine is faster and more performant than the Zend engine, which can save Facebook and other large-scale sites millions of dollars in servers and maintenance. And while the Hack language looks and acts like PHP, it also contains new features such as static typing, generics, native collections, which PHP developers have long needed.
Pick up this book and explore two important programming innovations that help Facebook run a tighter ship.
Table of Contents
Chapter 1. Typechecking
Chapter 2. Generics
Chapter 3. Other Features of Hack
Chapter 4. PHP Features Not Supported in Hack
Chapter 5. Collections
Chapter 6. Async
Chapter 7. XHP
Chapter 8. Configuring and Deploying HHVM
Chapter 9. hphpd: Interactive Debugging
Chapter 10. Hack Tools