"I have a mind like a steel... uh... thingy." Patrick Logan's weblog.

Search This Blog

Loading...

Friday, October 26, 2007

Imagine That

Steve Loughran writes...

Slowly but surely, our applications are moving to a world where they persist state automatically, and can skip over a crash as a normal event.
Kind of like what Smalltalk provides for free using an "image". Um-hmm.
Most popular programming systems separate program code (in the form of class definitions, functions or procedures) from program state (such as objects or other forms of application data). They load the program code when an application is started, and any previous application state has to be recreated explicitly from configuration files or other data sources. Any settings the application programmer doesn't explicitly save, you have to set back up whenever you restart...

Smalltalk systems store the entire application state (including both Class and non-Class objects) in an image file. The image can then be loaded by the Smalltalk interpreter to restore a Smalltalk system to a previous state.

Imagine that.

1 comment:

steve_l said...

Of course, there is the need for the system state itself to be of adequate quality. C/C++'s pointer-centric world view makes it prone to stamping on data you want...I don't think persistent C/C++ memory states is what you want.

Blog Archive

About Me

Portland, Oregon, United States
I'm usually writing from my favorite location on the planet, the pacific northwest of the u.s. I write for myself only and unless otherwise specified my posts here should not be taken as representing an official position of my employer. Contact me at my gee mail account, username patrickdlogan.