Saving runtime clojure image

69 views
Skip to first unread message

Jozef Wagner

unread,
Jul 16, 2010, 9:02:34 AM7/16/10
to Clojure
Hi,

I've read in some old discussion (
http://groups.google.com/group/clojure/browse_thread/thread/5259280f2fd8c8a5/
) that
"Clojure cannot save a runtime image the way SBCL and other Lisps
can."

Is this still true or is it possible to save-lisp-and-die? If not, are
there plans for such functionality or it is inherently impossible to
do such thing in clojure?

With such functionality, I could do some REPL hacking, save the
runtime state and later get back to it.

Best,
Jozef

Laurent PETIT

unread,
Jul 16, 2010, 11:02:12 AM7/16/10
to clo...@googlegroups.com
Not provided by the underlying platform, the JVM.

But one could consider recording your interactions with the REPL, and having an option to replay them at startup.
With time, your REPL will start slower and slower and slower .... though.
And even with an "history replay" feature, there will be times when the replay is not sufficient (since you cannot totally control the I/O environment: date/time, file/network resources, etc.)


2010/7/16 Jozef Wagner <jozef....@gmail.com>
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

atreyu

unread,
Jul 17, 2010, 4:00:15 AM7/17/10
to Clojure
and serialized continuations ? could they be used to save a "image" of
a moment of a execution to return to it lately?
Reply all
Reply to author
Forward
0 new messages