~/talk

JavaScript VM internals, EventLoop, Async and ScopeChains

Talkat JSFoo 2015 · on Friday, 2015-09-18· [javascript]
links:none on file
slides:none on file

Explains that JavaScript does a two-phase compile+execute so declarations hoist, shows how function calls allocate heap execution contexts with a lexical backpointer, and demonstrates closure = function + scope chain where returned functions keep their outer heap alive because GC is by reachability not reference count. Uses browser/node Web APIs plus a Philip Roberts sPrima visualization to show event loop pulls callbacks from queues, replaces a blocking forEach with setTimeout callbacks, and proves async generators and queued callbacks keep the UI responsive.

AI-written summary · about

  1. 0:00Introduction
  2. 0:58What makes programming interesting
  3. 5:40Agenda
  4. 10:05Execution
  5. 15:45Variable shadowing
  6. 23:18Closure
  7. 24:03What is Closure
  8. 26:23Demo
  9. 37:03Question
~/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.