<div dir="ltr">So, following with this discussion ^^<br><br>This is the latest version we are using.<br><br><div>f := Float new: 2.</div><div>f at: 2 put: 1. &quot;store the least significant word of the float with 1; on big endian machines this is the second word&quot;</div><div>Bitmap adoptInstance: f.</div><div>^ f first = 1 ifTrue: [#little] ifFalse: [#big]</div><div><br></div><div>works, because both Float and Bitmap are compact. I just state it because to use another variable word class we should make it compact too.</div><div><br></div><div>Thanks,</div><div>Guille</div></div><br><div class="gmail_quote">El vie., 20 de mar. de 2015 a la(s) 11:11 a. m., Esteban Lorenzano &lt;<a href="mailto:estebanlm@gmail.com">estebanlm@gmail.com</a>&gt; escribió:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
&gt; On 20 Mar 2015, at 09:42, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mar 19, 2015, at 8:17 AM, Bert Freudenberg &lt;<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt; On 18.03.2015, at 20:49, Stefan Marr &lt;<a href="mailto:smalltalk@stefan-marr.de" target="_blank">smalltalk@stefan-marr.de</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hi:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On 18 Mar 2015, at 20:17, tim Rowledge &lt;<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On 18-03-2015, at 12:10 PM, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; At least it doesn&#39;t use BitBlt.  Its got much less dependencies than the existing code and is much simpler.  Isn&#39;t that worth something?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; No need to use Bitmap if that’s a real problem - make a trivial class that is ArrayedCollection variableWordSubclass:#<u></u>EndianTestThing and use that.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Shouldn’t the VM should abstract from such things? Why is there a need for this knowledge on the application side?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I guess, it is needed for low-level hacking at the language level?<br>
&gt;&gt;<br>
&gt;&gt; +1<br>
&gt;&gt;<br>
&gt;&gt; This is only needed if you work around the VM, like when you use FFI. So IMHO the FFI plugin should support that primitive. Or maybe it does? Doesn&#39;t it provide special bytearray accessors?<br>
&gt;<br>
&gt; Yes.  Given FFI primitives its easy to construct a test out of longAt:put: and byteAt:.  I didn&#39;t state it earlier cuz the prims aren&#39;t in the base VM.<br>
<br>
in the pharo vm, they are.<br>
<br>
Esteban<br>
<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; - Bert -<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
<br>
</blockquote></div>