Hi all,
In guile 2.1 the position of code segements are fixed
relative certain vectors and this makes it
possible to store indexes of code segements and as a
possibility to persist closures. I took advatage of this
because state in guile-log means that we must do exactly that.
Persist not only datastructures like struct lists and vectors
vhashes etc, but also persist closures. So now one can do cool
things in guile-prolog like:
prolog> X=1,stall,Y=2.
prolog> .setp 1
prolog> .savep
prolog> .quit
stis> guile-prolog
prolog> .loadp
prolog> .refp 1
prolog> .cont
X=1
Y=2
prolog>
I can make this persistant code
into a library anyone interested?
Oh the security implications of
this is horrible but I don't pretend that guile-log is secure
so
I don't care. What's more demading
is that it depends on groveling into guile internal
datastructures. Therefore I am reqesting an official way of
persisting closures. What's your take on that? Would you
guy's want to supply such a
mechansim or is it bad practice?
regards
Stefan