Re: [PHP-DEV] [VOTE] Fibers

2021-03-12 Thread twosee
> 2021年3月12日 上午5:50,Dan Ackroyd 写道: > > 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

Re: [PHP-DEV] [VOTE] Fibers

2021-03-09 Thread twosee
. Of course, some designs of ext-fiber still refresh me, such as using Reflection to get coroutine status (in Swoole, we just keep adding methods to the coroutine class). Nevertheless, I don’t know what the benefits of using Reflection to get these states are. I'm not particularly satisf

Re: [PHP-DEV] [RFC] Fibers

2021-02-03 Thread twosee
tal errors in PHP have been greatly reduced and replaced by exception mechanisms. Therefore, when fatal errors occur in an extremely low possibility, directly exit through exit() may be the safest way. Of course, this will cause register_shutdown_function to fail. Regards, Twosee -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] Fibers

2021-02-03 Thread twosee
r are particularly important. What I really care about is - does it just simply eliminates the pollution of the stack caused by Promise, or it plans to improve the performance of PHP applications by a hundredfold at a low cost as Swoole did. Regards, Twosee -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Proposal: Add PDO::checkLiveness method

2020-08-15 Thread twosee
is the best and cheapest way to solve it. All in all, let it fail and try again, the overall performance will be better than checking before calling it every time, so I don't think this API is necessary. Please don't use it, it will only make your program worse. Regards, Twosee -- PHP In

Re: [PHP-DEV] Allow sleep() to accept non-integer values

2020-08-13 Thread twosee
choice than float, otherwise, we have to do dirty conversions and more checks on it And usually, we don't need high precision, millisecond sleep is enough, e.g. the timeout feature provided by epoll, it is the reason why many async libraries provide timeout feature in milliseconds. Regards, Twosee -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Ternary associativity

2020-07-24 Thread twosee
that the impact of these changes should be minimal and it almost always is an error, so if we want to make them consistent, why not make them all become errors? Regards, Twosee -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php