4 ms·
I didn't realise that the parallelism TS was merged into the standard. Excelent. I'm still eagerly waiting for the Concurrency TS to be merged. As it is, witho
by gpderetta 10y ago
I didn't realise that the parallelism TS was merged into the standard. Excelent.
I'm still eagerly waiting for the Concurrency TS to be merged. As it is, without 'then', std::future is pretty useless.
- ot 10y agoAnd with coroutines, futures are useless again :)
- gpderetta 10y agoAh, that's a common misconception. Even with coroutines you still want explicit async calls and futures, otherwise if you restrict yourself only sync calls, you either have to artificially serialize operations or have to spawn artificial coroutines. What do you do not want are explicit uses of 'future::then' and the required manual CPS transform. Instead you want a wait-for-{any,all} future operations.
- ot 10y agoYes, that's what I meant, futures for control flow.
- 72deluxe 10y agoStroustrup himself was quite upset with the lack of major things that made C++17. I too am waiting for parallelism to be part of the standard.