~/talk

Stream into the Future

Talkat Node+JS Interactive 2019 · 2019-12-11..12-12· [nodejs, frontend-architecture]
slides:none on file

Argument: replace Node Core Streams with plain JavaScript async iterators and generators, using for await...of to consume streams and readable.from to convert iterators into streams. Demonstrations show Node 10+ support, seven live examples, and that async-iterator code matches stream performance with no measurable penalty. Use pipeline (not .pipe) to auto-tear-down and avoid memory/file-descriptor leaks. Remaining gaps: a transform-from-async-iterator PR is pending and writable-stream->promise semantics (error timing mismatch) are still unresolved.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:02What are Node.js streams
  3. 2:26Stream events and complexity
  4. 4:11The wild horse problem
  5. 5:58Push vs pull model
  6. 7:23Memory leaks with pipe
  7. 8:45Why not fix pipe
  8. 9:48Streams and async/await
  9. 11:12Improving stream usability
  10. 12:21Async iterators in Node.js
  11. 14:54Readable.from and testing
  12. 17:06Demo: Old-school streams
  13. 18:10Demo: Readable.from
  14. 19:19Demo: Sync generators
  15. 20:21Demo: File streams
  16. 21:52Demo: Async iteration
  17. 23:21Async/await on the server
  18. 24:48What’s missing in streams
  19. 25:54Transform streams with async
  20. 27:01Writable streams and promises
  21. 29:06Async iterator internals
  22. 30:55Performance and edge cases
  23. 31:36Web streams and compatibility
  24. 32:40Future of Node.js streams
~/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.