Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115341 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 48600 invoked from network); 7 Jul 2021 10:10:32 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 7 Jul 2021 10:10:32 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EE0AD180542 for ; Wed, 7 Jul 2021 03:32:30 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 7 Jul 2021 03:32:30 -0700 (PDT) Received: by mail-lf1-f46.google.com with SMTP id y42so3255041lfa.3 for ; Wed, 07 Jul 2021 03:32:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=f1iuZXAvaNVxf7ajdjYUn7HmlVGpwi7YrwH3biIxcuY=; b=Nem5TZ/hw/adi4xPU+VDyH5x2Tb/yIHxqVdZNwZzm1P9Cb9nS4yNMMhmLID+yX8syf ZLLzkHa7RjcUYds9j3Zd1nBhm+FJTwbx2irh9iYXyw6l87N5RWZQyWH1BVg+fXS8dk3n blYdP4n3GiwMHsO8IErM7xta8BmpMvOcNVECOK3OfMb5LwMIpcPy3p2FD0VvQ9YapnWH NaBsfxgv5VUNi17kcbWRZ0pk/fqAh9qbQur9Wpkd8nalpIxNw+t20/oMH0gros89jQs+ 11+wPVQPNNWUvHTh2lMPI7HGq6B3WheDSE4j1hhagcuBIpqINT6Sdk7i6VBDqqJGk1W3 VZKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=f1iuZXAvaNVxf7ajdjYUn7HmlVGpwi7YrwH3biIxcuY=; b=lasp23pcN1lilVbVmhtRm9ifoHglApy/pfMnYF/Kyvz0ADR3Y5FyVTtaa0r5Q5JZJ8 oBwp2b2gb4xKQ7KcEfiCrJNLGVKFGUT+ceTlCwfGiVbNpnVSNM6bz/cUmY9czF5m4mRO ZPDcI4GzoRAC2klECoJCymGrYHoYXkSGhbk+H60M52XmgPrcHQ9WkxWCx7iVmts4IrT5 gIoWnLIC0CAinnWdglZqTLsbrJrDbsT/P3nPZHvUc40YeYJUIgU+zyh/U63P5V6XTDH6 yfmrVhyCABZA+bCkpzMzQCDYSonQg/Y3JhmTqby3ivGG8P34M7fBEfBTNIqZmszzOfwj xFZQ== X-Gm-Message-State: AOAM532Z9L7h2Wv44ali1BQo7m4CEB9iWOGLA4aPNFLlEuhXz3d40LsC hpAkPmCp8XeUzELJEtl5FcMBSMBO/cc0dgb2Euk= X-Google-Smtp-Source: ABdhPJwvrB2/UgB9k6W74C4TrDneGvrYq/HxmaSRKWFg0LrnCAw9AhPyz3sILjtDXXi5gTNrbMQ+XrbTYcdv/EjAzug= X-Received: by 2002:ac2:5283:: with SMTP id q3mr19217292lfm.44.1625653948816; Wed, 07 Jul 2021 03:32:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 7 Jul 2021 12:32:12 +0200 Message-ID: To: Go Kudo Cc: Remi Collet , PHP internals Content-Type: multipart/alternative; boundary="000000000000259f2b05c6860e68" Subject: Re: [PHP-DEV] [RFC] Add Random Extension (before: Add Random class) From: nikita.ppv@gmail.com (Nikita Popov) --000000000000259f2b05c6860e68 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jul 6, 2021 at 4:38 PM Go Kudo wrote: > > 1st > > This is to avoid conflicts with the implementation in ext/standard. I don= 't > want to do it this way either, but I have to do it this way. > Since random in ext/standard does not use namespaces, I would like to > change the ext/standard side. > To clarify, are you referring to the php_random.h header in ext/standard? I agree with Remi that the extension should be in ext/random, not ext/random_ext. We can rename the ext/standard header. Alternatively, you could also use ext/rng, with names RNG\Random, RNG\NumberGenerator\XorShift128Plus etc. Regards, Nikita > > 2nd > > Although it goes back quite a long time, this implementation was original= ly > based on an extension I submitted to PECL. > > https://pecl.php.net/package/orng > > After I posted this to PECL, I found that an object scope RNG had been > proposed in the past in the Internals ML, and there was positive feedback > about it. > > https://externals.io/message/112525 > > However, the proposal never actually took place. This RFC is a realizatio= n > of that proposal. > > Is that what you asked? > > Regards, > Go Kudo > > 2021=E5=B9=B47=E6=9C=886=E6=97=A5(=E7=81=AB) 22:46 Remi Collet : > > > Le 26/06/2021 =C3=A0 02:39, Go Kudo a =C3=A9crit : > > > Hello Internals. > > > > > > RFC has been reorganized for finalization. > > > > > > https://wiki.php.net/rfc/rng_extension > > > > 1st I dislike the name "random_ext", why this "_ext" part ? > > > > 2nd why not following the standard process ? > > > > 1/ publish on pecl > > 2/ merge in php-src if enough success and good feedback > > > > > > Remi > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: https://www.php.net/unsub.php > > > > > --000000000000259f2b05c6860e68--