~/talk

Introducing Hack

Talkat Hack Developer Day 2014 · on Thursday, 2014-04-10· [compilers-and-language-design]
slides:none on file

Hack adds a static type checker to HHVM that runs as a background server, scales to thousands of files, and returns mass error results in under 200 ms (demo shows 7,000 lines of errors and a 160 ms turnaround). It supports incremental adoption via file-level strict / partial / decl modes, nullable types and generics, and defers resolution with unresolved types so common PHP patterns remain valid. Tooling includes HH client pings, editor plugins, a color mode showing checked regions, shared‑memory caching, parallel workers and fine‑grained dependency tracking.

AI-written summary · about

  1. 0:00Start
  2. 8:51Hack Type System What must be annotated Class members Function parameters Return types What is inferred? All the rest
  3. 25:14Hack Type Inference (2) How does a type system normally work? Type variables are introduced A unification algorithm solves the type-variables usually noted
  4. 29:22Error Messages We can't expect the user to understand all the type inference The solution keep the reason why we deduced a type and expose it to the user
  5. 36:20Working at Scale: The Solution How do we make this work We parallelize We cache We do things incrementally
~/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.