Is Task T the only option?
summary
Compares .NET TPL Tasks, F# Async and Hopac Jobs with concrete tradeoffs: Tasks are hot vs cold (they start and cause side effects on creation), hide exceptions on other threads and lack built‑in cancellation; F# Async is a cold generator with implicit cancellation and predictable restart semantics; Hopac Jobs are tiny (jobs ~20 bytes vs Task ~72 bytes), claim up to ~100x speed in the presenter’s benchmarks and scale to billions of jobs. Shows a 400‑line Hopac scheduler implemented and working, and notes Hopac primitives used in production for high‑density actor workloads.
AI-written summary · about
chapters (11)
- 0:00Introduction to alternatives
- 1:09Scheduler and thread basics
- 6:47Why tasks aren't perfect
- 11:23Task vs IAsyncEnumerable vs Hopac
- 17:26Hopac's selective synchronization
- 21:00Cancellation in C# vs Hopac
- 23:32Mixing models in C#
- 25:45When to choose tasks or alternatives
- 27:34Hopac for millions of jobs
- 30:01Why learn other async models
- 31:24Q&A on async programming
