Hack and HHVM: Programming Productivity Without Breaking Things"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.
|
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 |
249 | |
About the Author | 261 |
Inne wydania - Wyświetl wszystko
Hack and HHVM: Programming Productivity Without Breaking Things Owen Yamauchi Ograniczony podgląd - 2015 |
Hack and HHVM: Programming Productivity Without Breaking Things Owen Yamauchi Podgląd niedostępny - 2015 |
Kluczowe wyrazy i wyrażenia
abstract allowed array async code async function attribute autoloading await Awaitable<string Awaitable<void break breakpoint built-in cache callback class name codebase collection classes command configuration const type constructor contravariant convert covariant debugger declares default defined echo enum example execution Facebook FastCGI foreach func function main Hack code Hack files Hack typechecker Hack’s hh_client HHVM home/oyamauchi/test.php hphpd implements integer interface Iterable JSON keyword memcached memoization method MySQL null nullable option pass PHP and Hack PHP code public function query repo report an error result return statement return type return type annotation runtime server specific static strict mode string syntax test.php there’s this->value trait transpiler tuple Tval type aliases type annotation type constant Type Erasure type inference type parameters typechecker typehint ui:drop-shadow-box valid values of type variable variadic function Vector void wait handle Wrapper XHP class XHP object