Preparation for the next version of the RFC #19
Replies: 2 comments
-
|
I have completed all research at this stage.
Fiber support has been implemented. The Work on the next version of the RFC has started. As a result, I decided to drop the Globals isolation feature. Most likely, it will not be included in the next RFC, because I do not see any robust solutions to the problems it tries to address. Globals isolation feels more like a workaround to avoid refactoring code. Yes, it works, but the same result can be achieved through automatic refactoring, or in the future, if there is sufficient demand, by adding it properly to PHP Core. One of the reasons I did not include it in the RFC:
Ideally, if a new Superglobal were to be added, I would prefer it to be immutable, and this is currently not possible. What did the research show?The research showed and confirmed that a large amount of code works without any changes. Therefore, I decided to drop features such as:
All of this feels less like solving the problem and more like introducing new workarounds. Creating single-threaded coroutines seems to me the only rational approach that is:
Running coroutines in other threads would require a different API, new data-passing rules, and a new RFC that does not conflict with the current one. |
Beta Was this translation helpful? Give feedback.
-
|
https://wiki.php.net/rfc/true_async 1.7 version. Preview! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This topic will contain links to other threads on various issues that remain open.
(the post will be updated)
You can propose your own questions for discussion. These may include function naming, edge cases, or other topics. Please base them on the current RFC.
Voiting:
Futures:
Additional links:
https://discourse.thephp.foundation/t/php-dev-vote-true-async-rfc-1-6/4777/11
Beta Was this translation helpful? Give feedback.
All reactions