How do tagged data structures work in Strongtalk?

Richard <[email protected]> Sat, 26 May 2007 15:54:34 -0700
Newsgroups gmane.comp.lang.smalltalk.strongtalk
Message-ID <[email protected]>
I'm wondering how tagged data structures work in strongtalk. Are
objects always 4 byte aligned allowing the low two order bytes to be
used for tagging. If this is the case how to floats and doubles work?
How do you gracefully move from an unboxed double to a boxed double?
Or are doubles always boxed? What about floats?

Is there a primitive array type that allows one to have an array of
doubles? Is there a way to have such an array interact gracefully with
an Object array? e.g. if you put an object in your double array can it
turn into an Object array with boxed doubles? Is this type of
situation helped by having a static type system in strongtalk?

I presume the recent brenchmarking example discussed in relation to
memory allocation was designed to test the precision of strongtalk
arithmetic as well as its performance.

Is there accepted wisdom of the merits of boxed and unboxed primitive
types in smalltalk/strongtalk?

Has anyone looked at LLVM? How relevent is LLVM to the strongtalk
project?

regards,

Richard.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Strongtalk-general" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/strongtalk-general?hl=en
-~----------~----~----~----~------~----~------~--~---