Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122996 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 430571A009C for ; Sat, 6 Apr 2024 12:59:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1712408371; bh=c0eXl97O2QdajxQDKlrb/ttgW556BZ9/vDrYT6hgxUo=; h=From:Subject:Date:References:Cc:In-Reply-To:To:From; b=evscqJWyA972DqymiVQieTL8lIE037345B2bmi/H2LBj8Ehf6xWv1gKnf7bT46Mxb XHW5pp3swH4PuK/dtsiYpTFKIZKJB67bNUAf/fjy2ra/PNhx+Blr5CIcL+b3uJR6nH EDvdwP9hpe6GEixArFoYppf19A/exS9elO2BzrNA32IVdCTM+jTRSjrT9aKkucAFUW eZKX+4jF7usK4wtDM0oONz/xRcKvth2jeabuNkBdkY11U0pveuB+2+sdzWw0QpVLqn XGXjx/k3rus4sRnITjmTTAkySKcTj+zU4+ByXBOO0lTjHD90+cilmwGkXfbBTQ2euE 5tyerybXctPfA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C7A5518057E for ; Sat, 6 Apr 2024 12:59:27 +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,HTML_MESSAGE, MIME_QP_LONG_LINE,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.sakiot.com (mail.sakiot.com [160.16.227.216]) (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 ; Sat, 6 Apr 2024 12:59:25 +0000 (UTC) Received: from smtpclient.apple (unknown [117.55.37.250]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.sakiot.com (Postfix) with ESMTPSA id DDFD6401CC; Sat, 6 Apr 2024 21:58:48 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sakiot.com; s=default; t=1712408328; bh=c0eXl97O2QdajxQDKlrb/ttgW556BZ9/vDrYT6hgxUo=; h=From:Subject:Date:References:Cc:In-Reply-To:To:From; b=GeEryI4pe+tyCJtoPYbDYNHAqqCSXPVMsxEQy0HeH8muMjyUdpkJjUODxawIWpJtQ YQV2kTPlt2xS9Yr7tUGEOaAjYVj/z44DzkjzymndIMUhmDWr+xgIQxU3bL+idVusMl nbhoRFNWrKoz5t8jfUB3gO1y1FIhpDw9ymPy5uvg= Content-Type: multipart/alternative; boundary=Apple-Mail-FE257731-975F-44A8-9D32-0CEECD55A654 Content-Transfer-Encoding: 7bit Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net Mime-Version: 1.0 (1.0) Subject: Re: [PHP-DEV] Native decimal scalar support and object types in BcMath - do we want both? Date: Sat, 6 Apr 2024 21:58:36 +0900 Message-ID: References: <37e79b28-ac4d-4413-9df8-54a123dfd1e3@redmagic.org.uk> Cc: internals@lists.php.net In-Reply-To: <37e79b28-ac4d-4413-9df8-54a123dfd1e3@redmagic.org.uk> To: Barney Laurance X-Mailer: iPhone Mail (21D61) From: saki@sakiot.com (Saki Takamachi) --Apple-Mail-FE257731-975F-44A8-9D32-0CEECD55A654 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Hi Barney, > There are currently two proposals being discussed - native decimal scalar t= ype support and Support object type in BCMath >=20 > I've been getting involved in the discussion for the BCMath proposal, but n= ot paying as much attention to the native decimal thread. >=20 > But these seem like very similar things, so I'm wondering whether or not i= t makes sense to do both at once. They both seem like ways to represent and c= alculate with arbitrary precision decimal numbers. >=20 > I'm not sure if they have distinct use cases. Are there some tasks where p= eople would likely prefer one, and different tasks where they would prefer t= he other? Or should PHP internals choose just one of these options instead o= f potentially releasing both? It doesn't seem like a good idea to have two d= irectly competing features for the same use case in one PHP release, unless t= here's a reason to favor each one in a different situation. >=20 (I'm the proposer on the BCMath thread, so my opinion may be a bit biased.) The "areas" being discussed are certainly close. However, I believe that th= e goals of the proposals and the time and effort required to realize them wi= ll vary greatly. Regards. Saki= --Apple-Mail-FE257731-975F-44A8-9D32-0CEECD55A654 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi Barney,

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

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

But these seem like very similar things, so I'm wonderin= g 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 pe= ople would likely prefer one, and different tasks where they would prefer th= e 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 di= rectly competing features for the same use case in one PHP release, unless t= here's a reason to favor each one in a different situation.


(I'm the proposer on the BCMath thread, so my opinion m= ay be a bit biased.)

The "areas" being discussed ar= e certainly close.  However, I believe that the goals of the proposals a= nd the time and effort required to realize them will vary greatly.

Regards.

Saki
= --Apple-Mail-FE257731-975F-44A8-9D32-0CEECD55A654--