lewissbaker.github.io icon indicating copy to clipboard operation
lewissbaker.github.io copied to clipboard

Discussion for "C++ Coroutines: Understanding the Compiler Transform"

Open lewissbaker opened this issue 1 year ago • 6 comments

Discussion for the post at https://lewissbaker.github.io/2022/08/27/understanding-the-compiler-transform

Also see: Reddit: https://www.reddit.com/r/cpp/comments/x0bj5z/c_coroutines_understanding_the_compiler_transform/ HackerNews: https://news.ycombinator.com/item?id=32642832

lewissbaker avatar Aug 27 '22 13:08 lewissbaker

Can you add permalinks to the section headers? e.g. I can manually link to, let's say, Step 6 by going through the html source but it'd be nice if there were just a link right there. Something like this?.

Also, given the length, a table of contents would be 👌. I'm sure there's some plugin somewhere you can add to do that easily, I just don't know what that is.

brevzin avatar Aug 29 '22 15:08 brevzin

@brevzin Thanks for the tip.

I've added anchor links and a table-of-contents now.

lewissbaker avatar Aug 30 '22 01:08 lewissbaker

very good post!

Step 13: Implementing symmetric-transfer and the noop-coroutine

this is a loop in coroutine_handle resume function,so how can the compiler implement with tail-call? or just for introduce the principles, there is no loop in real completed generated code?

bilosikia avatar Sep 12 '22 07:09 bilosikia