Taming the Asynchronous Beast with CSP Channels in JavaScript
summary
Claims that Communicating Sequential Processes (CSP) makes JavaScript concurrency simpler and more deterministic, demonstrates live code using JS CSP and ES6 generators, and shows producer/consumer examples where channels block producers to provide back pressure. A demo reimplements parallel coordination in under 30 lines, composes with transducers, and is claimed as production-ready (examples include CircleCI). Caveats include multiple competing libraries, lack of ecosystem integration with React/Redux, and that tooling is still immature.
AI-written summary · about
chapters (7)
- 0:00Start
- 1:41THE PROBLEM: SHARING THE MEMORY
- 2:45SOLUTIONS
- 3:55We're using Javascript! Problem solved.
- 5:10HIGH LEVEL TASKS EXAMPLE
- 11:55Promises and events
- 16:51ONE TO ONE
related talks
46mTaming the Asynchronous Beast with CSP Channels in JavaScript
42mBeyond Promises: Async Patterns in JavaScript
30mParadigms for dealing with asynchrony
32mJavaScript 7: the Evolution of JavaScript
15mA Concurrency Model for JavaScript with Cooperative Cancellation
46mAsynchronous JavaScript and non-concurrency
33mAsync Programming in ES7
01h 04m5 architectures of asynchronous JavaScript
