Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85592 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47484 invoked from network); 31 Mar 2015 15:27:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Mar 2015 15:27:56 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.169 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.169 mail-wi0-f169.google.com Received: from [209.85.212.169] ([209.85.212.169:35744] helo=mail-wi0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E1/71-39077-BFCBA155 for ; Tue, 31 Mar 2015 10:27:55 -0500 Received: by widdi4 with SMTP id di4so13561125wid.0 for ; Tue, 31 Mar 2015 08:27:52 -0700 (PDT) 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=ipyrtu9de7Q9fWRgEfgbAm0c9x9GeSpvXuN7P5iFd+I=; b=tZQerFXuXQ2Cpt5bK/dtsNiItzzOppIIdaEkofG/36MTTIP9e/I20kSvoduXrRQiBO hNn4Ltt7qZfOQGb9xJWZggJM3ptAhDG26TlUZGKaizLZKCtToWXdq+e51FrrUCtt+vrI JL6JWP+it+Yx/yZrmh75NBFpnlDLKB+Zh/T9BGN9Q6YJYv4Sgwn9CnmV/Fo8a6liPOgG wYt4+d1ZA8YgLVq1bosm+x2j9ti1TvBwj33h972amDJeJRcNuu1M5uLN3OUy5ssCYcwW ohNhEB/98igYbV4cvlakJPz5lBheEm5s3bWN3dkmlS7wcgOX2J9Os2N1gC/t2W2vPrqm AP3g== X-Received: by 10.180.24.233 with SMTP id x9mr6557515wif.9.1427815672019; Tue, 31 Mar 2015 08:27:52 -0700 (PDT) Received: from [192.168.0.159] ([62.189.198.114]) by mx.google.com with ESMTPSA id ei8sm21404825wib.10.2015.03.31.08.27.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Mar 2015 08:27:51 -0700 (PDT) Message-ID: <551ABCAF.4070008@gmail.com> Date: Tue, 31 Mar 2015 16:26:39 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: internals@lists.php.net References: <551AAB20.6060100@luni.fr> <551AB705.5040001@hristov.com> In-Reply-To: <551AB705.5040001@hristov.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: HTTP/2 and Websocket support in 7.x versions From: rowan.collins@gmail.com (Rowan Collins) Andrey Hristov wrote on 31/03/2015 16:02: > Currently in MT environment the task of data separation is pushed to > the TSRM by using TLS. Now, if TSRM is reimplemented in a fashion that > the data is not stored by using TLS but other mechanism and > cooperative multitasking is not something that can't be done. The > truth is that userland is isolated from the process data space so for > it it won't make a difference. It's just that using threads for > separation is the easiest thing (after process per script). > The good thing is that TSRM is an abstraction for its clients. Isn't the point that to get a real advantage from these technologies, the *userland* needs to be aware of threads / events? That's what requires a fundamental rethink of the language. TSRM/TLS allows you to drop from one-process-per-request to one-thread-per-request, but it doesn't save you the expense of repeatedly building up and tearing down an execution environment. Regards, -- Rowan Collins [IMSoP]