0:00 / 0:00
#delimitedcontinuations#generators#asyncawait
Delimited Continuations are all you need
Michigan TypeScript
22K subscribers • 12 videos on Hallway
- Recommended by 1 person: 1 on Lobsters.
- Linked in the descriptionneurosnap/deck-continuations
Advanced. Deep dive for people who know the field.
6.1K views3 years ago1 recommendation
Programming languagesComputer scienceTypeScriptFunctional programmingConcurrency and parallelism
An advanced exploration of delimited continuations using TypeScript generators to manage complex asynchronous flow control.
This talk is about a concept called "Delimited Continuations". This is definitely a quite advanced topic that will test your knowledge of TypeScript generators (including async generators!). By using delimited continuations, developers can more easily manage asynchronous tasks and ensure that tasks are executed in a predictable and coordinated way. This gets you a more reliable and responsive app (with an improved user experience, too). You can find the slides for this talk here: github.com/neurosnap/deck-continuations intro what is "flow control" what is "async flow control" why are nested callbacks bad? downsides of async/await what color is your function? async/await forces your entire program to be async questions raised by using promises what are delimited continuations TypeScript support for yield delegates code example: sync code example: async code example: composition why does this need generators code example: counter npm: effection discord jake archibald article npm package: starfx bUt PeOpLe HaTe GeNeRaToRs reimplementing redux-saga in a fraction of the code footguns with try/catch/finally what does the stack trace look like? does it get confusing when you do/don't need to await? how well is TypeScript supported? multithread? what about testing? TypeScript proposal for `throws` batteries included for testing? query and cache management how does this compare to redux and zustand shout-outs Discord: discord.gg/tmhGfR4Dye Twitter: twitter.com/MiTypeScript Mastodon: fosstodon.org/@MichiganTypeScript Instagram: instagram.com/michigantypescript TikTok: tiktok.com/@michigantypescriptWhy it's here
1 person recommends thisWhat people say. Recommended as a thorough and mind-bending explanation of delimited continuations implemented in TypeScript.