Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107940 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 67401 invoked from network); 22 Dec 2019 22:58:08 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 22 Dec 2019 22:58:08 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id B31C42C048B for ; Sun, 22 Dec 2019 12:59:23 -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=0.7 required=5.0 tests=BAYES_50,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-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) (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 ; Sun, 22 Dec 2019 12:59:22 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id 9so11104708lfq.10 for ; Sun, 22 Dec 2019 12:59:22 -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; bh=kjB/GKKbRdf30zTzo5st5yAUuqUr3JFWFvq4LlU8K+4=; b=HQEdjtursu5scGeF7RBMlUhrLMHRjgnPy8PX7j9pks92iNm5DNMEaHHam0dM7nF7+a JmzIP2kOIMn1K6QEIgyZhbGo8KmpV5iQTC5JxYKLrGb/Ci20MA1Yirsoc3bOCKSq4RE8 jtVJ4Nm6QewTVmaxtATNZlYRlMeLWgiBmxxTRBzs3gpTQYBhL2K2VsPH8u0EqH+1epog iqzaFGvMBznG0/aaB7hRRcFTFod6l3BiZb+tkC0E4sy/C/3/RSr5BQIZA4uAyMR56EK7 654Il0H06uFnxdfqQA0gYEouPwOAtculGRPTtez6sqO1JgNMaO+36si+DTbvulM65KI8 AS2g== 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; bh=kjB/GKKbRdf30zTzo5st5yAUuqUr3JFWFvq4LlU8K+4=; b=trN5wn3PZ9rV36lesmPmamRpjd1c6R6x7gzOfLG2MsH6GfnG512E4b0pxyBY75kLZu gwCtSseossD/vEoDLP0ZgZxf+9ehrMzEgMUkRX0xNzEPDz/jq0wTutevgcuQtobOzzce fQQw8Y0wJBZD1UUIuqXZ9sN1t3zehMPUHX2ryuDTHgTGCmz25G5P7i3p40ccPSIJjD/u 0qpKbIqXRKMUrIo30wRogCYVWR149lQ6sdhHTKhRKPG8l3cEbNw0sygbzRNw7iglBAA/ bU/Lr3iy0B+69Uro5oO9wTBL08/+JKpEvtg4L9JjXsdY2p5mFjV3UoeHUEdi4Zzs0Kag 53Gw== X-Gm-Message-State: APjAAAXvNz1LBE0lz0fUDcjpBN7Ip1XD3DKROs3tlcCmvv26Q1SNh1Kz N2QAhmVVyVxukgN6XdePb9sGVeeW5DyP3qIxOgzBbMS0 X-Google-Smtp-Source: APXvYqwNKupnFe1rY1QYhbQrz6g+k6xeiS+RocAj83DmS4hW3da+6ytRyuGW8/m6ivjmujvPtk5bcl7C6ZHgvhqvKAw= X-Received: by 2002:a05:6512:21d:: with SMTP id a29mr15396073lfo.186.1577048361692; Sun, 22 Dec 2019 12:59:21 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 22 Dec 2019 20:59:09 +0000 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000647267059a512f8a" X-Envelope-From: Subject: Support for Async / Await From: cdtreeks@gmail.com (Aran Reeks) --000000000000647267059a512f8a Content-Type: text/plain; charset="UTF-8" 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 --000000000000647267059a512f8a--