Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123007 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id BE0711A009C for ; Sun, 7 Apr 2024 00:32:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1712449994; bh=tXSesMwsQml82b4XwfZ995Agp4/Het/VITytfA4qxg0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=D/pO8qHQ6s0wy7b1XXH9KVQr0yyK640prbg4JZQtkM+CNE/vhgbUug6rqa0ke5TsT EQmorW3y4XATFfWiDTk3SzhOelnw0AxSFolZ3EmCz6e1DUglxgynNKAmFeYqOF7CFz jHysQvIWcAqzq2Moboomi9ej1dhf1iL8vujgpcKIaHkJh3D+ZcJj9i1hurVzDUKkpx ORhZf3V8ShkLzgrJCyJX6hEJ2iqcs0Xiy/V+qjnDrBI2RE8WLgRqh+VIP+FJ1Z5Ln5 LBv9ZgNE8qNblmcx/zyIKEwEek5GZ4q4VtKTcryMi5osQOid8xwzIcDmXgsUr9oHpy e/atSWwscRIQw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 80BE0180061 for ; Sun, 7 Apr 2024 00:33:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) (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 ; Sun, 7 Apr 2024 00:33:13 +0000 (UTC) Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-6ea9a60f7f5so2861731b3a.3 for ; Sat, 06 Apr 2024 17:32:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712449961; x=1713054761; 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=NLCBQFl8qWqYRiWDSeworPGjcyJbGLoRkZXO2VcCrSU=; b=VrbKONVxlysmykXnm2D5BAwpH69k0b+bjJFv8h9cjQmju15I+16OoS5HUXbdI9HUGO VpORCgSHCwbM0uZORXKbxiHSdgybIPbtwUYgteluhj5KvH1y92j7wn4Gl1bzq/x+5AwW gysXU9HmoMZZ9qgrodafAYTbMT19BkmkYBvwGyr1FsByZlFZ7f2TI+vJmkylDz3MIfic n3xCiqKskuKfHGzYX8eSZoZZ9m2zsB6bckvKkrOdj5S9DFbKwMqP6M7i772Ad9Y7eY09 R/oSWivCTqWmurzDgNPwFDFtx4h9qhGXH/+94PYWpXyNnueK8T0+jeNTHCWTfwjAx102 rueA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712449961; x=1713054761; 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=NLCBQFl8qWqYRiWDSeworPGjcyJbGLoRkZXO2VcCrSU=; b=Qy7MGUfnnWx4hiok0BI+1yqPBaZWS65hH9QmUI4bdlh9KFg9LRXBotqXd55Vnqcd66 aWovA4ip3tQTQPcKay7lPnJiYzIw2ENDziYUnrKJaujYT3olC4vzTIN14XrMwIWo7DZT rVkF0d/yxZvEWsW9H8HKBWNK932sOSJ2hbZqSe7x7pR7XYMcGtidQ2Xx59nO1X5EUf4p nfovHHebATgZ2xvHcIdJ22Z1lkcuoMbTSFbm98InqLKl2cJ/7dh/kSiTnHRduzEq2+cx TL38QppCYcAO3ftbldwwE7GdckD+ApoXOvh0jEv0RCa+mST+c1QXMj3/CXndI/HpneDs z56w== X-Gm-Message-State: AOJu0YzO3Yv6zKqze1XudLtSUfooG6A8WjHKKTpHqiDrlAQMT4I9rIJb vDi9v6IMx3HcBAMkeZ03oJiknDFBeb+JO3ULvJpF2Cbv4/rg4XSjOGnsbct6kVs3+dhs4wqFmv5 ZosHtciXbEnXhZYhcsvA7DWsX/D/mjWPt X-Google-Smtp-Source: AGHT+IG6cPoYfAPgXeprY3lC5VCwEIowwiV9EgnI5Vo7PKEHO/K2rgmpsR7xzLKczJfRnF8kgghzJPXQseJbkdpDxUo= X-Received: by 2002:a05:6a20:9689:b0:1a3:5c60:112a with SMTP id hp9-20020a056a20968900b001a35c60112amr4382649pzc.36.1712449961411; Sat, 06 Apr 2024 17:32:41 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: <37e79b28-ac4d-4413-9df8-54a123dfd1e3@redmagic.org.uk> In-Reply-To: <37e79b28-ac4d-4413-9df8-54a123dfd1e3@redmagic.org.uk> Date: Sat, 6 Apr 2024 17:32:29 -0700 Message-ID: Subject: Re: [PHP-DEV] Native decimal scalar support and object types in BcMath - do we want both? To: Barney Laurance Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000a55add061576d398" From: jordan.ledoux@gmail.com (Jordan LeDoux) --000000000000a55add061576d398 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Apr 6, 2024 at 4:07=E2=80=AFAM Barney Laurance wrote: > Hello, > > There are currently two proposals being discussed - *native decimal > scalar type support* and *Support object type in BCMath* > > I've been getting involved in the discussion for the BCMath proposal, but > not paying as much attention to the native decimal thread. > > But these seem like very similar things, so I'm wondering whether or not > it makes sense to do both at once. They both seem like ways to represent > and calculate with arbitrary precision decimal numbers. > > I'm not sure if they have distinct use cases. Are there some tasks where > people would likely prefer one, and different tasks where they would pref= er > the other? Or should PHP internals choose just one of these options inste= ad > of potentially releasing both? It doesn't seem like a good idea to have t= wo > directly competing features for the same use case in one PHP release, > unless there's a reason to favor each one in a different situation. > > Best wishes, > > Barney > The scalar arbitrary precision discussion is for an implementation that would be in the range of 100x to 1000x faster than BCMath. No matter what improvements are made to BCMath, there will still be strong arguments for it, and until someone actually puts together an RFC, the BCMath library is the only thing around. Internals is just volunteers. The people working on BCMath are doing that because they want to, the people working on scalar decimal stuff are doing that because they want to, and there's no project planning to tell one group to stop. That's not how internals works (to the extent it works). Jordan --000000000000a55add061576d398 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Sat, Apr 6, 2024 at 4:07=E2=80=AFA= M Barney Laurance <barney@redm= agic.org.uk> wrote:
=20 =20 =20

Hello,

There are currently two proposals being discussed - native decimal scalar type support and Support object type in BCMath

I've been getting involved in the discussion for the BCMath proposal, but not paying as much attention to the native decimal thread.

But these seem like very similar things, so I'm wondering whether or not it makes sense to do both at once. They both seem like ways to represent and calculate with arbitrary precision decimal numbers.

I'm not sure if they have distinct use cases. Are there some task= s where people would likely prefer one, and different tasks where they would prefer the other? Or should PHP internals choose just one of these options instead of potentially releasing both? It doesn't seem like a good idea to have two directly competing features for the same use case in one PHP release, unless there's a reason to favor each one in a different situation.

Best wishes,

Barney


The scalar arbit= rary precision discussion is for an implementation that would be in the ran= ge of 100x to 1000x faster than BCMath. No matter what improvements are mad= e to BCMath, there will still be strong arguments for it, and until someone= actually puts together an RFC, the BCMath library is the only thing around= .

Internals is just volunteers. The people working= on BCMath are doing that because they want to, the people working on scala= r decimal stuff are doing that because they want to, and there's no pro= ject planning to tell one group to stop. That's not how internals works= (to the extent it works).

Jordan
--000000000000a55add061576d398--