Re: Is there any plans or work going on gcc related to c++ coroutines?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 08/18/2017 11:51 AM, Andrew Haley wrote:
On 17/08/17 16:05, Avi Kivity wrote:
On 08/15/2017 02:30 PM, Jonathan Wakely wrote:
On 15 August 2017 at 12:29, Xi Ruoyao wrote:
On 2017-08-15 12:23 +0100, Jonathan Wakely wrote:
See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/n4680.pdf
Oh really C++ is keeping developing new language features :)

So would it be implemented in GCC 8?
Nobody is working on it so probably not.
That's sad, it is such a compelling feature.

I will probably switch to clang soon, despite losing concepts and a
subjective preference for gcc, because of this feature.
I've seen many odd things on the GCC lists, but this is one of the
oddest.  Coroutines have been a feature of other programming languages
for 50 years, and at no point has anyone thought them worthwhile
enough to put them into C or C++.  They could have been added at any
time; there is nothing particularly difficult about their
implementation.  But somehow now, in 2017, they are of great
importance.  Is there any reason that this language feature is more
compelling today than at any point in the past?

Stackless coroutines are very useful for asynchronous programming, which is what I do. For me, they will reduce the code size, improve readability and reliability, and increase performance. It's very rare to find a single feature that does all this.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux