TrueAsync + #351
Replies: 2 comments 3 replies
-
|
Hi @EdmondDantes! Big fan of the work you're doing on TrueAsync - it's cool to see native async making progress toward PHP core. Hypervel is specifically a Swoole-based framework - the Swoole runtime is deeply integrated at every level (coroutine context, connection pools, HTTP server, etc). We also use several Hyperf packages under the hood and regularly contribute back to the Hyperf framework. So we're pretty deeply embedded in the Swoole ecosystem. Adapting to TrueAsync would essentially be a ground-up rewrite rather than an API adaptation. That's out of scope for Hypervel. If TrueAsync lands in PHP core, the more natural path would probably be for the Swoole maintainers to consider how Swoole could integrate with or provide compatibility for native async. That might be worth discussing with them directly: https://github.com/swoole/swoole-src That said, we'd love to see the PHP async ecosystem grow - happy to chat more if you have questions about how Hypervel/Swoole handles things! |
Beta Was this translation helpful? Give feedback.
-
|
Hi @EdmondDantes, First off, thanks so much for all your hard work on the native async features for PHP core. I’ve been keeping a close eye on the True Async RFC. It’s an exciting move for the ecosystem, and I’d love to see it officially land! As for whether Hypervel will able to support True Async down the road, I don’t have a straightforward answer just yet. Hyperf uses an "Engine" abstraction layer for its Coroutine and Server components. This is what allows it to switch between Swoole and Swow relatively easily. Since the Swow developers are also part of the Swoole team, the way they handle coroutines is very similar, which makes swapping drivers through that Engine layer pretty seamless. If True Async’s implementation follows a path that lets us bridge it through a similar abstraction, then Hypervel could have a future there. That said, Hypervel is currently built with a "Swoole-first" mindset and leans on some Swoole-specific features like Swoole Table. Ultimately, it'll depend on what the final specs for True Async look like and how much overlap there is with the coroutine ecosystem we’re already using with Swoole. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Content
Hello!
How difficult is it to adapt the code to the TrueAsync API? What will need to be taken into account?
Beta Was this translation helpful? Give feedback.
All reactions