This is the mail archive of the
mailing list for the GCC project.
Re: Please support Coroutines TS in C++
- From: Ramón García <ramon dot garcia dot f at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 19 Aug 2017 15:09:30 +0200
- Subject: Re: Please support Coroutines TS in C++
- Authentication-results: sourceware.org; auth=none
- References: <CA+=ghChmBckJOEgQsjsYCQJ7fJao+_mwd+FcPJsNUm=05e9i7A@mail.gmail.com>
On Tue, Aug 15, 2017 at 2:21 PM, Ramón García <email@example.com> wrote:
> Please consider supporting the Coroutines TS in GNU C++.
> It is really important to make asynchronous programming usable.
> Modern programs should be scalable to use the performance of multicore
> processors. Stackless coroutines allow the programmer to scale to
> millions of asynchronous requests. But without the primitives in the
> Concurrency TS, chaining the result of an asynchronous computation to
> the next step, one must program a chain of callbacks. It becomes
> quickly unusable.
> The promise/future, as specified in the concurrency TS, (that is, with
> the function future::then for chaining a callback to the completion of
> the future) make asynchronous programming somewhat more usable.
> Unfortunately, almost no C++ library shipped supports future with
> This is an excellent explanation of the Coroutines TS:
> Both Visual C++ 2017 and CLANG (SVN version) support the Coroutines
> TS. Please consider it.
> I saw that someone started an attempt at implementing it:
> https://gcc.gnu.org/ml/gcc-patches/2016-03/msg00435.html but there
> were no replies.