<div dir="ltr">Hi Bert, Hi Tim,<div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Sep 15, 2016 at 2:55 PM,  <span dir="ltr"><<a href="mailto:commits@source.squeak.org" target="_blank">commits@source.squeak.org</a>></span> wrote:</div><div class="gmail_quote">[snip]<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><a href="http://lists.squeakfoundation.org/pipermail/packages/2016-September/068930.html" rel="noreferrer" target="_blank">http://lists.squeakfoundation.<wbr>org/pipermail/packages/2016-Se<wbr>ptember/068930.html</a><br>
<br>
Name: System-bf.916<br>
Ancestors: System-bf.915<br>
<br>
Replace VM-level ImageSegment loading with a Smalltalk implementation for old (interpreter-era) projects.<br>
<br>
Also removes support for writing segments.<br>
<br>
This overrides the Spur support introduced in System-eem.758.</blockquote></div></div></div></div></blockquote></div></div></blockquote><div><br></div><div>I am currently putting back the ImageSegment support for saving projects and loading native segments produced in this way.  I''ve added subclasses of ImageSegment called NativeImageSegment and LegacyImageSegment.   I have a few questions.</div><div><br></div><div>1. I'm curious about the ImageSegment>>scanFrom: method:</div><div><br></div><div><div>!ImageSegment methodsFor: 'fileIn/Out' stamp: 'RAA 6/22/2000 17:49'!</div><div>scanFrom: aStream</div><div>    "Move source code from a fileIn to the changes file for classes in an ImageSegment.  Do not compile the methods.  They already came in via the image segment.  After the ImageSegment in the file, !!ImageSegment new!! captures control, and scanFrom: is called."</div><div>    | val chunk |</div><div><br></div><div>    [aStream atEnd] whileFalse:</div><div>        [aStream skipSeparators.</div><div>        val := (aStream peekFor: $!!)</div><div>            ifTrue: ["Move (aStream nextChunk), find the method or class</div><div>                        comment, and install the file location bytes"</div><div>                    (Compiler evaluate: aStream nextChunk logged: false)</div><div>                        scanFromNoCompile: aStream forSegment: self]</div><div>            ifFalse: [chunk := aStream nextChunk.</div><div>                    aStream checkForPreamble: chunk.</div><div>                    Compiler evaluate: chunk logged: true].</div><div>        aStream skipStyleChunk].</div><div>    "regular fileIn will close the file"</div><div>    ^ val! !</div></div><div><br></div><div>I don't see this in the new (legacy, System-bf.916) image segment loading code.  Do Etoys projects not include source code and hence its irrelevant?  The question boils down to whether this should be a method on ImageSegment, and hence inherited by both NativeImageSegment and LegacyImageSegment, or just NativeImageSegment.  Also, I don't see how this method attaches sources to the methods brought in.  Is it in fact useless and hence that's why you've left it out?  If so, would it not be useful to add code that does update the source pointers in loaded methods correctly?</div><div><br></div><div>2. Should I pull in the Etoys extensions deleted in EToys-bf.234?  (ImageSegment>>(classOrganizersBeRoots:,rehashDictionaries:,rehashMethodDictionaries:)?  I'm guessing they'll be needed for native loading.</div><div><br></div><div>3. Same for the SMBase extension ImageSegment>>writeForExportOn:.  I guess this should come back in too.</div><div><br></div><div>4.  Where should I look for tests that may have been removed?</div><div><br></div></div><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>