<div dir="ltr">Hi David,<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 8, 2016 at 4:11 PM, David T. Lewis <span dir="ltr">&lt;<a href="mailto:lewis@mail.msen.com" target="_blank">lewis@mail.msen.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Jul 08, 2016 at 03:35:35PM -0700, Eliot Miranda wrote:<br>
&gt; Hi Tobias,<br>
&gt;<br>
&gt; On Wed, Jul 6, 2016 at 12:23 AM, Tobias Pape &lt;<a href="mailto:Das.Linux@gmx.de">Das.Linux@gmx.de</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt; On 06.07.2016, at 08:17, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; On Tue, Jul 5, 2016 at 10:21 PM, Tobias Pape &lt;<a href="mailto:Das.Linux@gmx.de">Das.Linux@gmx.de</a>&gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On 06.07.2016, at 01:13, <a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a> wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Eliot Miranda uploaded a new version of System to project The Trunk:<br>
&gt; &gt; &gt; &gt; <a href="http://source.squeak.org/trunk/System-eem.835.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/<wbr>trunk/System-eem.835.mcz</a><br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; ==================== Summary ====================<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Name: System-eem.835<br>
&gt; &gt; &gt; &gt; Author: eem<br>
&gt; &gt; &gt; &gt; Time: 5 July 2016, 6:13:25.980763 pm<br>
&gt; &gt; &gt; &gt; UUID: 44354df1-cecb-414c-a705-<wbr>daa84b7388dd<br>
&gt; &gt; &gt; &gt; Ancestors: System-eem.834<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Fix reading methods from DataStreams on Spur.  Old code used pre-Spur<br>
&gt; &gt; numLits header format, and was not 64-bit aware.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Does that mean that pre-Spur methods on datastreams cannot be read in<br>
&gt; &gt; Spur images?<br>
</span>&gt; &gt; &gt; That would be a bummer???<br>
<span class="">&gt; &gt; &gt;<br>
&gt; &gt; &gt; It needs some kind of version stamp on the stream.  Point me to some<br>
&gt; &gt; such and we can switch hit.<br>
&gt; &gt;<br>
&gt; &gt; There is none.<br>
&gt; &gt; I would say, we store the data in the format DataStream already know<br>
&gt; &gt; (which happens to be<br>
&gt; &gt; the Pre-Spur version) and adapt on read. That would ensure backward- and<br>
&gt; &gt; forward-compatibility:<br>
&gt; &gt;<br>
&gt; &gt; - We could still read CMs serialized in pre-spur.<br>
&gt; &gt; - We could also read Spur-CMs in pre-spur images.<br>
&gt; &gt;<br>
&gt; &gt; Ok. -- break --<br>
&gt; &gt; I just realized that what you changed was the read part. so no<br>
&gt; &gt; problem here. We could change the part to do things differently<br>
&gt; &gt; when running on spur or non-spur.<br>
&gt; &gt;<br>
&gt;<br>
&gt; The thing is that the two header formats are incompatible.  The old one<br>
&gt; allows up to 2^9-1 literals, the new one up to 2^15-1.  So staying with the<br>
&gt; old format limits us.  We need some kind of version stamp.  Right now<br>
&gt; DataStream and ImageSegment are extremely version-dependent and hence<br>
&gt; restrictive formats.  It would be good for someone to revisit them and try<br>
&gt; and add some kind of versioning information, preferably supporting backward<br>
&gt; compatibility.<br>
&gt;<br>
<br>
</span>While a bit ad-hoc, but we do have an image format number that is used<br>
for a similar purpose in the saved image files. Would that provide enough<br>
information to serve as a version stamp?<br></blockquote><div><br></div><div>Works for me.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The current known formats are maintained in package ImageFormat in the<br>
<a href="http://source.squeak.org/VMMaker" rel="noreferrer" target="_blank">http://source.squeak.org/<wbr>VMMaker</a> repository. It is small and independent<br>
of VMMaker, so we could consider moving it into the image if it is of<br>
more general utility.<br></blockquote><div><br></div><div>+1</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dave<br>
</blockquote></div><div><br></div><div class="gmail_signature" data-smartmail="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>