From PHP to Hack as a Stack and Back
summary
History of moving a PHP codebase onto HHVM and Hack with concrete migration notes: HHVM runs as a drop‑in but top‑level code must be bootstrapped (use a partial require_once file), references and eval/variable variables are unsupported, and HTML+PHP needs XHP or separate rendering. Hack’s type checker forces shapes, generics, and collections (map/vector/set/pair), so expect fewer runtime bugs but plan refactors for dynamic syntax and intrinsics.
AI-written summary · about
chapters (26)
- 0:00Introduction
- 2:18How I got started
- 3:45HPHP
- 4:55What is HPHP
- 6:54HPHP in 2013
- 8:40Content Management System
- 11:45We Need Something New
- 12:35Why Hack
- 15:00Successes
- 19:36PHP vs Hack
- 21:10Top Level Code
- 22:28Top Level to Change
- 23:38References
- 24:36XHP
- 26:43Intrinsic
- 28:09Dynamic Code
- 29:35Other Changes
- 31:53Types
- 35:11Type aliases
- 37:06New types
- 37:40Callable
- 38:38Tuples
- 40:02Class Attributes
- 40:57Conclusion
- 41:36Questions
- 42:01Hiphop ESP








