Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103281 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 84367 invoked from network); 29 Sep 2018 21:10:34 -0000 Received: from unknown (HELO mail-vs1-f47.google.com) (209.85.217.47) by pb1.pair.com with SMTP; 29 Sep 2018 21:10:34 -0000 Received: by mail-vs1-f47.google.com with SMTP id z130-v6so5346518vsc.7 for ; Sat, 29 Sep 2018 10:19:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OMUIvElKHWSRH2dq5IiAboLIYajnMAeSyeGr2DH9R00=; b=kQkQnZW9UagUchTPJov87obRadRb6rvJR1NKebWFjYlSK77+r96ntpdFa+XzXAHss0 58PpFsaUvIhx6IS9BWu1oTmsPmQTFot2jGxKdH9ac8JSRx6gr3vzWJcHJTvD7pTEEGB6 4lYvGwa+KigXrSrramVK0XTCqNOFIotLT1rrhwmN8ZNR7qfgGhO/foka/awEWfOyBTU+ 1fuxCAcnl7/j4ZfqMvPDOS0zHVY5uDFs00Lh3YLpMZ7R9al46VcDnyP3A/2C8DmNUF1G XEbONWamYsHrndU7lYJLI01bWCqeYi+q1RGkPmVkhoDEdgTfGhXNU0lf1FAQpMS0uyB0 eGJA== X-Gm-Message-State: ABuFfoiu4ZOIOWBQgbk7tDKbkI2BUR/icN9u3c3Zc0eaUMU2tbRAFUBW gf1tl5dnuzXIXchC+FIqukj+J8ej6KU= X-Google-Smtp-Source: ACcGV61DVz9lgXKkGaDo5pXgFBe/cHngHrvFx2JHfxI6DPUJtdxvKb2LI8SfYwOWJd2eML3rHh4qhg== X-Received: by 2002:a67:5b53:: with SMTP id p80-v6mr1466470vsb.62.1538241569193; Sat, 29 Sep 2018 10:19:29 -0700 (PDT) Received: from mail-vk1-f180.google.com (mail-vk1-f180.google.com. [209.85.221.180]) by smtp.gmail.com with ESMTPSA id c2-v6sm851166uao.2.2018.09.29.10.19.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Sep 2018 10:19:28 -0700 (PDT) Received: by mail-vk1-f180.google.com with SMTP id q184-v6so2115488vke.7 for ; Sat, 29 Sep 2018 10:19:28 -0700 (PDT) X-Received: by 2002:a1f:9704:: with SMTP id z4-v6mr1467801vkd.3.1538241568597; Sat, 29 Sep 2018 10:19:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 29 Sep 2018 10:19:18 -0700 X-Gmail-Original-Message-ID: Message-ID: To: Albert Casademont Cc: internals@lists.php.net, pollita@php.net Content-Type: multipart/alternative; boundary="000000000000466cf7057705c6a9" Subject: Re: [PHP-DEV] Extension: arbitrary precision decimal arithmetic in PHP 7 From: rtheunissen@php.net (Rudi Theunissen) --000000000000466cf7057705c6a9 Content-Type: text/plain; charset="UTF-8" Yes absolutely, I haven't written tests or documentation or a release plan yet though. I started working on this less than a week ago so just looking for feedback and validation from internals before I spend time wrapping it up. On Sat, Sep 29, 2018, 10:17 Albert Casademont wrote: > Looks promising! Could it be added to PECL maybe? That would make it > easier for people to test :D > > On Sat, 29 Sep 2018 at 17:46, Rudi Theunissen wrote: > >> Actually yes! You mentioned it to me 5 months ago in a thread on Reddit: >> >> https://www.reddit.com/r/PHP/comments/8fpwi4/if_php_had_a_native_decimal_type_would_you_use_it/dy6zon9/ >> >> I'll take a close look at GMPi today and compare them objectively. :) >> >> On Sat, Sep 29, 2018 at 7:20 AM Sara Golemon wrote: >> >> > On Fri, Sep 28, 2018 at 6:06 PM Rudi Theunissen >> > wrote: >> > > I've been working on adding arbitrary precision decimal support as an >> > > alternative to *bcmath. *I have created an extension based on >> > *mpdecimal*, >> > > which is what Python 3's decimal module is also based on. I haven't >> > > released or broadcast this project yet, because I wanted to discuss >> the >> > API >> > > and implementation with internals first. >> > > >> > Have you looked at GMPi ? https://github.com/sgolemon/gmpi >> > It's a replacement for GMP (which includes floating point and an OOP >> > interface). >> > >> > -Sara >> > >> > --000000000000466cf7057705c6a9--