bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] ⎕RL wrong initial value


From: Blake McBride
Subject: Re: [Bug-apl] ⎕RL wrong initial value
Date: Tue, 1 Jul 2014 22:09:45 -0500

No need to argue.  Nowhere is the random number generator algorithm specified, but ⎕RL is.  I thought we long ago agreed that, except for extensions, we were attempting to match the IBM APL standard - for better or worse.  Additionally, in any area where it is arbitrary or pointless, why not just match the standard and avoid controversy whether you think it is meaningless or not?


On Tue, Jul 1, 2014 at 10:00 PM, Elias Mårtenson <address@hidden> wrote:
I'd argue because GNU APL uses a different random number generator, so using the same RL value is pointless at best, and can raise unfulfilled expectations and confusion at worst.

Regards,
Elias


On 2 July 2014 10:57, Blake McBride <address@hidden> wrote:
As I've stated before, I am not smart enough to understand that spec.  IBM's language manual is readable, and the value it is clear about is what I expected.  Also, I just tested IBM APL 2.  Initial ⎕RL is 16807.  If any value is valid, why not match IBM APL 2 and their Language Manual?


On Tue, Jul 1, 2014 at 9:20 PM, Elias Mårtenson <address@hidden> wrote:
The standard says the following:

"The initial value of random-link in a clear-workspace is that member of the internal-
value-set for random-link given by the implementation-parameter initial-random-link."

So, setting it to 1 seems to be reasonable enough.

Regards,
Elias


On 2 July 2014 10:07, Blake McBride <address@hidden> wrote:
According to the IBM APL2 Language Manual (page 421 AND page 322), ⎕RL initial value, and upon )CLEAR should be 16807.  GNU APL seems to be setting it to 1.

Thanks.

Blake







reply via email to

[Prev in Thread] Current Thread [Next in Thread]