I've heard that most lisps support saving image of running program into file. Does guile support this?
I think that interoperating with other languages is pretty integral to what Guile is, and so there is a lot of state in an interpreter image that is opaque to Guile itself. I know Guile best from working with it as the scheme interpreter built into gEDA, so can you imagine having to save not just all the CONSes, but also all the X windows that gschem might have open? It just isn't feasible to do reliably from within Guile. (And I'm not sure it would be a good idea to implement save-image-to-file even in "limited" cases.)
That said, ultimately you can save the program state, but since the program boundaries are so porous, what with file descriptors and memory maps leaking out of every pore, you soon realize that you have to save the entire computer's state. This is done though, in the form of the "hibernate" power-saving mode! I realize, too, that that isn't what you want here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With