~/talk

Why Fibers Make Sense For Meteor

Talkat GOTO Chicago 2015 · 2015-05-11..05-14· [javascript, nodejs]
links:none on file
slides:none on file

Meteor uses co-routines (fibers) to let server code call async operations as if they were synchronous, implemented with node-fibers/Libkuro to swap stacks so yield/run can suspend and resume call stacks. The talk claims async/await can be implemented as two library functions built on fibers, and shows it working in Meteor; benefits are improved learnability, maintainability, and optional parallelism. Remaining problems: simulating fibers in browsers is impractical, shared mutable globals (filesystem) need guards like noYieldsAllowed, and native-module compatibility risks.

AI-written summary · about

  1. 0:00Start
  2. 8:22What Is a Fiber or a Co-Routine
  3. 9:30The Way the Fibers Api Works
  4. 11:54Why Not Javascript
  5. 16:48Callbacks
  6. 20:38Async
  7. 25:44How Meteor Allows Database Access on the Client
  8. 27:27How Should Meteor Allow Database Access on the Client
  9. 28:26Co-Routines
  10. 32:20Simulating Fibers in the Browser
  11. 35:42Omnipresent File System
  12. 36:18File System Code with Fibers at Meteor
  13. 37:57Ensure Compatibility with Fibers
  14. 39:30Learnability
~/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.