Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118973 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 59309 invoked from network); 5 Nov 2022 15:43:19 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Nov 2022 15:43:19 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3164F1804B0 for ; Sat, 5 Nov 2022 08:43:15 -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-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (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:43:14 -0700 (PDT) Received: by mail-pj1-f51.google.com with SMTP id l6so6983935pjj.0 for ; Sat, 05 Nov 2022 08:43:14 -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=uX9TV3kGGoAE0cTsfIttrmzRWrsV3tpWU7WbqzLh350=; b=cDJaP/PW5kmrWdW55pYn1haVDFoXKJ5mocIsFWQu3Tu77HXLJ+HAfomh220nS48UrZ 1H4xOIW7HtVGM6QVN9NKtLK+F+Oo4Gy+377NTpnoc8fjea0S0uP+eYQ12BgpcXAUpjXD NaAdHheqZ5uWsAEdstQbHkH5gPakqMJIYdNOtzi25GbXlNbX/EpqzqWIOhfvDtdKyjl1 rx6i/H7HkG3GMaAwhLQ4gUExu3YG/xYDS0J2ID5fRCFsUxcIk/layE+tESlzPU5ahn60 9h0nywZGXaNOK9rRJI4DnbzeDyfMLE8MSyxw+YCq7fMi06qLdnweDXsTSSd7Kbq+Cak/ 8ROQ== 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=uX9TV3kGGoAE0cTsfIttrmzRWrsV3tpWU7WbqzLh350=; b=aMuQ09W0Z8Kxpcf47GLn6r9Z6/2vYDcbll52JEQIVbMtm7LQUSm0H6yDpPAGogZ6U7 hAFSD8Zxhab9v7bQXtB656sXrzQFKDz/BF+HB8v1zfVzqcqXt0ZS4tceJxUb5pVIvPSb /9WWHR3eUdQkWPi5wMVvprKAG6gDOlEilliirtuovc6TWRP8C+v51UGbHaHeOCVWrZHK yxBKR0x/9PirIiclVxUpmMisCJIupicY6O+HFGju9K3ICM8U4DTjzM0fvng00NUpZEOT 6wsJfUQZg1dfEhf37Pg5g1+tl2Wr/xgfWFGBNndGEjZ5oYub3OnvLtIJQDe41I1kr46/ /Mgw== X-Gm-Message-State: ACrzQf3GY0mFQfLexnh7xEDgWZSo+G1K7ciNhjZfSN4VCKrIeoDhh6rY TCqLb8JGp1LQ+yOLnDUq72tWaIqg0khOyayF3fJ5c1SjXU4= X-Google-Smtp-Source: AMsMyM6PS5Mab9XcMGa7tYKpmpBWuq5cCKSTOs+LHiwlT/6VhD8zbuoAKKygVdl5tCRJIUgj67NGeXtQpoFiXhAiKA8= X-Received: by 2002:a17:902:d503:b0:187:19c4:f9db with SMTP id b3-20020a170902d50300b0018719c4f9dbmr34481044plg.82.1667662993271; Sat, 05 Nov 2022 08:43:13 -0700 (PDT) MIME-Version: 1.0 References: <5ceebae4-a3fb-5d29-cdb7-dceed7b07c78@wcflabs.de> In-Reply-To: Date: Sun, 6 Nov 2022 00:43:02 +0900 Message-ID: To: =?UTF-8?Q?Joshua_R=C3=BCsweg?= , PHP internals Content-Type: multipart/alternative; boundary="00000000000051b0a705ecbb0ce1" Subject: Re: [PHP-DEV] RFC [Discussion]: Randomizer Additions From: zeriyoshi@gmail.com (Go Kudo) --00000000000051b0a705ecbb0ce1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2022=E5=B9=B411=E6=9C=886=E6=97=A5(=E6=97=A5) 0:34 Go Kudo : > 2022=E5=B9=B410=E6=9C=8814=E6=97=A5(=E9=87=91) 4:38 Joshua R=C3=BCsweg vi= a internals : > >> Hi >> >> Tim D=C3=BCsterhus and I have created an RFC to add new methods that sol= ve >> 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 othe= r > languages? > > Regards > Go Kudo > Sorry, I did not read the updated RFC. The latitude and longitude samples were very clear and even my limited understanding of floating point numbers helped me understand why they were necessary. I am so far in favor of this RFC and positive about both features. I also agree that as a member of the maintainer I will maintain it properly. Thank you for your very coherent writing and implementation. Best Regards Go Kudo --00000000000051b0a705ecbb0ce1--