Hacker News new | ask | show | jobs
by gpderetta 3445 days 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.

2 comments

And with coroutines, futures are useless again :)
Ah, 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.

Yes, that's what I meant, futures for control flow.
Stroustrup 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.