<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2014-11-23 0:56 GMT+01:00 Ben Coman <span dir="ltr">&lt;<a href="mailto:btc@openinworld.com" target="_blank">btc@openinworld.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Chris Muller wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
 On Sat, Nov 22, 2014 at 10:12 AM, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>&gt; wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Bert,<span class=""><br>
<br>
On Sat, Nov 22, 2014 at 5:12 AM, Bert Freudenberg &lt;<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On 21.11.2014, at 23:01, Eliot Miranda uploaded VMMaker.oscog-eem.950.mcz<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Introduce &gt;&gt;&gt; as an explicitly signed shift.<br>
</blockquote>
Ugh, can we pick something else, please? It&#39;s really confusing. In various languages (notably Java and JavaScript), &gt;&gt; is signed and &gt;&gt;&gt; unsigned. I don&#39;t know any language that has both operators and the meaning reversed.<br>
</blockquote>
<br>
This is confused because of history.  What I&#39;d like is to use &gt;&gt; as a signed shift (because that&#39;s what it is) and &gt;&gt;&gt; as an unsigned shift.  And I&#39;d like to change bitShift: to generate signed shifts and introduce unsignedBitShift: and ditch signedBitShift:.  But that means changing all uses of &gt;&gt; in VMMaker.  This would be my preferred solution but I think its *really* important that if we go this route we change VMMaker.oscog, VMMaker and VMMakerJS at the same time.  Can we synchronise this?<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
And &gt;&gt; still means signed or unsigned depending on context. Not nice at all.<br>
</blockquote>
<br>
Right.  And there&#39;s the signedBitShift: bogosity too.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
How about ...<br>
<br>
        &gt;&gt; signed/unsigned depending on type (what we have now)<br>
        &gt;&gt;+ force unsigned shift<br>
        &gt;&gt;- force signed shift<br>
</blockquote>
<br>
That&#39;s funny.  For me the + screams signed.<br>
</span></blockquote>
<br>
Berts made more sense to me simply because signed support<br>
negatives(-), where unsigned only support positive(+)..<br>
<br>
</blockquote>
<br>
Revising my previous suggestion...<br>
&gt;&gt;&gt; force unsigned<br>
&gt;&gt;- force signed<br>
<br>
cheers -ben<br>
<br>
</blockquote></div><br></div><div class="gmail_extra">As a latin, writing the most significant bit to least significant from left to right, and the sign leftmost, I would suggest -&gt;&gt; to suggest how we propagate the minus sign bit...<br><br></div><div class="gmail_extra">Nicolas<br></div></div>