Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78181 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98202 invoked from network); 21 Oct 2014 08:35:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Oct 2014 08:35:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.214.182 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.214.182 mail-ob0-f182.google.com Received: from [209.85.214.182] ([209.85.214.182:36573] helo=mail-ob0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 58/82-19409-8CA16445 for ; Tue, 21 Oct 2014 04:35:21 -0400 Received: by mail-ob0-f182.google.com with SMTP id uy5so589583obc.13 for ; Tue, 21 Oct 2014 01:35:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=rQE9YLBbp1Paee0PxbjUqp/cW2KTsI2UoXtoF0sPHaE=; b=lm8Q029IB33YVecf1XjMAbIhL5N+/3mDZvSC8hLv7JBbDIqwa2h+Le1j9Kj0gleCbf zezNWriclCDfzdLDOzRb18wMmLaTIzc4ktCMvbroPAu/SlfwVkgfnh/foSXiM8gU3iHi UkL+IHZfpmojBlrTTciRjaioi25b5oxXl96ZHllEr4gt/OZTPTq4GkATR+OVPuPXkBi5 9UkKx9qsDfTGdqU7sx7Atn5hVn3oHs3OL8q125zeFasRq2Gfj9CtVKiX5rnb3MPlj/Iq jCPqae2YRglRMQZ7zE6j3gjQa1IGbsmp0PJpBd9kdZ7way7K8Sv5Dn9h4VEhPFKmUCIc sJdw== X-Gm-Message-State: ALoCoQmJkNXXmGit5DBwfeL9gCiZv1y7bOojBD1TQO2cYZG/IqU34EHKQAFQu0QXW6MqDzE9IaFrQ+bKsd1MXQEmRXOcESbkhydmH4opIa+Fhu1xKEmQcrG3eFX3JyZLjahlPGCKxU41RSRGTcvi0dV1x7tZeb04qg== MIME-Version: 1.0 X-Received: by 10.60.173.39 with SMTP id bh7mr28640275oec.32.1413880517945; Tue, 21 Oct 2014 01:35:17 -0700 (PDT) Received: by 10.60.70.41 with HTTP; Tue, 21 Oct 2014 01:35:17 -0700 (PDT) In-Reply-To: <8C47FA53-0964-49C0-963C-332A936348A5@ajf.me> References: <8C47FA53-0964-49C0-963C-332A936348A5@ajf.me> Date: Tue, 21 Oct 2014 12:35:17 +0400 Message-ID: To: Andrea Faulds Cc: PHP Internals Content-Type: multipart/alternative; boundary=047d7bd6ba9a07050a0505eab6f8 Subject: Re: [PHP-DEV] [RFC] Big Integer Support From: dmitry@zend.com (Dmitry Stogov) --047d7bd6ba9a07050a0505eab6f8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Andrea, Why don't you use the ability of operator overloading? (it's in the engine since 5.6). BIGINT don't have to be completely transparent. If user would like to work with BIGINT, let them crate PHP objects explicitly and then use operator overloading. e.g. Your solution would allows writing the same without BIGINT, but not for free. I expect, it'll make some slowdown for all PHP scripts, independently, if they use BIGINT or not. I'll try to take a deeper look into the patch later... Could you provide some benchmark results, comparing your patch with master? Thanks. Dmitry. On Sat, Oct 11, 2014 at 1:33 AM, Andrea Faulds wrote: > Good evening, > > Since I don=E2=80=99t want this to languish as a =E2=80=98Draft=E2=80=99 = forever, despite the > patch being incomplete, I am finally putting the Big Integer Support RFC > =E2=80=9CUnder Discussion=E2=80=9D. > > The RFC can be found here: https://wiki.php.net/rfc/bigint > > The patch is, as I mentioned, incomplete. Additionally, there are quite a > few matters left to be decided (see Open Questions). However, I think I > should put this formally under discussion now. > > Any help with the patch (largely just updating extensions and the > mountains of tests these changes break, though later I will need to deal > with opcache) would be appreciated. > > Thanks! > -- > Andrea Faulds > http://ajf.me/ > > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --047d7bd6ba9a07050a0505eab6f8--