Hi!
I'm playing to bootstrap a Pharo image, trying to get a new environment running into my 'host' image, and after that, dump those new objects into a new image file. Now, to do that, I'm creating new classes for String, Character... Which are well known by the vm specialObjectsArray. And trying to initialize my new image classes, which creates new character objects, and new string objects which is causing me some troubles :P. Now, my question is about this check in vmmaker (and some others that look similar): Interpreter>>#asciiOfCharacter: characterObj "Returns an integer object" <inline: false> self assertClassOf: characterObj is: (self splObj: ClassCharacter). successFlag ifTrue: [^ self fetchPointer: CharacterValueIndex ofObject: characterObj] ifFalse: [^ ConstZero] "in case some code needs an int" - Can't we put a more intelligent assersion like checking if the object responds true to #isCharacter? - And removing the static check from the vm and adding the dynamic and nice #isCharacter check into the image? Thanks! Guille _______________________________________________ VM-beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners |
On Tue, Apr 17, 2012 at 6:13 PM, Eliot Miranda <[hidden email]> wrote:
I was not totally aware of the performance issues (I knew there were going to be some tradeoffs, but not so critical :) ). Now, for the bootstrap, I'll talk with my mentors to see which should be a nice approach to reach where we want to be. BTW, you were talking about better object representation and inmediate characters, can you give me a pointer of what you mean? (just curious) Thank you!! Guille
_______________________________________________ VM-beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners |
In reply to this post by Guillermo Polito
On Sat, Apr 21, 2012 at 9:50 PM, stephane ducasse <[hidden email]> wrote:
yes, or more :). (or none in the ideal case :( ) _______________________________________________ VM-beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners |
Free forum by Nabble | Edit this page |