3 ms·
Not quite true. You can serialize a closure. Emacs lisp does so in a pretty interesting way: a closure is just `(closure ((a . 1) (b . 2)) (lambda (x) (+ x a b)
by sillysaurus3 8y ago
Not quite true. You can serialize a closure. Emacs lisp does so in a pretty interesting way: a closure is just `(closure ((a . 1) (b . 2)) (lambda (x) (+ x a b)))`.
The point is, if you can serialize closures, I think you can serialize continuations.
- sbjs 8y agoAnd how does this work if it involves an open file handle, or some other non serializable state?
- sillysaurus3 8y agohttps://www.usenix.org/system/files/conference/atc12/atc12-final206.pdf https://www.usenix.org/system/files/conference/atc12/atc12-f...
- sillysaurus3 8y agoAlso https://github.com/tvcutsem/schemeken https://github.com/tvcutsem/schemeken is quite interesting, as is https://github.com/supergillis/v8-ken https://github.com/supergillis/v8-ken