Re: [VOTE] Fibers

From: Date: Fri, 12 Mar 2021 04:06:26 +0000
Subject: Re: [VOTE] Fibers
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-113491@lists.php.net to get a copy of this message
Hi Dan,


We have no commercial purpose on the swoole open source project. This is a purely technical
project. 
If possible, we can remove the name of swoole, contribute the source code of swoole-src to php-src,
and transfer the copyright.
Here is just a technical discussion. My opinion is that if PHP will support
fiber/green-threads, this is a major change, should redesign language syntax, standard library,
ZendVM.
This proposal must be discussed extensively and in-depth, should not make a hasty decision.


There are 7 parts to consider with my experience:

EventLoop API


Fiber/Coroutine/GreenThread


IO-Scheduler (Socket/FileSystem/ChildProcess/Signal/Timer/Stdout/Stdin)


CPU-Scheduler


Compatible with existing extesions 
(php_streams/ext-sockets/ext-redis/ext-mysqli/ext-pdo-mysql/ext-curl ...) and builtin-functions
(sleep/gethostbyname/proc_open/file_get_contents)


Service container, How to support php-fpm and provide a coroutine version of http server


Coroutine communication, How to pass messages between two coroutines

It’s nice to see php has such topic. This may be the key technology in the next generation of PHP.



Thanks


Tianfeng.Han


------------------ Original ------------------
From: &nbsp;"Dan Ackroyd"<Danack@basereality.com&gt;;
Date: &nbsp;Fri, Mar 12, 2021 05:50 AM
To: &nbsp;"twosee"<twose@qq.com&gt;;
"韩天峰"<rango@swoole.com&gt;; 
Cc: &nbsp;"Aaron Piotrowski"<aaron@trowski.com&gt;; "php
internals"<internals@lists.php.net&gt;; 
Subject: &nbsp;Re: [PHP-DEV] [VOTE] Fibers

&nbsp;

Hi Twosee, Tianfeng.Han

I was drafting a longer reply to you both, but I realised I might be
missing some information.

Please could you disclose the commercial interests of the Swoole
maintainers, and the ties to the for profit companies that provide
services implementing Swoole?

Having people vote on RFCs who have ties to companies that provide
services via commercial entities isn't unprecedented. For example
zend.com has had employees who are involved in voting on RFCs, but to
a large extent that was done openly, with all of them using zend.com
email addresses.

twosee wrote:
&gt; Of course, the Swoole community still expects to merge it into php-src at an appropriate
time.

What's your idea of an appropriate time and how do you plan to start
this conversation?

If something hasn't been merged back after 8 years, it sounds
reasonably unlikely that it's ever going to be merged back.

cheers
Dan
Ack


Thread (71 messages)

« previous php.internals (#113491) next »