Perl: the Markov chain saw | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
My question is this: is it possible, in my C app, to save off the state of the interpreter and restore it later? Sure you can, just as you can write a relational database in assembly. Realistically you need to ask bigger questions of why? Why not just put it in hibernate? Why not save off the whole OS run-state which I believe you can do with hypervisors like vmware. You need to be able to ask the bigger question of why you want to do this. It may be as easy as using Storable as one point, depending upon how the c/perl is stitched together. Are there just a few global type objects, singletons, from which all other data within your perl code hang? My suggestion is to draw pictures, I like pictures, and show what is in the perl code, what is in the code, how they communicate, what triggers communication, etc. You can not well address this issue without a clear understanding of the architecture - yes you may have written it, but take a 50,000 ft view, not the 10 ft view, along with why, what is the driving issues, and the answer will probably pop right out. In reply to Re: Embedded Perl - Saving State?
by otto
|
|