Friday, December 18, 2009

Selflike

So I'm almost to the point where things work the way I understand Self to work. I have one bug and one conundrum to contemplate.

The bug is that functions may send messages to their context instead of the enclosing object. Basically, if an implicit receiver is used, the correct message will be found but the object that the message should be applied to is ignored, and the current activation will always be used. Not a hard fix, but have to write some tests to get it right.

The conundrum concerns instantiation of an application. There are two options; explicit builder code that is run inside a secure package (read 'object'), or a serialisation approach where objects are specified concretely, and the VM will reconstruct them from the file.

Since it would be possible to implement the second option in the first, I guess that is what I'll go for, but the mood of the VM is more inline with the objects existing in some freeze-dried state rather than executing a series of opcodes to create everything.

No comments:

Post a Comment