~/talk

A Tour of New Language and Library Features

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

Overview of concrete Hack features and what they actually do: Lambda Expressions give shorter arrow syntax with automatic capture and produce the same runtime closure objects as PHP so they interoperate; Collections API supplies Vector/Map/Set with generics, mutable and immutable variants, left-to-right chaining, and runtime key checks that throw instead of producing PHP notices; async/await yields awaitable joinable IO so independent DB/mcache/Thrift calls run in parallel; constructor argument promotion reduces boilerplate. Vim plugin demo shows editor autocomplete and the typechecker catches missing returns.

AI-written summary · about

  1. 0:00Intro
  2. 2:50Type Annotations at Run Time
  3. 4:20PHP Closure Expressions
  4. 4:52Hack Lambda Expressions
  5. 5:26Benefits of Lambda Expressions
  6. 6:17More Examples
  7. 7:42Hack Collections
  8. 8:33map/filter example
  9. 14:32Design
  10. 16:42array_merge() example
  11. 17:32Downsides of one-size-fits-all
  12. 18:43Static Typing
  13. 20:56PHP arrays have value-type semantics
  14. 23:10Immutable Collections
  15. 31:13Code example: Sync = Async
  16. 31:57Awaitable
  17. 32:38Parallel async/await
  18. 34:07Mid-execution
  19. 36:15Entering async
  20. 37:56Goodies!: Constructor Promotion
  21. 39:34Goodies!: Trailing Commas
  22. 41:38Detecting Errors in Traits
  23. 44:48Trait requirements: solution
  24. 48:41Goodies!: Trait Interfaces
  25. 55:29Future Directions
~/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.