Hack and HHVM: Programming Productivity Without Breaking Things (Paperback)

Owen Yamauchi

  • 出版商: O'Reilly
  • 出版日期: 2015-10-20
  • 售價: $1,398
  • 貴賓價: 9.5$1,328
  • 語言: 英文
  • 頁數: 284
  • 裝訂: Paperback
  • ISBN: 1491920874
  • ISBN-13: 9781491920879
  • 相關分類: PHP
  • 相關翻譯: Hack與HHVM權威指南 (簡中版)
  • 立即出貨 (庫存=1)



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


如何利用HipHop虛擬機器(HHVM)和Hack程式語言這兩個Facebook開發的新技術來運行網頁伺服器?在這本實用指南中,Facebook核心Hack和HHVM團隊成員Owen Yamauchi向您展示如何使用這些經過實戰驗證的開源工具。


- 學習Hack提供靜態類型檢查,同時保留PHP的靈活、快速開發能力
- 使用Hack的泛型功能編寫類型安全的代碼
- 探索HHVM,一個具有完全PHP兼容性的即時編譯運行時引擎
- 深入研究Hack集合、異步函數和用於PHP的XHP擴展
- 了解Hack的設計原理,包括為什麼省略了一些PHP功能
- 使用Hack進行多任務處理,以及安全生成HTML
- 學習處理Hack代碼的工具,包括從PHP遷移至Hack