~/talk

Convert Your PHP Code to Hack

Talkat Hack Developer Day 2014 · on Thursday, 2014-04-10· [php]
slides:none on file

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

  1. 0:00Introduction to Hack
  2. 1:06Basic PHP to Hack conversion
  3. 5:39Depth versus breadth approach
  4. 10:55Conversion demo: inheritance
  5. 15:13Adding and inferring types
  6. 21:05Annotation demo: hardening
  7. 25:45Conversion results and impact
  8. 27:25Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.