~/talk

Stream into the Future

Talkat NodeConf NL 2019 · on Friday, 2019-06-07· [nodejs, javascript]
slides:none on file

Node streams gain concrete features: Node 10 ships experimental async iterators, Node 12 unflags them and adds readable.from, letting code consume streams with for await and process huge files in constant memory. Use pipeline (or pump) to avoid leaked file descriptors; the async-iterator implementation preserves backpressure and shows no performance penalty. Missing pieces include a Transform.from equivalent and a clean writable iterator protocol; prototypes and demos compile and run.

AI-written summary · about

  1. 0:00Stream into the Future @matteocollina
  2. 1:09What is a Stream?
  3. 1:21A stream is like an Array
  4. 2:05Who understand Node.js Streams anyway?
  5. 3:34Handling backpressure is hard.
  6. 5:24Error handling is complex
  7. 6:51All the best features of Node.js relies on Streams
  8. 8:24do NOT work well with
  9. 8:34Changing the behavior of Node.js streams will break everybody
  10. 9:56Async Iterator
  11. 19:24Demo!
  12. 21:02What about Writable?
  13. 23:18How does it all work?
  14. 23:35The AsyncIterator protocol
  15. 25:18wrap the 'readable' event!
  16. 27:41performance penalty in using AsyncIterators with streams!
  17. 28:07WHATWG VS Node.js streams
  18. 29:44WHATWG streams are
  19. 30:34of adding them to Node.js core is ecosystem compatibility.
~/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.