Callback heaven
summary
A concrete pattern called Callbags claims to make callbacks symmetric so producers and consumers have the same signal shape, enabling two‑way conversations (pause, send data back) that Observables and Promises cannot; operators are implemented in a few lines each, the community grows the ecosystem to about 110 operators, the core costs effectively zero kilobytes and benchmarks show it slightly outperforms rxjs, and real adapters convert to/from Promises, streams and iterables.
AI-written summary · about
chapters (12)
- 0:00Welcome to callbacks
- 1:46Callback hell in Node.js
- 3:11Callbacks to promises and RxJS
- 6:42Symmetric callbacks
- 9:35Callbag pattern
- 12:30Producer and consumer signatures
- 16:27Plugging callbacks together
- 20:30Data back to producer
- 21:57Introducing callbags
- 24:04Callbacks vs RxJS size and speed
- 25:27Callbag community and future
- 26:31Q&A
related talks
29mPack your Callbags! A New Spec for Streams
30mParadigms for dealing with asynchrony
41mComparing Promises, Observables and Signals
32mObservable.interval(10.min).map(level).take(3)
34mObservables for Handling Asynchrony Elegantly
44mWhat are Observables and why should I care?
41mRefactoring from Callback Hell to Observables – Live Coding in TS
27mUnderstanding High Order Observables
