Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123013 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 1A9CD1A009C for ; Sun, 7 Apr 2024 14:02:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1712498606; bh=fE08sjmjNvFuPOJaWimphPcRDE5Dc0okUr9YdHfgTrU=; h=Date:From:To:Subject:In-Reply-To:References:From; b=FPZNScZMmgubIO/i4QF0MZLkXXAwB/i5ntyKOb6pByxMGsSdAk+BLoEK9UotrE4XF xwdOnKgtvpZNufpkwnp6dypyXI6RJCGEYXccp9rMKFcdx6QLXJg9xSRYQrbeaCXueB uRve+oxBWDohYDds8bZcRPBPXoNbiBC7lzWLSc7lqjP+y2/xOHwhfQDREZOHJVghjK 4OWzV5bigGQ726XvBzA5ksjywWBQ5/NKODnb3U17mUc7x+dTdMAP3wUeA1fXeC7duz jToHgdUU4ZryoiyI/5nHy7uaA5+OuNJhg/d5OgAX2pDiC9z3bdLE2tTuMfGqytgotw y4mCKJY8XSTwQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9BD3A1806A3 for ; Sun, 7 Apr 2024 14:03:25 +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.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, 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 fhigh8-smtp.messagingengine.com (fhigh8-smtp.messagingengine.com [103.168.172.159]) (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 14:03:24 +0000 (UTC) Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfhigh.nyi.internal (Postfix) with ESMTP id ADF98114009E for ; Sun, 7 Apr 2024 10:02:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sun, 07 Apr 2024 10:02:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1712498573; x=1712584973; bh=fE08sjmjNvFuPOJaWimphPcRDE5Dc0okUr9YdHfgTrU=; b= Zv+WH1UL412GEWHmwEmS6jenNUZCMBRSbk0jgbxkGyP3minIrSSnojAAG3ofC0Gc cB5RCaTSf1roqxpGy3lu+qlb/u7piR8eMee37sflokp0zDl5+pnSuJG9aYyn58rR YE3cTNWS2bcfRGBqnNNHru7v+Wdl7CsfwnJp+4GaKKVKPSWez3tPgj9H4EGL13uZ eVEPHSlVqWAiCcTHZblY1XapsSpscxR5cDjHQ5kCwNBU4K7GOCT7WCSpocI1s49T mlXKZRXdDZjbhVI9EcGIcCTnbodmBUhoNENwbB3/RyfGd18hVek2AMe32lbcjZAs UTgpqT6iwgGO3/72ORB76g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1712498573; x= 1712584973; bh=fE08sjmjNvFuPOJaWimphPcRDE5Dc0okUr9YdHfgTrU=; b=g qAaX0Jq69PcEdh+Vu1d+bcDfSRUpv+y4yk5IyXG4fpTMtPwrz+B+/eWoqZvEB9XT F9q5UJzescutDtRzDFHJxLL2d14KPqU103soVEWCk7G1V49K0pfod9nFwYswJY50 cQ/lSr3ibWxzSLMbk7YD2nD3HaNkXpUl6eow12AgmtGe/aVbdHbQOUuoXQi+nVjc rd67ARAwDllkcuBAwFCjUyjjvQLmIyPrY9XvCgd68wocpJzBafJq2unuQtkzKs3a gYkc7C4Dp8+r6Q6KvqwftzESgf+/34fDA3XkksFdrKfRUFQS7YYEPhVoVq3MjdIa nkwzoVEs9n0eJblttZcZA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudeggedgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvufgfjghfkfggtgfgsehtqh hmtddtreejnecuhfhrohhmpedftfhofigrnhcuvfhomhhmihhnshculgfkoffuohfrngdf uceoihhmshhophdrphhhphesrhifvggtrdgtohdruhhkqeenucggtffrrghtthgvrhhnpe ehleffteeigfevudetfedugedtudevledugeeugeelheeihfehgfdtkeevvefgleenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehimhhsohhprd hphhhpsehrfigvtgdrtghordhukh X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 7 Apr 2024 10:02:52 -0400 (EDT) Date: Sun, 07 Apr 2024 15:02:49 +0100 To: internals@lists.php.net Subject: =?US-ASCII?Q?Re=3A_=5BPHP-DEV=5D_Native_decimal_scalar_support_?= =?US-ASCII?Q?and_object_types_in_BcMath_-_do_we_want_both=3F?= User-Agent: K-9 Mail for Android In-Reply-To: References: <240D79D1-708D-45A7-9989-D28893955D6E@rwec.co.uk> Message-ID: <40553F28-2EC2-475A-BD8E-1D6517AA2A51@rwec.co.uk> Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 7 April 2024 11:44:22 BST, Saki Takamachi wrote: >I don't think the two threads can be combined because they have different= goals=2E If one side of the argument was, "How about to add BCMath?" then = perhaps we should merge the discussion=2E But BCMath already exists and the= agenda is to add an OOP API=2E > >In other words, one is about adding new features, and the other is about = improving existing features=2E While I appreciate that that was the original aim, a lot of the discussion= at the moment isn't really about BCMath at all, it's about how to define a= fixed-precision number type=2E For instance, how to specify precision and = rounding for operations like division=2E I haven't seen anywhere in the dis= cussion where the answer was "that's how it already works, and we're not ad= ding new features"=2E Is there anything in the proposal which would actually be different if it = was based on a different library, and if not, should we be designing a Numb= erInterface which multiple extensions could implement? Then Jordan's search= for a library with better performance could lead to new extensions impleme= nting that interface, even if they have portability or licensing problems t= hat make them awkward to bundle in core=2E Finally, there's the separate discussion about making a new "scalar type"= =2E As I said in a previous email, I'm not really sure what "scalar" means = in this context, so maybe "integrating the type more directly into the lang= uage" is a better description? That includes memory/copying optimisation (p= otentially linked to Ilija's work on data classes), initialisation syntax (= which could be a general feature), and accepting the type in existing funct= ions (something frequently requested for custom array-like types)=2E In other words, looking at how the efforts overlap doesn't have to mean ab= andoning one of them, it can mean finding how one can benefit the other=2E Regards, Rowan Tommins [IMSoP]