Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68098 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52153 invoked from network); 11 Jul 2013 20:27:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jul 2013 20:27:28 -0000 Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.192.178 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.192.178 mail-pd0-f178.google.com Received: from [209.85.192.178] ([209.85.192.178:49178] helo=mail-pd0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/25-03322-F251FD15 for ; Thu, 11 Jul 2013 16:27:27 -0400 Received: by mail-pd0-f178.google.com with SMTP id w11so7885231pde.37 for ; Thu, 11 Jul 2013 13:27:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=tBpm3uCiq01NUGAqpzrxG68qJOCTXgUCmCDt9siwtIE=; b=mFQ7105lvViopX9vdMCBFJIvZ5kZIHlJFxmfzhOzBwfQFiy9XrwHoGtm8Vp64JTaWg 1LfHm3iyDIB5vKt5xGBeBOblLqn0D1FAUrgwG8sk5fGKisSm8Ku2k1gRhtbVCQF21p0Z YgTzSWlhePbEM23MuL9/sMHw/+vlRgcz2Bic3R+1xhCs4Ab5H6xzHrR79KyNHmtvB1es AdiHFfGlT3/sz643wlpLXNQX4d51eKfunB91Ebf1hFshIpzbEjZbCQZV2GGBlwMkPK8i 0PknzI1s4n9B08qHj3RNe3M2olCzMXG06l5C8gPJWZP1Zw5HxZgB9CG9OswqB5i9101W Q6+Q== MIME-Version: 1.0 X-Received: by 10.68.209.196 with SMTP id mo4mr38422089pbc.114.1373574444378; Thu, 11 Jul 2013 13:27:24 -0700 (PDT) Sender: php@golemon.com Received: by 10.70.132.105 with HTTP; Thu, 11 Jul 2013 13:27:24 -0700 (PDT) X-Originating-IP: [2620:0:1cfe:18:22c9:d0ff:fe87:295b] In-Reply-To: <51DF0CDD.7060108@sugarcrm.com> References: <1372258135.2410.22.camel@guybrush> <51DF0CDD.7060108@sugarcrm.com> Date: Thu, 11 Jul 2013 13:27:24 -0700 X-Google-Sender-Auth: xVLAw7PsoHVEHTVFfDQNbdNXNjk Message-ID: To: Stas Malyshev Cc: Florin Patan , "RQuadling@gmail.com" , PHP internals Content-Type: multipart/alternative; boundary=047d7b111eadd47d2204e142383f X-Gm-Message-State: ALoCoQlY9OtSWvOXAx+KaDupvJ1+WzlczEMztYVrca3F5y2rNToVV317HhFmos1Ulw9Isp8jKcxm Subject: Re: [PHP-DEV] Request for comments - new PHP feature: return typing From: pollita@php.net (Sara Golemon) --047d7b111eadd47d2204e142383f Content-Type: text/plain; charset=ISO-8859-1 > While HHVM is a very interesting project, their use case is pretty > specific and narrow, and, as I understand, connected to a single > application (albeit running huge traffic numbers). So I'm not sure > copying whatever they do is necessarily good for PHP as a whole. HHVM > case is basically static compilation of monolithic application, as far > as I remember, which is not how PHP is usually run. It is true that such > mode negates many arguments against static typing, but it negates them > only for specific narrow case of HHVM, not for PHP as a whole. > Incorrect on a few points: 1) HHVM isn't just running FB. A number of sites have either already started using HHVM, or intend to soon. 2) The "static compilation" description is grossly outdated information. HHVM behaves the same way as PHP when it comes to running an application. There's an optional "precompile to bytecode" step, but that's a minor optimization overall. In general, you just point it at your webroot and it compiles to bytecode on demand (just like PHP) caches the compiled bytecode (just like APC or ZO+), and JITs to machine code as needed. 3) We mitigate the arguments against strict typing in other ways than you think, evidently. :) I won't suggest that PHP should follow HHVM, if anything I'll usually (and have frequently) rallied for the other way around. In this case, however, as with Generators, I think that we should endeavor to keep the implementations close together by the most appropriate means. I don't want two versions of PHP syntax. -Sara --047d7b111eadd47d2204e142383f--