<div dir="ltr">I figured it might be potentially useful to describe what I&#39;m hoping to do. I want to make a sequencing engine capable of sequencing deferred function calls, which is not hard to do when the interpreter is loaded as I can store lists in some structure that the clock part traverses. But I&#39;d like it to be possible for a user at a repl to do something like insert an anonymous function on the timeline in order to make closures around other bits of state and have them captured for execution in a loop or whatever. So the tricky bit is how to store this such that one could close the session and reopen it, restoring those anon functions in their lists. So I guess this would mean being able to restore the environment and any function defs in that env.  I think in common lisp this is called saving lisp images?<div><br></div><div>One possibility I thought of in case storing state like that just not practical would be to have some mechanism where the repl events could be replayed from a log, but I would think the ability to save the interpreter would be better. </div><div><br></div><div>thanks</div><div>iain</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 12, 2020 at 11:50 AM Iain Duncan &lt;<a href="mailto:iainduncanlists@gmail.com">iainduncanlists@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks Bill, I&#39;d certainly be interested in hearing your thoughts on it. <div><br></div><div>iain</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 12, 2020 at 11:48 AM &lt;<a href="mailto:bil@ccrma.stanford.edu" target="_blank">bil@ccrma.stanford.edu</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">There isn&#39;t a built-in way to save s7&#39;s state.  I don&#39;t know<br>
how CL does it (unexec?), but I read recently (emacs 27 NEWS,<br>
I think) that emacs has abandoned unexec (does it use pdumper?).<br>
<br>
To write out everything in s7 as a scheme file -- I need to<br>
think about it -- it doesn&#39;t immediately strike me as impossible...<br>
<br>
</blockquote></div>
</blockquote></div>