Combining Type Systems with PHP: Hack's Approach
Offered By: Meta via YouTube
Course Description
Overview
Explore the technical intricacies of Hack, Facebook's dialect of PHP, in this comprehensive conference talk. Delve into the implementation of a strong, static type system onto a dynamic, untyped language like PHP. Gain insights into the type system's design and the static typechecker that enforces it, with a focus on maintaining PHP's productivity advantages. Learn about unresolved types, fake locals, integration techniques, and chaining. Examine practical examples, including intersection types and error handling. Discover how Hack addresses scaling challenges through multithreading, shared memory regions, and a client-server model for dependency tracking and rechecking. Enhance your understanding of modern PHP development and type system integration in this in-depth technical presentation.
Syllabus
Introduction
Overview
What is Hack
PHP
PHP Code
Pragmatism
Who are we
The hack type system
Things to keep in mind
Unresolved types
Fake locals
Integration
Chaining
Feature Loop
Example Code
Intersection Types
Error Messages
Type Error
Invalid Return Type
Scaling
Multithreading
Shared Memory Region
Invariants
Clientserver model
Tracking dependencies
Rechecking dependencies
Conclusion
Taught by
Meta Developers
Related Courses
Introduction to Functional ProgrammingDelft University of Technology via edX Introduction to Office 365 Development and APIs
Microsoft via edX Web Development and Design using Wordpress
California Institute of the Arts via Kadenze Build a Basic PHP Website Course (How To)
Treehouse Web Applications for Everybody
Independent