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&nbsp;Wed.,&nbsp;Mar.&nbsp;10,&nbsp;2021,&nbsp;02:16&nbsp;韩天峰,&nbsp;<ra...@swoole.com&gt;&nbsp;wrote:

&gt;&nbsp;I&nbsp;am&nbsp;afraid&nbsp;that&nbsp;fiber&nbsp;can&nbsp;only&nbsp;be&nbsp;used&nbsp;in&nbsp;the&nbsp;amphp&nbsp;framework&nbsp;and&nbsp;is&nbsp;of
&gt;&nbsp;no&nbsp;value&nbsp;to&nbsp;other&nbsp;php&nbsp;projects.
&gt;

Hi,

I&#39;d&nbsp;like&nbsp;to&nbsp;see&nbsp;you&nbsp;elaborate&nbsp;on&nbsp;this&nbsp;point.&nbsp;&nbsp;Are&nbsp;you&nbsp;able&nbsp;to&nbsp;provide
anything&nbsp;to&nbsp;back&nbsp;up&nbsp;this&nbsp;claim?

I&nbsp;don&#39;t&nbsp;see&nbsp;anything&nbsp;that&nbsp;is&nbsp;specific&nbsp;to&nbsp;amphp,&nbsp;not&nbsp;anything&nbsp;to&nbsp;limit&nbsp;it&nbsp;to
their&nbsp;use.&nbsp;&nbsp;Fibers&nbsp;also&nbsp;exist&nbsp;outside&nbsp;of&nbsp;PHP,&nbsp;while&nbsp;amphp&nbsp;doesn&#39;t.

Thanks,
Peter

Reply via email to