<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 11.05.2012, at 19:43, Eliot Miranda wrote:</div><br class="Apple-interchange-newline"><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'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've used a few of these for Cog:</div><div><br></div><div>&nbsp;#(#(161 #primitiveSetIdentityHash)</div><div>&nbsp; &nbsp; #(169 #primitiveNotIdentical)</div><div>&nbsp; &nbsp; #(175 #primitiveBehaviorHash)</div><div>&nbsp; &nbsp; #(176 #primitiveMaxIdentityHash)</div>
<div>&nbsp; &nbsp; #(185 #primitiveExitCriticalSection)</div><div>&nbsp; &nbsp; #(213 #primitiveContextXray)</div><div>&nbsp; &nbsp; #(214 #primitiveVoidVMState)</div><div>&nbsp; &nbsp; #(215 #primitiveVoidVMStateForMethod)</div><div>&nbsp; &nbsp; #(218 #primitiveDoNamedPrimitiveWithArgs)</div>
<div>&nbsp; &nbsp; #(240 #primitiveUTCMicrosecondClock)</div><div>&nbsp; &nbsp; #(241 #primitiveLocalMicrosecondClock)</div><div>&nbsp; &nbsp; #(242 #primitiveSignalAtUTCMicroseconds)</div><div>&nbsp; &nbsp; #(243 #primitiveUpdateTimezone))</div><div>&nbsp;</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><br><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Lucida Grande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="font-family: Helvetica; "><span class="Apple-style-span" style="font-family: Helvetica; ">- Bert -</span></div><br class="Apple-interchange-newline"></span>
</div>
<br></body></html>