Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118972 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 57429 invoked from network); 5 Nov 2022 15:34:24 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Nov 2022 15:34:24 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 273BD180210 for ; Sat, 5 Nov 2022 08:34:23 -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_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 5 Nov 2022 08:34:22 -0700 (PDT) Received: by mail-pf1-f181.google.com with SMTP id k22so6967480pfd.3 for ; Sat, 05 Nov 2022 08:34:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=OzEr/h5cpKAA/Fn0gEQ6wPQgAQNnrSIh4AFgESi+VLQ=; b=fx0Un2d+yHkO/4GaGyp4gmPpCorS2HAJp2a3qcG6gprF/lGIzIin/i7lnHB2FWbmAi p5BZpHq5OM2DCFgsyfT4I4X8ooC37ni7fjtomE4CtFUHE/VBAnCNJo1Xyx3mveRKBhR4 RudyE67N//OvSg/dUkpxP/ZXVWhQq8aJiMJwX32O1nSPE1EHQ1G0PvVgO0W4DTDoYs4I 4AUBd5bm7BkjCBkxcVir4sB1hR6NCM5XJwUtLQt0/swX9txJslhNTITXsT8pv4w+vgni 3Z2OZkugTLQnZzJmiV5ERJgNLgvhFQORpxmDhlShWJBvpnQ/f80hgAEFtE/7ZFrb1mYL jKxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OzEr/h5cpKAA/Fn0gEQ6wPQgAQNnrSIh4AFgESi+VLQ=; b=WyvTClBRmQ3ibOxgQS+aTJbt1plvshh/NJQT69BbmMRTvQA0Cir1+Tzo7yvnBJPNoN VUHkEG4km+9zJAOe7IxzQ/0jz2KV3Lgmtd20Pm4QzZCIiMsGOKuytL2HbU1y7QvaOIZx fgVpjniagBLrYLK6VBq3xI9gwndA5POO6jMpBUHqNZV19f2qX3KthGJyrezuZJ83zoAm GdtBh/vRTcPrJN2itOz7Zv8D1vLdBTrYYBx/8SiB6ZQyAiPwH91DNV1AQMactubQIrpM gvSoJvw5eBHp5UoJpcYamNBCo4GFaR857x6kNX9oPhANmwLvvE/NAqqR2Ki4kltpOvqq sijg== X-Gm-Message-State: ACrzQf0qQm2P8gO8BnKWnbY8W0YHrV3w1KIznrA19PhHDzC36xwLS9R6 Hhm2VSkIia7K+AAGd3jMspQ0it1JoAJacPEMU1I= X-Google-Smtp-Source: AMsMyM4Fwaap04dMZ0cexeTJDNejHkbsE+D0uCc/yY6L70fD2PTJXVzZ4EQSWhh3XRFGcI/wKiVu2gGo9PhgUjoGJEs= X-Received: by 2002:a65:4508:0:b0:43c:e3c6:d1c2 with SMTP id n8-20020a654508000000b0043ce3c6d1c2mr34739789pgq.582.1667662461241; Sat, 05 Nov 2022 08:34:21 -0700 (PDT) MIME-Version: 1.0 References: <5ceebae4-a3fb-5d29-cdb7-dceed7b07c78@wcflabs.de> In-Reply-To: <5ceebae4-a3fb-5d29-cdb7-dceed7b07c78@wcflabs.de> Date: Sun, 6 Nov 2022 00:34:10 +0900 Message-ID: To: =?UTF-8?Q?Joshua_R=C3=BCsweg?= , PHP internals Content-Type: multipart/alternative; boundary="0000000000009b8d1805ecbaec3e" Subject: Re: [PHP-DEV] RFC [Discussion]: Randomizer Additions From: zeriyoshi@gmail.com (Go Kudo) --0000000000009b8d1805ecbaec3e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2022=E5=B9=B410=E6=9C=8814=E6=97=A5(=E9=87=91) 4:38 Joshua R=C3=BCsweg via = internals : > Hi > > Tim D=C3=BCsterhus and I have created an RFC to add new methods that solv= e > commonly encountered use cases to \Random\Randomizer. Specifically > creating a random string consisting of specific bytes and generating > random floating point values. > > You can find the RFC at: > > https://wiki.php.net/rfc/randomizer_additions > > Proof of concept implementation is in: > > * https://github.com/php/php-src/pull/9664 > * https://github.com/php/php-src/pull/9679 > > ---- > > Some open questions to start the discussion: > > * Are you missing other commonly useful operations that are also useful > to have in core? > * Do you agree with the method names? Within the PR we received comments > that "alphabet" might not be an appropriate term. > * Shall an option be added to getFloat() that changes the logic to > select from [$min, $max] (i.e. allowing the maximum to be returned)? And > how should that look like? Boolean parameter? Enum? > > ---- > > We're looking forward to your feedback. > > Cheers > > Joshua R=C3=BCsweg > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > (I made a mistake in replying to your message, so I will reply again here.) Hi I have read the RFC. I think the content is generally good and adequately compensates for the areas that could not be completed. I am skeptical only about getFloat(). The use cases are limited and seem somewhat excessive. Do you have examples of how this is supported in other languages? Regards Go Kudo --0000000000009b8d1805ecbaec3e--