<br><br><div class="gmail_quote">On Wed, Aug 19, 2009 at 6:05 PM, Ronald Spengler <span dir="ltr">&lt;<a href="mailto:ron.spengler@gmail.com">ron.spengler@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
This may be my best newbie question ever! Thanks everyone, this has been most informative:)<div><br></div><div>Is replacing #asOOP with #identityHash bugworthy, do you think?</div></blockquote><div><br></div><div>Potentially, yes.  asOOP is one-to-one whereas identityHash is many-to-one, i.e. oops are unique but identityHashes are not. </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><br><div><br></div><div> - Ron<div><div></div><div class="h5"><br><br><div class="gmail_quote">
On Wed, Aug 19, 2009 at 3:02 PM, Michael van der Gulik <span dir="ltr">&lt;<a href="mailto:mikevdg@gmail.com" target="_blank">mikevdg@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br><br><div class="gmail_quote"><div>On Wed, Aug 19, 2009 at 11:51 PM, Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>&gt;</span> wrote:<br><div>
<br></div><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<div style="word-wrap:break-word"><div><div><br><blockquote type="cite">The intention however was just to print out a number that is unique for each different instance so that you can see whether two variables are pointing to the same morph. This is useful for debugging.<br>


</blockquote><br></div></div><div>Indeed. IMHO, all uses of #asOOP should be replaced by #identityHash (outside of the VMMaker package anyway), and the comment in asOOP updated (or remove it altogether).</div></div></blockquote>


</div><div><br><br>/me thinks...<br><br>I knew that &gt;&gt;identityHash returned bits from the object header, and I knew that Squeak uses direct pointers, but I never put the two together.<br><br>I shall remove references to &gt;&gt;asOop in all of my code. <br>


 </div><div><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div style="word-wrap:break-word">(*) Even in a VM compiled on a 64 bit host OOPs are 32 bits. Only in &quot;64 bit images&quot; OOPs are extended to 64 bits, but they are not in use yet. And we might rather like to re-introduce an object table anyway, which even with 32 bit OOPs would give us 2 billion objects ;)</div>


</blockquote></div><div><br>Nah. Make a block-based VM: <a href="http://gulik.pbworks.com/Block-based+virtual+machine" target="_blank">http://gulik.pbworks.com/Block-based+virtual+machine</a>.<br><br>Then you can have terrabyte-sized images which page to/from disk, and have lots of concurrency in the VM :-).<br>


<br>Unfortunately, the idea is great but it&#39;s not on my TODO list.<br clear="all"></div></div><div><div></div><div><br>Gulik.<br><br>-- <br><a href="http://gulik.pbwiki.com/" target="_blank">http://gulik.pbwiki.com/</a><br>


</div></div><br><br>
<br></blockquote></div><br></div></div></div></div>
<br><br>
<br></blockquote></div><br>