archives

Delimited continuations for C/C++

Hello LtU,

I have created a monster. I have implemented a variant of shift/reset control operators, shift0/reset0, for C/C++. The core of the implementation is written in x86 assembly and works by heap-allocating new stacks and switching between them. There are some caveats, but otherwise everything seems to be working nice.

I've shared the implementation on github. Could you take a look at it and share some comments?

(And yes, I know this is crazy.)