Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Saving program image in guile

Tags:

scheme

guile

I've heard that most lisps support saving image of running program into file. Does guile support this?

like image 979
podcherkLIfe Avatar asked Nov 06 '22 05:11

podcherkLIfe


1 Answers

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.

like image 177
Bernd Jendrissek Avatar answered Dec 19 '22 11:12

Bernd Jendrissek