Hack and HHVM: Programming Productivity Without Breaking Things

Przednia okładka
"O'Reilly Media, Inc.", 2 wrz 2015 - 284

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
 

Spis treści

Chapter 1 Typechecking
1
Chapter 2 Generics
41
Chapter 3 Other Features of Hack
59
Chapter 4 PHP Features Not Supported in Hack
91
Chapter 5 Collections
99
Chapter 6 Async
125
Chapter 7 XHP
165
Chapter 8 Configuring and Deploying HHVM
197
Interactive Debugging
207
Chapter 10 Hack Tools
235
Index
249
About the Author
261
Prawa autorskie

Inne wydania - Wyświetl wszystko

Kluczowe wyrazy i wyrażenia

Informacje o autorze (2015)

Owen Yamauchi is a software engineer at Facebook where he works on the HHVM team. Before joining Facebook in 2009, he interned VMware and Apple. Owen grew up in Belgium and earned his BS in Computer Science at Carnegie Mellon.

Informacje bibliograficzne