Librería Portfolio Librería Portfolio

Búsqueda avanzada

TIENE EN SU CESTA DE LA COMPRA

0 productos

en total 0,00 €

HACK AND HHVM. PROGRAMMING PRODUCTIVITY WITHOUT BREAKING THINGS
Título:
HACK AND HHVM. PROGRAMMING PRODUCTIVITY WITHOUT BREAKING THINGS
Subtítulo:
Autor:
YAMAUCHI, O
Editorial:
O´REILLY
Año de edición:
2015
Materia
PROGRAMACION INTERNET
ISBN:
978-1-4919-2087-9
Páginas:
272
31,50 €

 

Sinopsis

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



Chapter 1Typechecking
Why Use the Typechecker?
Setting Up the Typechecker
Type Annotation Syntax
Hack's Type System
Rules
Type Inference
Refining Types
Enforcement of Type Annotations at Runtime
Chapter 2Generics
Introductory Example
Other Generic Entities
Type Erasure
Constraints
Unresolved Types, Revisited
Generics and Subtypes
Advanced: Covariance and Contravariance
Chapter 3Other Features of Hack
Enums
Type Aliases
Array Shapes
Lambda Expressions
Constructor Parameter Promotion
Attributes
Enhanced Autoloading
Integer Arithmetic Overflow
Nullsafe Method Call Operator
Trait and Interface Requirements
Silencing Typechecker Errors
Chapter 4PHP Features Not Supported in Hack
References
Old-Style Constructors
Case-Insensitive Name Lookup
Variable Variables
Dynamic Properties
Mixing Method Call Syntax
isset, empty, and unset
Others
Chapter 5Collections
Why Use Collections?
Collections Have Reference Semantics
Using Collections
Type Annotations for Collections
Interoperating with Arrays
Chapter 6Async
Introductory Examples
Async in Detail
Structuring Async Code
Other Types of Waiting
Common Mistakes
Async Extensions
Chapter 7XHP
Why Use XHP?
How to Use XHP
Creating Your Own XHP Classes
XHP Best Practices
Migrating to XHP
XHP Internals
Chapter 8Configuring and Deploying HHVM
Specifying Configuration Options
Server Mode
Warming Up the JIT
Repo-Authoritative Mode
The Admin Server
Chapter 9hphpd: Interactive Debugging
Getting Started
Evaluating Code
The Execution Environment
Using Breakpoints
Viewing Code and Documentation
Macros
Configuring hphpd
Chapter 10Hack Tools
Inspecting the Codebase
Migrating PHP to Hack
Transpiling Hack to PHP