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 to have practical value. Currently php does not have event-driven support. So normal web developers don’t know how to use fiber. 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. Swoole is also provided to users as a PECL extension.
------------------ 原始邮件 ------------------ 发件人: "Peter Stalman"; 发送时间: 2021年3月11日(星期四) 下午2:37 收件人: "韩天峰"; 抄送: "Aaron Piotrowski"; "php internals"; 主题: Re: [PHP-DEV] [VOTE] Fibers On Wed., Mar. 10, 2021, 02:16 韩天峰, <ra...@swoole.com> wrote: > I am afraid that fiber can only be used in the amphp framework and is of > no value to other php projects. > Hi, I'd like to see you elaborate on this point. Are you able to provide anything to back up this claim? I don't see anything that is specific to amphp, not anything to limit it to their use. Fibers also exist outside of PHP, while amphp doesn't. Thanks, Peter