by sbjs · 8y ago · 0 comments
For frontend, there are some nontrivial transformations needed to compile continuation based code for a JS target. You can't use the native stack, etc. (Same for WebAssembly I gather, judging from the recent Go/WebAssembly implementation discussion)
To add to what you wrote, the elevator pitch of Seaside and the likes is that we basically write web pages as a sea of GOTO statements and global state, the use of continuations allows us to get to the "structured programming and function calls" level.
The point is, if you can serialize closures, I think you can serialize continuations.