I am curious how difficult it would be to swap out cloroutine for https://github.com/simm-is/partial-cps (or other CPS transforms, I just happen to experiment with this one to provide a lazy query engine for Datahike and it would be cool to use a uniform transform + FRP maybe). I could get a basic version of sp to work this way, but still need to investigate how to integrate streams and ap.
https://github.com/leonoel/partial-cps
I have pushed an experiment exposing a way to decide if the continuation can be computed synchronously, i.e. the feature I need to implement "lazy ap". The set of breakpoints present in the current continuation is now accessible in the context map under entry :reachable-breakpoints.
I also turned the breakpoint map shape to symbol->function (instead of symbol -> symbol), this allows handlers to close over local state, which I need to refer to the current process object.
There is probably missing edge cases but that should give you an idea of what I'm looking for
I'm interested too. I haven't looked at it yet but it's on my backlog, I'll keep you posted
cool! thanks
no rush