Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102085 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17795 invoked from network); 29 Apr 2018 09:27:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Apr 2018 09:27:33 -0000 Authentication-Results: pb1.pair.com header.from=peterkokot@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=peterkokot@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.173 as permitted sender) X-PHP-List-Original-Sender: peterkokot@gmail.com X-Host-Fingerprint: 74.125.82.173 mail-ot0-f173.google.com Received: from [74.125.82.173] ([74.125.82.173:39610] helo=mail-ot0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 58/4A-31220-20095EA5 for ; Sun, 29 Apr 2018 05:27:30 -0400 Received: by mail-ot0-f173.google.com with SMTP id l12-v6so6578661oth.6 for ; Sun, 29 Apr 2018 02:27:30 -0700 (PDT) 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=pMlAidP501Ey4IiNCaO9a9j/4ra6lv+MkGveVWbMo7o=; b=Uttmk/RYlsTIvzKWNwT2+MvuhNLC/2sbFddrBdtXEIG4NvPfH9NJB2+UCuWJe1T8fO gUJcS+7W2rkytDLDg3m5r/hgb0jRqqf2vJeMb8Jlxt/AtJ73k1f3g55pIinD30kllz9y o98A6KFgYu7xn96wZuMMYEZflB1PLLSfd2NApSlMLW68GX7YqidLtf1lcfnFGwrdar4g EP1gpEs1kE+s8G/LAIERYbM5rXRI4Sgt+kIN6h8CpVBGY07fYQSHZM+UMZQT59lgN990 K1VZczJdr+T9BgRmRYN9V4sRukITNw1J4sF+QPt6bqSWJuuDJ1FSHFIxaDWXR/mk22Yj nn8Q== 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=pMlAidP501Ey4IiNCaO9a9j/4ra6lv+MkGveVWbMo7o=; b=lvgmNekQX1QnNVcaWOkmS02nUNYW6yx64CqFwMbEXfJA+LIssglW9daB8SdJ5wIH5B g8RMZnZw9a2Y7HkuTGtZIDWSyrRbUITzEtZxMj5ZXzYCSrGPGl6kPw+QiSePUd0m+8AG QamYsx/p2YU7pt4c1yQU3e5TC1EPsbrmiVgADe6R2ZpjSXwPhFP3+U5N6hwBuQGkaimu PMrNzW7Q6kDI0T3LEEx7zp+LslGU9CvgGUn8CU3Dz7V5a5kesFP8HmTlcZhYuY1Da7HW ZG625jAcGizZ42Op2Leck+mHoCdCRQyLp2UpHSbGTqixuEoA2s/B3JlV/BWKPS4G6AJc KKiw== X-Gm-Message-State: ALQs6tBdpYtLLnfJWFD9Cz9IF6r2oY2ZFsHWzfkwrDLXldw+CDoaT/5h +scrF7EHiRXpCp9A/p72viXL1PsJgNxtxujxiOXxXQ== X-Google-Smtp-Source: AB8JxZoGv0Jw4Kk6rsNlct4o+cIuA7azj7AiO8UCSbYhBO9iOUrW9shpWkMb3Jdi5TBE272sy7gX/rZFPbE/pjxj8Hs= X-Received: by 2002:a9d:282b:: with SMTP id m40-v6mr5287683otb.203.1524994047900; Sun, 29 Apr 2018 02:27:27 -0700 (PDT) MIME-Version: 1.0 References: <76EBF900-3BE8-4B60-9422-880A9754FCC4@lvht.net> <0DDFDACA-6322-461C-9D57-215E8C7D9CD0@trowski.com> <60FDAEC8-02A4-4AAE-A5E3-4A119946BEB5@lvht.net> In-Reply-To: Date: Sun, 29 Apr 2018 09:27:17 +0000 Message-ID: To: Internals Content-Type: multipart/alternative; boundary="000000000000828150056af958ea" Subject: Re: [PHP-DEV] [RFC] Fiber support (again) From: peterkokot@gmail.com (Peter Kokot) --000000000000828150056af958ea Content-Type: text/plain; charset="UTF-8" Hello, I've only briefly tested current implementation and from my point of view, people new to the concept of coroutines, the async/await syntax might be much more readable and understandable what is happening behind and why this might be useful to have in the core. But yes, I'm sure there is a lot to integrate and refactor in PHP for that matter. Complex things are never simple... I think the implementation should be rethought a bit more. Especially for the future of asynchronous PHP in general. If nothing else, maybe the RFC should also explain in more details why introducing the static calling of the `Fiber::yield` instead of doing a bit more complex integration (from C point of view) and much more readable and understandable `async/await` syntax. The latest JavaScript and [Hacklang]( https://docs.hhvm.com/hack/async/introduction) have this quite understandable and readable solved, compared to Ruby's Fibers implementation. The RFC might also need to dive deeper into the benefits, and refactor the current usage example or add some more links what is this chapter all about. Thanks for all your work so far though. Awesome stuff nonetheless. --000000000000828150056af958ea--