Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85085 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3714 invoked from network); 16 Mar 2015 20:04:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Mar 2015 20:04:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=ppetermann80@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ppetermann80@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.47 as permitted sender) X-PHP-List-Original-Sender: ppetermann80@gmail.com X-Host-Fingerprint: 74.125.82.47 mail-wg0-f47.google.com Received: from [74.125.82.47] ([74.125.82.47:33396] helo=mail-wg0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F4/7A-34940-14737055 for ; Mon, 16 Mar 2015 15:04:18 -0500 Received: by wgbcc7 with SMTP id cc7so48998094wgb.0 for ; Mon, 16 Mar 2015 13:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type:subject:from:date:to :message-id; bh=RxEx1fysd3sTPu+pdI0tFJpKIyl+dkYjb0VYZAwdNkY=; b=cAi1/3uZrHvgXXE/5rCK75VBZDrObr/0IqrAXMtLqDa3t2rSC9q53gbwDiNSwGMyFo 8SkAwiGiB6NZUXorgEC5rfgUcASNlm0VuJ8qvhahHsGpZ0BmjKTscT9GfB3IoAfmIf5n QAtyW70J8vhPpOhbpcQMg9RAwQpjL+srqhrjnayPnWa3uVOGWZ4YtGQKRRJ3dWVnzQN6 RwHyooTwL5JfPHeDKdIQbw4NMGTOVGeH9kihSl57+Hsd+Uw9qi91YYl38PRC2PqLcl9N pgFOmBYSLR2zm14KNz7EPWHiC+YMwyT2nT2usyTdOfAmwxkoA5LYl9xfdEw6tP4MMvKj 0HLA== X-Received: by 10.180.171.35 with SMTP id ar3mr127307340wic.24.1426536254449; Mon, 16 Mar 2015 13:04:14 -0700 (PDT) Received: from [10.240.250.145] ([46.115.142.250]) by mx.google.com with ESMTPSA id bd1sm16774177wib.13.2015.03.16.13.04.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Mar 2015 13:04:13 -0700 (PDT) User-Agent: K-9 Mail for Android In-Reply-To: <35.09.03331.B7BD6055@pb1.pair.com> References: <35.09.03331.B7BD6055@pb1.pair.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Date: Mon, 16 Mar 2015 21:04:04 +0100 To: Pascal Chevrel ,internals@lists.php.net Message-ID: Subject: Re: [PHP-DEV] About declare(strict_types = 1) From: ppetermann80@gmail.com (Peter Petermann) On March 16, 2015 2:32:39 PM GMT+01:00, Pascal Chevrel wrote: >It's too late, Bob's Basic STH missed the schedule for PHP 7, it was >proposed way too late and the coercive STH RFC has just zero chance to >pass, it's too much of a BC break for everybody. The dual mode STH is >the only chance to have something for PHP 7 and remain competitive with Rushing through with an controversial solution, because others didn't make a date seems like such a good plan. No one is dying if STH doesn't make it into 7.0.0. >HHVM, Node.js… that we see people switch to. Baidu switched to HHVM, >Wikipedia too, in my country big names switched from PHP to node.js and >that was not just for performance reasons, it was also for the >features. hhvm offers an alternative php implementation that tries to be compatible, hack(lang) is where you find the differences you are looking for. That said, I don't see the sky falling if people who need a specific feature use another tool. The adoption rate of hack is tiny. As for nodejs, nodejs is a framework, not a language. Javascript does not offer type hints. And if you look at how to compete with nodejs, then what you should be looking at is what needs to be improved with php to allow frameworks like reactphp to work better. How to improve support for non-blocking io. And I dunno, but I don't think that "per file" settings make the callback-heavy code that's typical for non-blocking stuff better, in fact I'm convinced it will add an additional layer of headache. >Zeev himself admitted that we need something for PHP 7. If it is THAT important for PHP 7 (and IMHO it's not) then maybe the timeline for PHP 7 needs to be reevaluated, to make sure all dependencies are the best option and not something rushed in because of ::conflict::. >Personnally, I think the dual mode is a very clever way to please all >PHP developpers, those that want to use weak typing, those that want to >use stronger typing and those like me that would continue to use weak >typing because it's convenient but would be happy to use STH on very >specific parts of his code that would benefit from it. Personally I think STH is a nice to have, and not worth the confusion that per-file declares create. I'd rather see no STH, or either one of the two ways than dual mode. regards, PP