Convert Your PHP Code to Hack
summary
Shows a concrete, two-step conversion: run the simple file-by-file tool hack aicat to add HH headers, nullable annotations and empty ctor lists (breadth vs depth conversion matters), then run global inference with HH-server--convert to write soft types (prefixed with @) to millions of files, ship them as warnings, parse production logs and remove failing types, then Harden remaining types. Reports overnight runs and Facebook moving from ~5–10% to ~40% annotations and a jump to ~96% HH files during bulk runs.
AI-written summary · about
chapters (8)
- 0:00Introduction to Hack
- 1:06Basic PHP to Hack conversion
- 5:39Depth versus breadth approach
- 10:55Conversion demo: inheritance
- 15:13Adding and inferring types
- 21:05Annotation demo: hardening
- 25:45Conversion results and impact
- 27:25Q&A session








