Re: [C++ coroutines] in GCC

2020-01-19 Thread Araq
I'm still excited fwiw, it means we got it essentially right. ;-)

Re: [C++ coroutines] in GCC

2020-01-19 Thread mratsim
oh :/, that was a long mail to describe that

Re: [C++ coroutines] in GCC

2020-01-19 Thread treeform
I was excited about this till I read this: [https://news.ycombinator.com/item?id=22090942](https://news.ycombinator.com/item?id=22090942) If the author is to be believed its just a transformation that is applied to the code. Basically the same transformation that we do with async/await already.

[C++ coroutines] in GCC

2020-01-19 Thread mratsim
This thread details the coroutines API for C++: [https://gcc.gnu.org/ml/gcc-patches/2020-01/msg01096.html](https://gcc.gnu.org/ml/gcc-patches/2020-01/msg01096.html) Just like we map to C++ exceptions, it's probably worthwhile to have coroutines that map cleanly to C++ coroutines so that we can u