3 ms·
I know nothing about the internals of any of the Ruby VM's so this may be a totally stupid question ... How hard would be it be to 'marshal out' the entire run
by fendale 18y ago
I know nothing about the internals of any of the Ruby VM's so this may be a totally stupid question ...
How hard would be it be to 'marshal out' the entire running Ruby VM to a binary image and load it back in again like the way the Smalltalk VMs seem to do, or add the ability to marshal out objects as a memory image of some sort, meaning they can be marshalled out and in really efficiently (ie stuff a true Ruby object into Memcached instead of a string representation of it ...
- stcredzero 18y agoYou should be able to marshal out everything in just about any VM. The reason why Ruby and the JVM dont' do this is because it just hasn't been done yet. The whole point of VMs is that they are virtual machines. That virtual model is just data. The VM is just another program. So saving state, then restarting later from that state is quite doable. Image-based development is a very different style, however. Lots of people are in love with their command lines and text editors.