Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81714 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11349 invoked from network); 3 Feb 2015 14:36:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2015 14:36:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.200 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.200 imap1-2.ox.privateemail.com Received: from [192.64.116.200] ([192.64.116.200:33785] helo=imap1-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 15/FE-20608-5ECD0D45 for ; Tue, 03 Feb 2015 09:36:21 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 5E3B8B0008E; Tue, 3 Feb 2015 09:36:18 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap1.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap1.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5xnT6vmJBKHJ; Tue, 3 Feb 2015 09:36:18 -0500 (EST) Received: from oa-res-26-240.wireless.abdn.ac.uk (oa-res-26-240.wireless.abdn.ac.uk [137.50.26.240]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 73D84B0007B; Tue, 3 Feb 2015 09:36:17 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) In-Reply-To: Date: Tue, 3 Feb 2015 14:36:15 +0000 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <1BEEF374-D8BC-4FE2-8CE0-5EBB1AC4CF04@ajf.me> References: <1D8DC03D-0E2C-494C-9ED2-244334F57D8A@ajf.me> <6E8210CD-4BA3-4694-8482-4803F562D77C@ajf.me> To: Leigh X-Mailer: Apple Mail (2.2070.6) Subject: Re: [PHP-DEV] Zero-fill right shift. From: ajf@ajf.me (Andrea Faulds) On 3 Feb 2015, at 14:15, Leigh wrote: >=20 > On 3 February 2015 at 13:54, Andrea Faulds wrote: >> Hi Leigh, >>=20 >>> On 3 Feb 2015, at 13:51, Leigh wrote: >>> No idea. Personally I'm opposed to the bigints implementation = because >>> of the implicit type auto-promotion. >>=20 >> Huh? There=E2=80=99s no type promotion from a userland perspective, = it=E2=80=99s entirely an implementation detail. Yes, some integers may = be IS_LONG and others may be IS_BIGINT internally, but that=E2=80=99s = only for Zend Engine 3 (might change in future), the boundary point = varies by platform, and crucially, you can=E2=80=99t distinguish them = from userland. >=20 > Aside from the breaks to some binary ops I don=E2=80=99t know where you got that idea. The binary ops are = consistent - they aren=E2=80=99t constrained by register size like in = previous PHP versions, but they=E2=80=99re still completely consistent. > and once you hit the > promotion breakpoint working with that integer is a lot slower. It=E2=80=99s slower, yes, but that hardly matters. If people care so = much about performance, why use PHP? -- Andrea Faulds http://ajf.me/