Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81713 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8762 invoked from network); 3 Feb 2015 14:15:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2015 14:15:15 -0000 Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.172 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.212.172 mail-wi0-f172.google.com Received: from [209.85.212.172] ([209.85.212.172:54085] helo=mail-wi0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 83/8E-20608-2F7D0D45 for ; Tue, 03 Feb 2015 09:15:14 -0500 Received: by mail-wi0-f172.google.com with SMTP id h11so24612609wiw.5 for ; Tue, 03 Feb 2015 06:15:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=VB/UorPTA3kFSONEc5rhkEJdFVlPwPkJlrbhZJDNHN0=; b=jVKNyG3PW5IK0PjtVgElvyKz8+7xpsdHnQgkhOERlJaHOftmjfS0ZLzx4INzz6BPNM wZfgH2791yFohpESJ8xfeKxmjOXeinF18nVCu41T96lEwclezCscbTgJEYRU5NrPm9Ll XOCkWucQkW3nzPeap4byqH74ouDBceofBG1Ubry9/N4fW/6s/8sLgLvM0lcWwfxGoU4o YTlHwNWdiC0ZBnMDpX8wiMQR+Za5nQ+DgABQl48GCPz7+cqoAIh9QQuTu0VxifQ6R+66 ogi/GGoK2IRUCvAYWjRku1bgcudV+HOFBI2b4pBdk4u0isDCEQRw9ikZ8QKgBJofZTjZ Xwsw== MIME-Version: 1.0 X-Received: by 10.194.239.72 with SMTP id vq8mr45080172wjc.110.1422972911499; Tue, 03 Feb 2015 06:15:11 -0800 (PST) Received: by 10.216.50.139 with HTTP; Tue, 3 Feb 2015 06:15:11 -0800 (PST) In-Reply-To: <6E8210CD-4BA3-4694-8482-4803F562D77C@ajf.me> References: <1D8DC03D-0E2C-494C-9ED2-244334F57D8A@ajf.me> <6E8210CD-4BA3-4694-8482-4803F562D77C@ajf.me> Date: Tue, 3 Feb 2015 14:15:11 +0000 Message-ID: To: Andrea Faulds Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Zero-fill right shift. From: leight@gmail.com (Leigh) On 3 February 2015 at 13:54, Andrea Faulds wrote: > Hi Leigh, > >> 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. > > 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_LON= G 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, a= nd crucially, you can=E2=80=99t distinguish them from userland. Aside from the breaks to some binary ops and once you hit the promotion breakpoint working with that integer is a lot slower. Lets not derail this thread into a discussion about why I dislike bigints.