Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71531 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68789 invoked from network); 24 Jan 2014 20:59:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jan 2014 20:59:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=larry@garfieldtech.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=larry@garfieldtech.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain garfieldtech.com from 66.111.4.28 cause and error) X-PHP-List-Original-Sender: larry@garfieldtech.com X-Host-Fingerprint: 66.111.4.28 out4-smtp.messagingengine.com Received: from [66.111.4.28] ([66.111.4.28:42809] helo=out4-smtp.messagingengine.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 10/89-21270-C44D2E25 for ; Fri, 24 Jan 2014 15:59:56 -0500 Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id A9ADB20A2E for ; Fri, 24 Jan 2014 15:59:49 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Fri, 24 Jan 2014 15:59:49 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=IzEFw0EhfxYn0iFVBako+A hmA+w=; b=IxSg5Bx7G9Bd6eSwBwGi6hjQlx7GAa5wf0MwR4DWXeMvC9PDFpcr0x F7mtkyIU90ur2RNKp2i1oyN9OWQ4wk37PcnY9jc2BM+7K5+PJAVCXKX+o7TT+YQa 5y0iYmAo+a3xAjRts4L7QzkOkZJmcGEvNcgKd4WYZjl9F1RghZ5oQ= X-Sasl-enc: wvpMxPKqzBdCzs/Jlvi9Nkm0G1ueDz3JrFIrce/IwTc5 1390597189 Received: from Palantirs-MacBook-Pro-2.local (unknown [63.250.249.138]) by mail.messagingengine.com (Postfix) with ESMTPA id 161B3C00E87 for ; Fri, 24 Jan 2014 15:59:49 -0500 (EST) Message-ID: <52E2D444.8050306@garfieldtech.com> Date: Fri, 24 Jan 2014 14:59:48 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: internals@lists.php.net References: <52E29253.2000801@lsces.co.uk> <52E2924B.6080002@ajf.me> <52E299D4.6040102@garfieldtech.com> <52E2C98C.6010005@lerdorf.com> <52E2CCBF.7030005@developersdesk.com> <52E2D001.3060105@lerdorf.com> In-Reply-To: <52E2D001.3060105@lerdorf.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Ruminations on PHP 5++ From: larry@garfieldtech.com (Larry Garfield) On 1/24/14 2:41 PM, Rasmus Lerdorf wrote: > On 1/24/14, 12:27 PM, Rick Widmer wrote: >> On 1/24/2014 1:14 PM, Rasmus Lerdorf wrote: >>> PHP is and should remain: >>> >>> 1) a pragmatic web-focused language >>> 2) a loosely typed language >>> 3) a language which caters to the skill-levels and platforms of a wide >>> range of users >> >> >> Please don't forget >> >> 4) a template system for generating dynamic web pages. > > I would categorize that under "web-focused", but yes, hopefully that > part goes without saying. > > -Rasmus Something else we should be thinking about is that "web focused" has been changing. When PHP 5 came out, the web still consisted almost entirely of request-response-end workflow, which PHP does very well. However, "web focused" now needs to deal with websockets, server-sent events, asynchronous IO, HTTP 2 (persistent connections and multiple responses for a single request), "lots of small callback requests" and other things where PHP, or at least mod_php, is not well suited at all. The "shared nothing, every request is its own world" has a lot of benefits, but also limitations. (The folks over at ReactPHP / Ratchet, for instance, have had to re-implement a ton of libraries to make them async so that they can do async logic, which has huge performance benefits if done properly.) I do not want to turn this into another threads debate, but we probably should consider if better general support can be given for less-traditional models, which are becoming more common for the web. --Larry Garfield