8 ms·
Yes, nothing can come close to the C-style stack. What I thought was to maintain a stack or a hash-table of pointers to all the continuations (key/value impleme
by naughtysriram 16y ago
Yes, nothing can come close to the C-style stack. What I thought was to maintain a stack or a hash-table of pointers to all the continuations (key/value implemented as pairs a.k.a cons cells) right from the root environment to the latest active environment, so i can kind of implement a push-pop for environments aka 'stack frame' i guess. In the eval phase I can have another function call-with-foreign-continuation where I provide a function and a target continuation to bind that with. Its like hijacking another functions continuation directly.