Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82376 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98991 invoked from network); 10 Feb 2015 12:26:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Feb 2015 12:26:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.175 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.175 mail-we0-f175.google.com Received: from [74.125.82.175] ([74.125.82.175:33517] helo=mail-we0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 43/F7-47508-119F9D45 for ; Tue, 10 Feb 2015 07:26:58 -0500 Received: by mail-we0-f175.google.com with SMTP id x3so8277190wes.6 for ; Tue, 10 Feb 2015 04:26:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=4zMh5IzqefHxc8OTww4v0sjZ7Tnuz+GAYbjI72StqQg=; b=r+NXqCjRQGVOcHWTHu7Q4KTQogqVdzJvAdOWT2dbQcQ3pqGH2rQrrgKhxemcZyJv1l 8k6m+YZ85uuko5BYxuac4PYvOnUBelRa44He7FikAI0s/cMpBW+caUQFbufYH+14MrQS JRWSJgvNCJK3mbT/uGa8XeylECeFpIuwTwSW4RJNfuKMzsGfffLQ415xyh29wazWaZ62 +i0W7GPu20wzf1w4R0D4TUE5qZaxQoK/+d0aoChlv+FNJW1pvlxyrzqUgqGzap9AbVXS mqbgDRFC3AgP3RiHDcVoyZBVf1TzaNVD2OLkmsZViFxJbyO+nfWUt/eZdWRbVC0myrBD HF9Q== X-Received: by 10.181.27.165 with SMTP id jh5mr45836276wid.15.1423571213880; Tue, 10 Feb 2015 04:26:53 -0800 (PST) Received: from [192.168.0.172] ([62.189.198.114]) by mx.google.com with ESMTPSA id l6sm20540389wjx.33.2015.02.10.04.26.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Feb 2015 04:26:53 -0800 (PST) Message-ID: <54D9F8EA.4020902@gmail.com> Date: Tue, 10 Feb 2015 12:26:18 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: internals References: <54D7F5D5.4050808@gmail.com> <54D7FEBA.1070304@gmail.com> <860EABC1-CAFF-4FD1-8C59-2F2E06C9D8B8@gmail.com> <54D8FB43.3060204@gmail.com> In-Reply-To: <54D8FB43.3060204@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] uWSGI experimental plugin for implementing a WSGI/PSGI/Rack-like interface for PHP From: rowan.collins@gmail.com (Rowan Collins) Rowan Collins wrote on 09/02/2015 18:24: > S.A.N wrote on 09/02/2015 17:40: >> 2015-02-09 12:41 GMT+02:00 Rowan Collins : >>> Yes, I can see it working well for specialised uses - you can simply >>> not use those aspects of the language that don't make sense. But for >>> it to be a mainstream part of the language, it needs to play nicely >>> with other parts of the language, and that's where I see it being a >>> complex and painful change. >>> >> The fact that the lack of native application server for PHP is often >> the reason for leaving the PHP developers to other languages and >> technologies. >> >> Let's see what others have in 2015: >> >> Python - WSGI >> Ruby - Rack >> Perl - PSGI >> JavaScript - JSGI >> Hack - HHVM >> >> PHP - No native application server in core. >> >> What discusses the PHP community? >> Remove or not to remove the PHP4 constructors and many other issues >> that do not add competitive ability PHP... >> >> I personally do not blame you :), just expressing his opinion >> developer who wants to use PHP and can use modern app server in core >> PHP. >> > > The sentence you're replying to there is talking about existing > implementations, on top of current PHP, with all the limitations that > implies. > > My view on the general idea of changing the language so that > eventually an event-based model could be the norm, is in an earlier > reply: > > > Not that I don't like the idea, but it's a huge project, with > potential for profoundly affecting the language. I just realised the double negative in that sentence may not be easy to understand, so just to make sure it's clear: I do quite like the idea, in general, but think it would require a major rethink of large parts of code. We need only look at PHP 6/Unicode for the risks involved in a well-intentioned feature with far-reaching impact on the language. I also think that an application server model without userland threads would be a mistake, because it would still be difficult to share anything meaningful between requests. That said, if someone wants to start collecting a top-level list of what would need to be changed, and suggesting how it might work, I'd be happy to contribute some ideas. Regards, -- Rowan Collins [IMSoP]