<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi eliiot<div><br></div><div>I'm curious to know the scenario of levente (for the creation order garanty enumeration) but to me it looks like</div><div>that code based on such implicit semantics is fishy because really bound to the vm behavior - especially in presence of GC. I would not write code with such&nbsp;invariant in mind. It looks also like a complex constraint.&nbsp;</div><div><br></div><div>Stef</div><div><br></div><div><div><div><br></div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi Levente,<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Sep 21, 2013 at 11:39 AM, Levente Uzonyi <span dir="ltr">&lt;<a href="mailto:leves@elte.hu" target="_blank">leves@elte.hu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
Great progress. I've got a few questions about Spur and the bootstrap:<br>
- How will HashedCollections other than MethodDictionaries get rehashed? How #hash be calculated from #identityHash?<br></blockquote><div><br></div><div>The bootstrap first builds an image in the new format and then finds all classes in it that implement rehash and then uses the simulator to send rehash to all objects to use their own rehash method to rehash them, instead of assuming their format. &nbsp;In fact, the bootstrap does not rehash all objects that understand rehash since Symbol is one of them, and its Symbol table is rehashed anyway.</div>
<div><br></div><div>hash is computed from identityHash without change, but scaledIdentityHash is changed to avoid creating LargeIntegers (the larger identityHash needs less shift also):</div><div><div>ProtoObjectPROTOTYPEscaledIdentityHash</div>
<div><span class="" style="white-space:pre">        </span>"For identityHash values returned by primitive 75, answer</div><div><span class="" style="white-space:pre">        </span> such values times 2^8. &nbsp;Otherwise, match the existing</div>
<div><span class="" style="white-space:pre">        </span> identityHash implementation"</div><div><br></div><div><span class="" style="white-space:pre">        </span>^self identityHash * 256 "bitShift: 8"</div></div><div>
<br></div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
- What will happen to primitive 138 and 139? Will we still be able to iterate over the objects in the order of their creation time?<br></blockquote><div><br></div><div>That's much more difficult. &nbsp;I'll add allInstances and allObjects primitives which can answer the objects instantianeously without needing to enumerate. &nbsp;One issue is that the scavenger could fire at any time during the enumeration and could tenure objects to old space so its in general not possible to reliably enumerate via firstInstance/nextInstance firstObject/nextObject.</div>
<div><br></div><div>Being able to enumerate in order of creation time is something the VM could maintain in old space, keeping objects in order there-in. &nbsp;But I'd rather drop this property and allow the Spur GC to compact using best-fit and lazy become, which will change the order of objects. &nbsp;How important is being able to enumerate in order of creation? &nbsp;I think it's nice to have but hardly essential. &nbsp;What do y'all think?</div>
<div>&nbsp;</div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
- IIUC the memory is more segmented. Will there be new GC primitives for various levels of garbage collection? What about the GC parameters?<br></blockquote><div><br></div><div>That remains to be seen. &nbsp;I take requests. &nbsp;I take design suggestions. &nbsp;But I also like to keep things simple.</div>
<div><br></div><div>My current approach is to keep things as compatible as possible to ease adoption. &nbsp;Once it is adopted we can start to evolve to provide appropriate and.or improved management facilities.</div><div>&nbsp;</div>
<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
- Are #become: and #becomeForward: optimized for the case where both objects use the same amount of memory?</blockquote><div><br></div><div>Yes. &nbsp;This case simply swaps contents and adjusts the remembered table accordingly. &nbsp;Tim also suggested optimizing the other case, copying into the smaller object and only allocating one extra clone, which I'll implement soon.</div>
<div>&nbsp;</div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><font color="#888888"><br>

<br>
<br>
Levente</font></span><div class=""><div class="h5"><br>
<br>
On Sat, 21 Sep 2013, <a href="mailto:btc@openinworld.com" target="_blank">btc@openinworld.com</a> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
<a href="mailto:commits@source.squeak.org" target="_blank">commits@source.squeak.org</a> wrote:<br>
<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
&nbsp;Eliot Miranda uploaded a new version of VMMaker to project VM Maker:<br>
<a href="http://source.squeak.org/VMMaker/VMMaker.oscog-eem.399.mcz" target="_blank">http://source.squeak.org/<u></u>VMMaker/VMMaker.oscog-eem.399.<u></u>mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: VMMaker.oscog-eem.399<br>
Author: eem<br>
Time: 20 September 2013, 6:28:56.308 pm<br>
UUID: 89f8fefe-b59d-42d7-9c11-<u></u>7f848d0e5131<br>
Ancestors: VMMaker.oscog-eem.398<br>
<br>
A few isIntegerObject:'s =&gt; isImmediate:'s in primitives.<br>
<br>
More protocol.<br>
<br>
The Spur VM now draws its first window!!<br>
<br>
<br>
</blockquote>
A cheer goes up in the crowd of interested spectators.<br>
Probably lots still to do, but its a nice concrete milestone.<br>
Contributing is beyond me at this time, so I especially like to thank you for this important initiative.<br>
<br>
cheers -ben<br>
<br>
</blockquote>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</div></div>
</blockquote></div><br></div></body></html>