Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122006 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 95358 invoked from network); 15 Dec 2023 01:18:11 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Dec 2023 01:18:11 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 96702180031 for ; Thu, 14 Dec 2023 17:18:28 -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-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) (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 ; Thu, 14 Dec 2023 17:18:28 -0800 (PST) Received: by mail-pj1-f53.google.com with SMTP id 98e67ed59e1d1-28b06be7cf6so28258a91.2 for ; Thu, 14 Dec 2023 17:18:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702603089; x=1703207889; 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=yZ2EULOLsnxTA84F8DtvqXnlvOZ8EnB/sW1+nmdD/fA=; b=QZeEGZu58A3H/Qc8Cktdq21eTmSzRYEpyoXKiW4ruti7kSoPoSsLXQgzqHaeXWuM6X 6ZBu3dK1db51YP1Baxp0kmA1ceNMuMXrMkMkhgvchHFqvrRgaVjkK2mudGVkuuRayzVH n2/H3zJEPrx4U6k7oopyUJGbFc73Jtxqfnzbts5zt0amJIH4w8hRzml2XxeasEwVim7p bRW7Hi4PC8/yM2qaZ1mLqV9DGKRyvL/NXd9fw13eOGySLJ4xSiZPf8zTrKjbSzS8KlrR pepyS754efTpCA0Czq30oRmhZsZsmzpPEYxsMPwp0jzm/nF3Keah3D39Nph4UuGJY1sp lDtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702603089; x=1703207889; 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=yZ2EULOLsnxTA84F8DtvqXnlvOZ8EnB/sW1+nmdD/fA=; b=pkV3KEzsNZ9bsvtRbNu/mgaizCC2hSUQR0N2P4QQ+qccVpBy+tN34cvfEgndA+tAYH 1ESrGUMlGYOWTCUsJRw/Pqk9G1b7ktZHqcvVi+SIHOZkBZDVqT+Er6tusq4q1zXYF9JN xxlhPGrhuZMcZ0Qy7ZESXlSkmbUMIotkDjAU41do6XiEpX2s8UKpjz0EMbmxysjV3prW fstVT1SQLCpHGNjp7Mr1LpN6dii5TdI17zKp/A7ULKXJDKDXU/H0OkqCe/Qjw44pRCzK EIikqJpqiN3iIc3blCz5FlfIXmFJJoaiF9GfVOJ51H67IXSeJw7Vbuct96r7SmJVGhfo skYA== X-Gm-Message-State: AOJu0Ywcvr08xeHepx47UH07yd3gFfzryG8Y2RKVElbrGii6p2NZVTrV uPpbguAog+Lz6yA7V0M7vQaBpvEs78SLpo6sRB5dJTAwrpA= X-Google-Smtp-Source: AGHT+IEAQSoqhOqXZzLBwBqsL8mthnxsz+4UiWQvqrd2MbjV7natdw5PBye6BQwsLe0rGp8KZ1FF9jfrhnzNE029lYE= X-Received: by 2002:a17:90a:2a0e:b0:28b:11bc:af10 with SMTP id i14-20020a17090a2a0e00b0028b11bcaf10mr899264pjd.10.1702603088890; Thu, 14 Dec 2023 17:18:08 -0800 (PST) MIME-Version: 1.0 References: <18c42fdbb30.2831.17a3710df6d58f02ca570cc47e197a63@interi.co> <21E561F4-8893-4825-A2A9-15B305376864@koalephant.com> In-Reply-To: Date: Fri, 15 Dec 2023 01:17:57 +0000 Message-ID: To: Alexander Pravdin Cc: Robert Landers , Stephen Reay , internals@lists.php.net Content-Type: multipart/alternative; boundary="0000000000004e8fb5060c822c68" Subject: Re: [PHP-DEV] Proposal: Arbitrary precision native scalar type From: george.banyard@gmail.com ("G. P. B.") --0000000000004e8fb5060c822c68 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 13 Dec 2023 at 09:29, Alexander Pravdin wrote: > On Wed, Dec 13, 2023 at 6:11=E2=80=AFPM Robert Landers > wrote: > > I just ran `apt install php8.3-decimal` and tried this: > > > > $a =3D new Decimal\Decimal("1", 2); > > $b =3D $a + $a; > > PHP Warning: Uncaught TypeError: Unsupported operand types: > > Decimal\Decimal + Decimal\Decimal in > > > > So, it appears not. > > > > I've pointed out this issue earlier in the discussion and Gina P. Banyard > has replied that this can be a PHP 8.3 bug and he will look into it. > > BTW, my main concern is that this amazing extension doesn't look like it = is > actively maintained and I'm worrying if I will be able to maintain my > projects that depend on it in the future. > Hot take, why not fund the maintainer (or someone else to fork and pick up the work) to work on this extension? It is not like most bundled extension within php-src are truly actively maintained. So why would integrating ext/decimal mean it will be maintained? Just have a look at all the XML/DOM related extensions that were riddled with bugs and unmaintained until Nils decided to pick up the work to scratch an itch. Moreover, being separate from "core" is frankly a benefit, and I very much dislike the current status of having so many bundled extensions that cannot improve at their own pace. Having extensions not be tied to php-src's release cycle means they can move more quickly, fix bugs faster, evolve more easily, etc. Just look at ext/curl, being stuck at a certain level of support for libcurl because it *must* be tied to the annual PHP release cycle. Best regards, Gina P. Banyard PS: My pronouns are she/her --0000000000004e8fb5060c822c68--