Heresy! Combining Type Systems with PHP
summary
Explains how Hack actually puts a strong, static type system on PHP, with concrete mechanisms like unresolved types, fake locals, flow-sensitive tracking and a typechecker built atop HHVM that uses fork+mmap and a shared lockless hash table for parallelism. Describes incremental mode that avoids full rebuilds and the practical result: conversion of tens of millions of lines of code into Hack running on facebook.com since 2013, including the performance tradeoffs and cases that still fail or slow.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 8:19To keep in mind
- 10:20Scoping
- 17:27Flow sensitivity
- 20:33Integration
- 22:38Loop fixed point
- 23:54Intersection types
- 27:37Multithreading
- 29:55Shared lockless hash table
- 35:57Incremental mode client and server
- 38:36Conclusion








