lampepfl / monadic-reflection

108 stars 8 forks source link

Can multishot be supported? #8

Open kyay10 opened 4 months ago

kyay10 commented 4 months ago

The loom proposal mentions that Loom should theoretically allow continuation cloning. There's an implementation thesis I read that I can't find right now that seems to describe a serialization API for continuations that returns an array of ContinuationStackFrame that allows access to local variables, etc, and allows reinstating a continuation. With all that in mind, I think multishot might theoretically be possible. Could be something to look into!