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

Andrew Haley aph@redhat.com
Fri Aug 18 09:43:00 GMT 2017


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?

-- 
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671



More information about the Gcc-help mailing list