Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122009 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 43822 invoked from network); 15 Dec 2023 20:59:39 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Dec 2023 20:59:39 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 340BD180040 for ; Fri, 15 Dec 2023 12:59:57 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-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,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com [209.85.210.54]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 15 Dec 2023 12:59:53 -0800 (PST) Received: by mail-ot1-f54.google.com with SMTP id 46e09a7af769-6d855efb920so902935a34.1 for ; Fri, 15 Dec 2023 12:59:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702673974; x=1703278774; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=TiysYGiTwP+AcTVxwtNNoMgoAe5d8m9N0fyErFU3PoQ=; b=BPhsD1vcG+7V2rt5wSc6cPgF4FhoQI0+xkWw/51tu3BXsP/wVG+zvQayAj5xe4YVSX cEm3hjuT4XCb9O0qyG8M/0AJSr6j0nZ0tIvVeAQNA+/RAOynsZy5aCrWMAMmDBPqbdEf UlyXg1Wri0v80QRyQx+Sgq8eRmoSOl/yW36kyIpX3m5LfePQyDd7kJG85/bTufaV0zr3 Q8yXl9VhjPrs/gQoZArMuw2zJkd6H6/VwyDb1JCPXynwalkoza9PMscSXeqVUMfl4RQf U2sKQETJ5vc1OaNy/Y6zsZ9oyM8XVbCbhMAP6MfpqGA3m35sGWoK4vs9WmMhITybzvlZ rCCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702673974; x=1703278774; h=cc: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=TiysYGiTwP+AcTVxwtNNoMgoAe5d8m9N0fyErFU3PoQ=; b=d/EDlrU2wmsu0nZa7PtNEJqVVlrmnMcYUNT+j1endwr7cUEn6H3uPswN1BrJZHgw3c QSaZgO9Sud/2O2oAg+DkjQSAOd2/tHSX0ezQcRo1CkhXNMEu1ezO0JvljGcPlojep3DX z6uR3ubThR2TEoOlPPQAgPwHGRRrDRz/YOT3ofD9lJf42DxxoTFvbvxcu0Jk65uRFv0r klELdo6jtmkFDKih1ywXdckE+SXuOIe0KK8lJo5uBtlnx+GUndLeHuyVbMCT/n6D8OJ5 F6izfUnCtNsxqgfhcXsj5RfLXUuxSugRna797fraFgI8ozvfslDZ3Ucyg3s7XRxvdqUR tmZg== X-Gm-Message-State: AOJu0YwP+ixhKVX1+j3tGZMoaNz+tG/RlXHGrp1FGugh/joXgxpBRF+w 8ec+W045euMW2MuLuPcKYDE8SjvW8tFV692bwyI= X-Google-Smtp-Source: AGHT+IFD9Wun9GxVgmtD5fsPhYLfNwymkKL/dwAEpNfC1bcJYw1vPcmeoFcp9p71BowVhFUXsVxNVLoJnOTT+f4vGMA= X-Received: by 2002:a05:6830:349b:b0:6da:516a:d3e1 with SMTP id c27-20020a056830349b00b006da516ad3e1mr1790379otu.35.1702673974419; Fri, 15 Dec 2023 12:59:34 -0800 (PST) MIME-Version: 1.0 References: <18c42fdbb30.2831.17a3710df6d58f02ca570cc47e197a63@interi.co> In-Reply-To: Date: Fri, 15 Dec 2023 22:58:57 +0200 Message-ID: To: Jordan LeDoux Cc: Robert Landers , "G. P. B." , Alexander Pravdin , internals@lists.php.net Content-Type: multipart/alternative; boundary="00000000000069e352060c92ad44" Subject: Re: [PHP-DEV] Proposal: Arbitrary precision native scalar type From: arvids.godjuks@gmail.com (Arvids Godjuks) --00000000000069e352060c92ad44 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 15 Dec 2023 at 22:32, Jordan LeDoux wrote= : > On Fri, Dec 15, 2023 at 12:14=E2=80=AFAM Robert Landers > wrote: > > > > > nobody will likely ever try this again, at least in the foreseeable > > future. With comments like that, there is simply no way forward. > > There's no convincing (at least via email) and by that point, it's too > > late anyway, they already voted but didn't even show up for the > > discussion that happened for weeks. Literally wasting everyone's time. > > The only way we'd ever get something like this passed is if someone > > proposes an RFC that prevents people from voting based on > > political/personal reasons and restricts voting "no" to technical > > reasons only; or some voters reopen one of the original RFC's for a > > revote and leave it in the "Pending Implementation" section as needing > > an implementation. > > > > The fact that people can and do vote "no" for no other reason than > > they "don't like it" or they "don't want to use it" leaves a bad taste > > in my mouth. > > > > Okay, so I'm probably the most affected by this, considering we're > discussing my proposal which was declined and I spent over 400 hours of > work on it prior to the vote. So please understand where I'm coming from > when I say this: I firmly believe that people should be allowed to vote n= o > on an RFC simply because they feel that it "doesn't belong in PHP". That = is > a voter taking a position on what the language is for, how it should be > designed from a more broad perspective, and I think it's important to hav= e > that in order to maintain a productive language that does its job well. > > The main issue I have discovered through this experience is that some > people have difficulty or lack the experience necessary to separate an > opinion about the language design philosophy from what would be personall= y > useful to *them*. That is a problem, but it's a problem that is just part > of working collaboratively with humans. It's not unique to this group, to > PHP, or to this situation. > > The reason, for everyone else reading, that this is relevant to the curre= nt > discussion about a scalar decimal type is that this is likely to face som= e > similar pushback. This email will go out to hundreds of people, but only = a > few are going to reply, and most of the people currently participating in > this discussion do not have voting rights, so this RFC if it's worked on > will have to be developed without the feedback of the people who actually > decide whether it goes into the language. > > A scalar decimal type will be extremely useful for certain types of > applications, foundationally critical to other types of applications, and > completely unused for others. A big part of writing this RFC would be > explaining to the people who do not work on any applications that benefit > why it would be good to include it in the language anyway. > > A scalar decimal type would create a hard dependency on libmpdec, which I > also expect to be something that needs to be addressed. MPDec is licensed > under the Simplified BSD License. I *think* it could be bundled if needed= , > but it couldn't be relicensed with the PHP License itself. > > Jordan > Jordan has highlighted good points that probably should be addressed and in general, I think, this project will take a while, so I would settle in for the long haul here and think things through and reach out to people who actively work and maintain the PHP core. There have been recent instances of people fitting in and passing things and then regretting the way it was done (*cought* readonly rfc *cought* ). As for the idea itself - I fully support it. A decimal type would be invaluable in quite a lot of places and a lot of PHP apps are handling money and other precise numbers that really would benefit from a proper decimal type (right now in most cases people just do it with integers or use libraries like brick/money, but that's only a subset covered). This is really adding a new type into the engine, so this is going to be a big undertaking and this probably will require the work to go into PHP 9 because extensions probably are going to be affected and will need to be upgraded to handle the new type. Especially PDO and database drivers. This is far from a small project. --=20 Arv=C4=ABds Godjuks +371 26 851 664 arvids.godjuks@gmail.com Telegram: @psihius https://t.me/psihius --00000000000069e352060c92ad44--