2 ms·
There was some talk about letting multiple images of VisualWorks Smalltalk share memory. that way, you could put the Class Library and all that jazz into share
by stcredzero 18y ago
There was some talk about letting multiple images of VisualWorks Smalltalk share memory. that way, you could put the Class Library and all that jazz into shared memory, which would be shared by multiple instances of the VM and image which would hold runtime state and stuff like the account data you mention. If you then wrote a facility to save the shared and non-shared stuff separately and in two different files, then you'd have it.
Also, there was a variant of Smalltalk built in the days just before and after the ParcPlace/Digitalk merger that was designed to be usable for writing quick and dirty admin apps. The minimal image was tiny. Something like 45k.
In any case, there doesn't need to be any barrier to non-image based development in such a virtual machine. Just about any virtual machine has an image in memory. Image based development is about being able to code in the debugger -- about having absolute runtime power over all aspects of the development environment. If you don't need 100% of that, then you don't need image-based development in any virtual machine.
(Because Smalltalk went whole-hog into having this absolute runtime power over everything, even the dev environment, the image became a strange loop, and could not be rebuilt from source due to these chicken-egg paradoxes. But since you already have an image, it doesn't matter. Example: nil is an instance of UndefinedObject, a subclass of Object, whose superclass is nil.)
- gnaritas 18y agoGreat example about nil.
- stcredzero 18y agoActually, it's a so-so example. You'd have to build just a little into the VM to get around it. (All of the classes that are in the loop and nil) Another one is MetaClass. Class and MetaClass are both (eventual) subclasses of Behavior. But the Class of Class is an instance of MetaClass. (I'm confused as to why the Rubinius people have MetaClass as a subclass of Class.)