News for hackers. Stuff that matters.
Re:The Downsides of C++ Coroutines by saurik on Saturday August 12, 2023 @09:47PM (#37105865)
For a while there was an exciting patch for gcc called split stacks that provided a little thunk for every function -- one normally bypassed, but which stackless coroutines could opt in to call -- that would check if more stack had to be allocated, but I think the story was that Go was the primary potential customer for it and they decided to just give up on the dream :(.
Re:The Downsides of C++ Coroutines by gpderetta on Sunday August 13, 2023 @03:07AM (#37107406)
You can use segmented stacks in c++ just fine I think. I believe boost.coroutine supports it. The problem is the additional overhead and the impossibility to link against any non-split stack code.