Float32Array weirdness

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Float32Array weirdness

Stéphane Rollandin
Hello all,

In the latest trunk image, #at:put: in Float32Array seems to miss the
fractional part:

| floatArray  |
(floatArray := Float32Array new: 4) at: 2 put: 2.3.
floatArray

        ==>  a Float32Array(0.0 2.0 0.0 0.0)


Stef

Reply | Threaded
Open this post in threaded view
|

Re: Float32Array weirdness

Nicolas Cellier
Hi Stef,
it's a VM problem that has been solved already. It works OK with latest VM.

Le sam. 13 févr. 2021 à 15:34, Stéphane Rollandin
<[hidden email]> a écrit :

>
> Hello all,
>
> In the latest trunk image, #at:put: in Float32Array seems to miss the
> fractional part:
>
> | floatArray  |
> (floatArray := Float32Array new: 4) at: 2 put: 2.3.
> floatArray
>
>         ==>  a Float32Array(0.0 2.0 0.0 0.0)
>
>
> Stef
>

Reply | Threaded
Open this post in threaded view
|

Re: Float32Array weirdness

David T. Lewis
In reply to this post by Stéphane Rollandin
On Sat, Feb 13, 2021 at 03:34:40PM +0100, St??phane Rollandin wrote:

> Hello all,
>
> In the latest trunk image, #at:put: in Float32Array seems to miss the
> fractional part:
>
> | floatArray  |
> (floatArray := Float32Array new: 4) at: 2 put: 2.3.
> floatArray
>
> ==>  a Float32Array(0.0 2.0 0.0 0.0)
>

I cannot reproduce. I am on linux, and I get this:

        ==>  a Float32Array(0.0 2.299999952316284 0.0 0.0)

Dave


Reply | Threaded
Open this post in threaded view
|

Re: Float32Array weirdness

Stéphane Rollandin
In reply to this post by Nicolas Cellier
> Hi Stef,
> it's a VM problem that has been solved already. It works OK with latest VM.

Ah ok, thanks. It would be good to update the VM coming with trunk
images then (they are from March 3rd)

Stef

Reply | Threaded
Open this post in threaded view
|

Re: Float32Array weirdness

Stéphane Rollandin
In reply to this post by David T. Lewis
> I cannot reproduce. I am on linux, and I get this:
>
>          ==>  a Float32Array(0.0 2.299999952316284 0.0 0.0)

I forgot to mention I'm on Windows, sorry about that.

Stef

Reply | Threaded
Open this post in threaded view
|

Re: Float32Array weirdness

marcel.taeumel
In reply to this post by Stéphane Rollandin
Hi Stef.

Ah ok, thanks. It would be good to update the VM coming with trunk
> images then (they are from March 3rd)

We chose to not bundle bleeding-edge VMs with Trunk bundles as a safety net. But you are right. Such a fix might justify updating the VM used for Trunk bundles.

Best,
Marcel

Am 13.02.2021 17:44:18 schrieb Stéphane Rollandin <[hidden email]>:

> Hi Stef,
> it's a VM problem that has been solved already. It works OK with latest VM.

Ah ok, thanks. It would be good to update the VM coming with trunk
images then (they are from March 3rd)

Stef