<br><br><div class="gmail_quote">On Fri, May 11, 2012 at 11:33 AM, Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 <br><div style="word-wrap:break-word"><br><div><div>On 11.05.2012, at 19:43, Eliot Miranda wrote:</div><br><blockquote type="cite"><br><br><div class="gmail_quote">On Fri, May 11, 2012 at 6:46 AM, Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I just checked. Most, if not all of the problems, come from Scratch&#39;s use of numbered primitives. They were deprecated in favor of named primitives.<br>
<br>
IMHO it would be reasonably simple to re-instate these primitives in the VM. Right now they are simply mapped to primitiveFail. This would get us back the ability to run many old images, unmodified.<br></blockquote><div>

<br></div><div>Alas I&#39;ve used a few of these for Cog:</div><div><br></div><div> #(#(161 #primitiveSetIdentityHash)</div><div>    #(169 #primitiveNotIdentical)</div><div>    #(175 #primitiveBehaviorHash)</div><div>    #(176 #primitiveMaxIdentityHash)</div>

<div>    #(185 #primitiveExitCriticalSection)</div><div>    #(213 #primitiveContextXray)</div><div>    #(214 #primitiveVoidVMState)</div><div>    #(215 #primitiveVoidVMStateForMethod)</div><div>    #(218 #primitiveDoNamedPrimitiveWithArgs)</div>

<div>    #(240 #primitiveUTCMicrosecondClock)</div><div>    #(241 #primitiveLocalMicrosecondClock)</div><div>    #(242 #primitiveSignalAtUTCMicroseconds)</div><div>    #(243 #primitiveUpdateTimezone))</div><div> </div><div>

I think your change set is the way to go.</div></div></blockquote><br></div><div>Well, as David suggested, we could switch them based on the image magic number.</div></div></blockquote><div><br></div><div>Good point.  Excuse me for missing that David.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div>
<span style="border-spacing:0px 0px;text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:Lucida Grande;word-spacing:0px"><div style="font-family:Helvetica">
<span style="font-family:Helvetica">- Bert -</span></div><br></span>
</div>
<br></div><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div><br>