> - Do you think that PHP needs an object-scoped random number
> > implementation? And why?
if this means each object can maintain its own seed i dont know why php or
many other languages dont have this truely. been doing game dev recently
and i needed an rng system that does not involve messing
On 12/05/2021 15:39, Go Kudo wrote:
I haven't decided whether to include it in the next RFC, but we think we
need to deprecate all functions that use RNGs with global state (shuffle(),
array_rand(), str_shuffle()) in the future.
I don't understand why that would be necessary or helpful. The ma
On Wed, May 12, 2021 at 6:43 PM Christian Schneider
wrote:
> Am 11.05.2021 um 23:20 schrieb Larry Garfield :
> > 3) Perhaps it should be named RandomSequence or similar? It's not truly
> generating random numbers. It's generating a repeatable but difficult to
> produce sequence off of a seed va
Am 11.05.2021 um 23:20 schrieb Larry Garfield :
> 3) Perhaps it should be named RandomSequence or similar? It's not truly
> generating random numbers. It's generating a repeatable but difficult to
> produce sequence off of a seed value. That's not the same thing as
> random_int() et al.
>
>
On Wed, May 12, 2021 at 8:58 AM Nikita Popov wrote:
>
> On Wed, May 12, 2021 at 4:51 PM Levi Morrison via internals
> wrote:
>>
>> > Also, I am happy to see that Nikita's rules for namespace assignment to
>> > extensions have been approved. I'm going to use the `RNG` namespace.
>>
>> Just to be
On Wed, May 12, 2021 at 4:51 PM Levi Morrison via internals <
internals@lists.php.net> wrote:
> > Also, I am happy to see that Nikita's rules for namespace assignment to
> extensions have been approved. I'm going to use the `RNG` namespace.
>
> Just to be clear, you can only use `RNG` as a namespa
Sorry about that. I thought I had indicated that I was getting rid of
bc-break and carving out functionality for the `ext/rng` extension in the
context of reverting to an ORNG-like class-based implementation.
2021年5月12日(水) 23:51 Levi Morrison :
> > Also, I am happy to see that Nikita's rules for
> Also, I am happy to see that Nikita's rules for namespace assignment to
> extensions have been approved. I'm going to use the `RNG` namespace.
Just to be clear, you can only use `RNG` as a namespace if the
extension is named `ext/rng`. You cannot add namespaced things to
`standard` nor `SPL` no
> 1) Get rid of all of the functions. Object-scoped means... you just have
an object with methods on it. That's it.
Yes. The previous proposal was a complete mess. We will change it to be
based on the ORNG extension that we originally planned.
https://github.com/zeriyoshi/php-ext-orng
> 2) Don't
I would like to change the proposal to one based on the original proposal
(pecl orng) instead of the confusing RFC proposal.
https://github.com/zeriyoshi/php-ext-orng
But, I am a bit skeptical about bc-break. It is possible to implement it
without destroying the current behavior, but keeping the o
On Tue, May 11, 2021, at 7:57 AM, Go Kudo wrote:
> Hi internals.
>
> I previously proposed an object scope RNG implementation inside.
> However, the RFC was rejected after a vote.
>
> https://wiki.php.net/rfc/object_scope_prng
>
> Vote: https://externals.io/message/113888
> Discussion: https://e
On Tue, May 11, 2021 at 6:58 AM Go Kudo wrote:
>
> Hi internals.
>
> I previously proposed an object scope RNG implementation inside.
> However, the RFC was rejected after a vote.
>
> https://wiki.php.net/rfc/object_scope_prng
>
> Vote: https://externals.io/message/113888
> Discussion: https://ext
Hi internals.
I previously proposed an object scope RNG implementation inside.
However, the RFC was rejected after a vote.
https://wiki.php.net/rfc/object_scope_prng
Vote: https://externals.io/message/113888
Discussion: https://externals.io/message/112819
As per my previous proposal, PHP is cur
13 matches
Mail list logo