Op werkdagen voor 23:00 besteld, morgen in huis Gratis verzending vanaf €20

Hack and HHVM

Programming Productivity Without Breaking Things

Specificaties
Paperback, 251 blz. | Engels
O'Reilly | 1e druk, 2015
ISBN13: 9781491920879
Rubricering
Hoofdrubriek : Computer en informatica
O'Reilly 1e druk, 2015 9781491920879
Verwachte levertijd ongeveer 16 werkdagen

Samenvatting

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

Specificaties

ISBN13:9781491920879
Taal:Engels
Bindwijze:paperback
Aantal pagina's:251
Uitgever:O'Reilly
Druk:1
Verschijningsdatum:22-9-2015

Over Owen Yamauchi

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.

Andere boeken door Owen Yamauchi

Inhoudsopgave

Foreword
Preface

1. Typechecking
-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

2. Generics
-Introductory Example
-Other Generic Entities
-Type Erasure
-Constraints
-Unresolved Types, Revisited
-Generics and Subtypes
-Advanced: Covariance and Contravariance

3. Other 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

4. PHP 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

5. Collections
-Why Use Collections?
-Collections Have Reference Semantics
-Using Collections
-Type Annotations for Collections
-Interoperating with Arrays

6. Async
-Introductory Examples
-Async in Detail
-Structuring Async Code
-Other Types of Waiting
-Common Mistakes
-Async Extensions

7. XHP
-Why Use XHP?
-How to Use XHP
-Creating Your Own XHP Classes
-XHP Best Practices
-Migrating to XHP
-XHP Internals

8. Configuring and Deploying HHVM
-Specifying Configuration Options
-Server Mode
-Warming Up the JIT
-Repo-Authoritative Mode
-The Admin Server

9. hphpd: Interactive Debugging
-Getting Started
-Evaluating Code
-The Execution Environment
-Using Breakpoints
-Viewing Code and Documentation
-Macros
-Configuring hphpd

10. Hack Tools
-Inspecting the Codebase
-Migrating PHP to Hack
-Transpiling Hack to PHP

Index

Rubrieken

Populaire producten

    Personen

      Trefwoorden

        Hack and HHVM