<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. "store the least significant word of the float with 1; on big endian machines this is the second word"</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 <<a href="mailto:estebanlm@gmail.com">estebanlm@gmail.com</a>> escribió:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> On 20 Mar 2015, at 09:42, Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>> wrote:<br>
><br>
><br>
><br>
><br>
> On Mar 19, 2015, at 8:17 AM, Bert Freudenberg <<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>> wrote:<br>
><br>
>><br>
>>> On 18.03.2015, at 20:49, Stefan Marr <<a href="mailto:smalltalk@stefan-marr.de" target="_blank">smalltalk@stefan-marr.de</a>> wrote:<br>
>>><br>
>>><br>
>>> Hi:<br>
>>><br>
>>>> On 18 Mar 2015, at 20:17, tim Rowledge <<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>> wrote:<br>
>>>><br>
>>>> On 18-03-2015, at 12:10 PM, Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>> wrote:<br>
>>>>><br>
>>>>> At least it doesn't use BitBlt. Its got much less dependencies than the existing code and is much simpler. Isn't that worth something?<br>
>>>><br>
>>>> 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>
>>><br>
>>> Shouldn’t the VM should abstract from such things? Why is there a need for this knowledge on the application side?<br>
>>><br>
>>> I guess, it is needed for low-level hacking at the language level?<br>
>><br>
>> +1<br>
>><br>
>> 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't it provide special bytearray accessors?<br>
><br>
> Yes. Given FFI primitives its easy to construct a test out of longAt:put: and byteAt:. I didn't state it earlier cuz the prims aren't in the base VM.<br>
<br>
in the pharo vm, they are.<br>
<br>
Esteban<br>
<br>
><br>
>><br>
>> - Bert -<br>
>><br>
>><br>
>><br>
<br>
</blockquote></div>