~/talk

What Tamagotchis can teach you about generators

Talkat JSConf Korea 2019 · on Tuesday, 2019-09-03· [javascript, frontend-architecture]
slides:none on file

Built a functioning web Tamagotchi that struggled when many animations overlapped, tried promises and hit “venerable hell” plus inability to cancel, then rewrites animations as generators, uses a coroutine to yield promises and resume only when timeouts resolve, and delegates nested animations with yield and yield star. The result: idle loops that can be interrupted immediately, animations cancel cleanly, and the demo shows feeding events run without waiting for the idle to finish.

AI-written summary · about

  1. 0:00Start
  2. 12:52Infinite Generators
  3. 15:43Canceling a Generator
  4. 17:51Coroutines!
~/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.