public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Please support Coroutines TS in C++
@ 2017-08-15 13:29 Ramón García
  2017-08-19 15:49 ` Ramón García
  0 siblings, 1 reply; 10+ messages in thread
From: Ramón García @ 2017-08-15 13:29 UTC (permalink / raw)
  To: gcc

Hello,

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
then.

This is an excellent explanation of the Coroutines TS:

https://www.slideshare.net/SergeyPlatonov/gor-nishanov-c-coroutines-a-negative-overhead-abstraction

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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-01-06 12:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-15 13:29 Please support Coroutines TS in C++ Ramón García
2017-08-19 15:49 ` Ramón García
2017-08-20  8:52   ` Jonathan Wakely
2017-08-31 11:31     ` Ramón García
2017-10-16 12:28       ` Ramón García
2017-10-17  8:03         ` Jonathan Wakely
2017-10-17 15:23           ` Nathan Sidwell
2017-10-17 21:14             ` David Brown
2018-01-06 10:07             ` Jeffrey Walton
2018-01-06 12:52               ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).