Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107947 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 96942 invoked from network); 23 Dec 2019 21:38:24 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 23 Dec 2019 21:38:24 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id 31ACD2C0678 for ; Mon, 23 Dec 2019 11:39:52 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: X-Spam-Virus: No Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Mon, 23 Dec 2019 11:39:48 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id y19so13435214lfl.9 for ; Mon, 23 Dec 2019 11:39:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yI+XvCBDEAMrOGK46L1PtEUtqtJOpG4GhHpHn4mdHzA=; b=FuB2NxUKWCJj7zYfLTq157nsMt2L9/kabscg4pX++BdiZATrS1FnKA7K6xLTxuw4eK C4aTKqr79VViQ8AdrntTBqWnHCiAd/rTj3RYdU778GDQJqBNXIqI3FuPp9OYv4dq0iAb hv37cP6t0DG0lySA9rpbSMQwzXlSfd7rZKrjGKztKj6xNl72HmW/pt5bKonD7sOjuUcY 1ZrzKIoRqE2AsErkanPm9TGffSGfi6qQDeDh6QZwStAY10liE9lqm0PzPmtPEOwdN6ve o17fkepXnVd00S+azgxNFuVx7Xa1loaCOc3ikWjRqq5oVoNZnMqpVEGS8/xVZ5XFP0em xB3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yI+XvCBDEAMrOGK46L1PtEUtqtJOpG4GhHpHn4mdHzA=; b=KKVSb9UKoZi7io/Q0UzT/Z1qbbMYrwSZes44Q2qo7fo2Nm2FFpZ5M+SYQTLXtTOK80 ZrWSOUQ25VJ6tg5nfvrUFLpRdVGs0304J8Dz3Qw3mCRro7Vo5JVyWMIB+oVn12bt30QY +JfrSf3fJNV9EzgfvRUYOqrsM9qFxyLjoHCXp3Q5s1/fxZ3dLgZm3xhlG3x74w/nrtlW I2ctI3WIrpQIQ98CoFppNSxp9hRcbxdl8bElg/Sj5WyNk5BSsTl7OIagNzVLx/iN54G8 BTBOGldYs2poAKAEDvO5boJt6y7X7FTdvohztypYp6GAa2v7AW2Ky3Dhme/ngPlKhP0Z 2SQg== X-Gm-Message-State: APjAAAXBxiXr8GNUHCPVv9xl3FRagQqtztFMBSOTXN63xsKw+U3rjuU3 wzk6Diw25wbfq6h0l3fGPIwekVFewxNt9MHh/nk= X-Google-Smtp-Source: APXvYqx33XRBGNK3w7Qa+RCWak8beaVL5++ZqSA8BwrKCJ8Do3LLiyPtOqX1BgGFWKch9q6m7QYGRSoHKjTHfG4gni4= X-Received: by 2002:ac2:43af:: with SMTP id t15mr17965009lfl.154.1577129986933; Mon, 23 Dec 2019 11:39:46 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 23 Dec 2019 16:39:34 -0300 Message-ID: To: Aran Reeks Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000a2ca01059a6430e0" X-Envelope-From: Subject: Re: [PHP-DEV] Support for Async / Await From: daniel.spiridione@gmail.com (=?UTF-8?Q?Daniel_Mart=C3=ADn_Spiridione?=) --000000000000a2ca01059a6430e0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable A different but valid approach to your concerns is krakjoe/parallel ( https://github.com/krakjoe/parallel/blob/develop/README.md). Unfortunately, NTS support is lacking, but it would be very good if the internals collaborated with this project. El dom., 22 de dic. de 2019 17:59, Aran Reeks escribi= =C3=B3: > Hi Internals, > > Since the start of PHP 7, we've seen some amazing performance improvement > version by version as a result of core updates. > > Now some of the biggest wins have been implemented (with JIT due for PHP > 8), I'd personally love to see support for Async / Await introduced in > PHP's as a core language feature too. > > Being able to perform tasks in parallel such as reading or writing to DB, > cache, queues... Would be a massive advantage and the performance gains > from it could be really exciting! > > Looking at how Hack has implemented support, this seems like it could be = a > great start for a RFC, what does everyone else think? > > Here's a link to Hack's implementation for reference: > https://docs.hhvm.com/hack/asynchronous-operations/some-basics > > Thoughts welcome from everyone. > > Cheers, > Aran > --000000000000a2ca01059a6430e0--