This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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




On 08/18/2017 01:01 PM, Florian Weimer wrote:
On 08/18/2017 10: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++.
There are many coroutine implementations for C in the form of libraries
or preprocessor hacks.  Details might be a bit iffy, but no one seems to
have felt a strong need for compiler support so far.


Those are for stackful coroutines. Stackless coroutines require compiler support.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]