zlacker

[parent] [thread] 3 comments
1. lr1970+(OP)[view] [source] 2024-01-23 14:54:42
Threads are for when you COMPUTE a lot, while async/await are for when you WAIT a lot.
replies(2): >>seanhu+ye >>zozbot+nj
2. seanhu+ye[view] [source] 2024-01-23 15:52:52
>>lr1970+(OP)
Exactly. Nice rule of thumb.
3. zozbot+nj[view] [source] 2024-01-23 16:13:14
>>lr1970+(OP)
Sometimes you are "computing a lot" over very general dataflow graphs and want to have tasks with work stealing. Async frameworks will give you that for free, seamlessly scaling to any number of underlying threads.
replies(1): >>random+kze
◧◩
4. random+kze[view] [source] [discussion] 2024-01-27 21:37:18
>>zozbot+nj
interesting. I hope it's not too late to ask: could you expand a little bit, in particular, what do you mean by "over very general dataflow graphs"?
[go to top]