Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113480 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 4568 invoked from network); 11 Mar 2021 16:59:02 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Mar 2021 16:59:02 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 54A411804D1 for ; Thu, 11 Mar 2021 08:51:35 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,BODY_8BITS, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ua1-f42.google.com (mail-ua1-f42.google.com [209.85.222.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 11 Mar 2021 08:51:34 -0800 (PST) Received: by mail-ua1-f42.google.com with SMTP id g5so819524uan.8 for ; Thu, 11 Mar 2021 08:51:34 -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=AmeUI1JLnalF2fal9Wj9ludEeZWqGEqDbTHMzdgH14g=; b=QXT7dlllw0KvxjcZqp6dzWYLgE5nLLRF0XTEZ34S5DAhYJUCxrjCbfZXiMxHBA4upZ 6nz0tCA1GXVspbIBt4HMOSWn63/KR9tYX1NTpThFe5hjK05hsKKUSxGzx+p6eRtt73Er 2L0Qkgzyw+ybkOlDhjkU5WODstxQOHCBPCxANRBIAwu39FikHPapLw1MzwUm8PJIbg0m chlE1cSDxwjB5z1d5P3x4Pi95zbFLpNLIxnuQzIFfUAFdF8HR2CwELndcGKFjdJoVtOg ogqdXE4xbbIKoSKk4xaoJNkvuKM6tS8p/MdM1h+De7wEu000bNMJgvGnTgEY1OB+FJkF sy5w== 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=AmeUI1JLnalF2fal9Wj9ludEeZWqGEqDbTHMzdgH14g=; b=sKWex8OhYEbvlnnR1G+DEClenMRYXpMJYdvIMsWHDlTpMyhJzQp1RSOjb9bPELL5FJ 3lq9g33amHMiegDtBbubrlucW4MpzUS8MtoaCWOGGfO4mzHbdWsco+sHXr1DcWYO72yE ukv/WiToTshI3iX++lNQD0Y+9jxFHdrHrMV0RJy47NQXZwJsjYx0eWAcubTSdXasRmUY sC7V1LX1rZrgPTs+LutDgIUs8P3AwT5wGcYA2ScAZoNToJ3Po4mbGmRRF+CoTjf0Gd6E uNy9PBh/Qq9qQjdlMSuotNvlXtu/hYEb+bJGnFX6jdn6xlUC/9VH5E+WZqbPMSfIOFI6 gvMA== X-Gm-Message-State: AOAM532BHjzMzxKzlfJAjhAovHGdzZKgYR6kF2D8NNJoYjXH94NiUpAn UyYP/wEJui2dH+kda5s6r1aF5fbl93QAyTFMt6E= X-Google-Smtp-Source: ABdhPJyA1QWQ25Nu7GC4RbdBqKuaDl7+kxqD4dvRW9DUZ/nP+phYlImJ0RJZtGagrpKmbAlEvFu5xIS3keluXBJvbqY= X-Received: by 2002:ab0:264d:: with SMTP id q13mr6033611uao.3.1615481492090; Thu, 11 Mar 2021 08:51:32 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 11 Mar 2021 11:51:20 -0500 Message-ID: To: =?UTF-8?B?6Z+p5aSp5bOw?= Cc: Peter Stalman , Aaron Piotrowski , php internals Content-Type: multipart/alternative; boundary="0000000000007a35b005bd45985d" Subject: =?UTF-8?B?UmU6IFtQSFAtREVWXSDlm57lpI3vvJpSZTogW1BIUC1ERVZdIFtWT1RFXSBGaWJlcnM=?= From: chasepeeler@gmail.com (Chase Peeler) --0000000000007a35b005bd45985d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Mar 11, 2021 at 8:56 AM =E9=9F=A9=E5=A4=A9=E5=B3=B0 wrote: > Hi, > I am come from Chinese, we may have some cultural differences, and there > may be some difficulties in communication. I try to express my opinion. > To be precise, the fiber can only be used for amphp and reactphp or other > event-driven asynchronous IO frameworks developed using php. The RFC > does not mention how an extension uses fiber. > Fiber is not like threads or processes of operating system. It is not > parallel, nor is it concurrent. This requires an event-driven scheduler t= o > have practical value. Currently php does not have event-driven > support. So normal web developers don=E2=80=99t know how to use fiber.&nb= sp;It is > for developers of asynchronous io programming.  > I just suggest first to provide a PECL extension like > ext-event/ext-libevent, no need to be integrated into php now. Swool= e > is also provided to users as a PECL extension. > > I want to answer this in a different way than Aaron did. Let's assume that this is correct. No one will EVER use fibers except amphp and reactphp. Let's also assume that it would work just fine as an extension (which Aaron has shown already is not the case). If someone is willing to do the work to add this to core, we aren't trading off other features in order to add it, and it doesn't cause BC breaks or other bugs, what is the reason to not add it? > >   >   > ------------------ =E5=8E=9F=E5=A7=8B=E9=82=AE=E4=BB=B6 -------= ----------- > =E5=8F=91=E4=BB=B6=E4=BA=BA: "Peter Stalman"; > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2021=E5=B9=B43=E6=9C=8811=E6=97=A5(= =E6=98=9F=E6=9C=9F=E5=9B=9B) =E4=B8=8B=E5=8D=882:37 > =E6=94=B6=E4=BB=B6=E4=BA=BA: "=E9=9F=A9=E5=A4=A9=E5=B3=B0"; > =E6=8A=84=E9=80=81: "Aaron Piotrowski"; "php internals"; > =E4=B8=BB=E9=A2=98: Re: [PHP-DEV] [VOTE] Fibers > >   > > On Wed., Mar. 10, 2021, 02:16 =E9=9F=A9=E5= =A4=A9=E5=B3=B0, < > rango@swoole.com> wrote: > > > > I am afraid that fiber can only&n= bsp;be used in the amphp framework and i= s of > > no value to other php projects. > > > > Hi, > > > I'd like to see you elaborate on t= his point.  Are you able to provide > anything to back up this claim? > > > I don't see anything that is specific&n= bsp;to amphp, not anything to limit it t= o > > their use.  Fibers also exist outside = of PHP, while amphp doesn't. > > Thanks, > Peter --=20 Chase Peeler chasepeeler@gmail.com --0000000000007a35b005bd45985d--