The gist is that they use setjmp/longjmp to create delimited continuations in compliant C99.
It seems like this method is fairly close to what PyPy already does with stacklets. Any reason why this couldn't be ported to PyPy? Of course there'd have to be some sort of stack integration as with stacklets, but it seems that that mostly boils down to making sure the GC has a way to trace the bits of the stack contained in the continuations.
I'm considering trying my hand at using their library via rffi, and copying what I need from _stacklet_shadowstack.py. But perhaps there's something I'm missing that makes this a no-go from the start.
On 4 August 2017 at 01:08, Timothy Baldridge <[hidden email]> wrote:
> It seems like this method is fairly close to what PyPy already does with
> stacklets. Any reason why this couldn't be ported to PyPy?
My first reaction is that this *is* stacklets. Can you describe in
two words what there is more?