Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72811 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81775 invoked from network); 25 Feb 2014 17:12:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Feb 2014 17:12:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=rdlowrey@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rdlowrey@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.181 as permitted sender) X-PHP-List-Original-Sender: rdlowrey@gmail.com X-Host-Fingerprint: 209.85.223.181 mail-ie0-f181.google.com Received: from [209.85.223.181] ([209.85.223.181:53538] helo=mail-ie0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9A/51-09491-FDECC035 for ; Tue, 25 Feb 2014 12:11:59 -0500 Received: by mail-ie0-f181.google.com with SMTP id lx4so552652iec.26 for ; Tue, 25 Feb 2014 09:11:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=fxFRA6HY2RSc7m6DhWHteEY4huJuJUCrMG4/UZyq3Uw=; b=B21CYtaCJLd+yAMbXvTLsTqc+VPcZ8hdC0YsKLad6c9JDazExef40iazzIj9AU9VCZ invjJZYwSjS5RnsF/IEz4IV1adg7dcMW6a+QsbVnpZjPxpGhL6WTUouRnB5e8uacQswF gKp0EWHJ/LckGTn+YOrWITIxhAthgzTfH1TkCax8RaPgsZ2xt9LijUlQlbMLGAUswiiJ BT+IzGktZz8gAs68F+lGfpAm+zx+2KZYpM2Ydc6H7m+gCNFEDSy98ykp0ZCsngKDg4Wa +iIVA7D1p6JDv4KNc3p9t473UvUzv4miA0KOwdFX+pfmd+eRTj3gyX7IErTj6Ekjc3QS VsOg== MIME-Version: 1.0 X-Received: by 10.50.97.98 with SMTP id dz2mr21238171igb.34.1393348315676; Tue, 25 Feb 2014 09:11:55 -0800 (PST) Sender: rdlowrey@gmail.com Received: by 10.50.34.131 with HTTP; Tue, 25 Feb 2014 09:11:55 -0800 (PST) Date: Tue, 25 Feb 2014 12:11:55 -0500 X-Google-Sender-Auth: ViZtWIFmWE6iohflurCqS76pNjs Message-ID: To: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7b111a4567853104f33e2f9c Subject: Re: Async operating in PHP From: rdlowrey@php.net (Daniel Lowrey) --047d7b111a4567853104f33e2f9c Content-Type: text/plain; charset=ISO-8859-1 > Will PHP ever have this? That would certainly be very > interesting to have, the option to just push away a bigger task. I'm not sure implementing an event loop in core really jives with PHP's primary intentions, so I personally don't think it makes much sense to consider something like this. That said, you can absolutely implement this yourself right now in userland using tools like pecl/libevent, pecl/ev or even your own custom userland loop via stream_select(). There are many people doing this quite successfully already and using the available extension it's possible to write non-blocking event-looped applications that are every bit as performant as node.js. --047d7b111a4567853104f33e2f9c--