New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HHVM hacklang async
and await
keywords on the roadmap
#305
Comments
Currently The advantage of this technique is you can make network requests asynchronously (such as MySQL), carry on execution of your code, and then choose when to block the application. Much like Hack's Given their documentation I wouldn't be surprised if Hack eventually changed the engine of Promises are an object that represent a future value. They will eventually be resolved and can have callbacks triggered when they become a value. |
Interesting. I'm currently building a very big application based on React. Basically a whole framework. I have 7 developers on my team right now that are all working to develop this application, and we plan on open sourcing it once we have an initial stable version. Part of our architecture is that we split the Model/Domain into different servers, so we make socket connections to those servers in order to request and receive processed data from the Model. I had been considering firing all those requests at once with |
@no1youknowz Facebook seems to be putting a lot more into async now. I'll be revisiting it once they have streams supporting the async syntax. |
is ReactPHP supported on HHVM ? |
async
and await
keywords on the roadmap
Yes, ReactPHP does support running on HHVM. (Though this issue is more geared towards taking advantage of HHVM hacklang's |
I'd like to make this actionable, so I'm wondering what needs to be done here? 👍 React runs on both Zend PHP and HHVM and it's unlikely this is going to change any time soon. The How could we possibly take advantage of them? What kind of benefits would this give us? |
I'm closing this for now as it hasn't received any input in a while and I believe this has been answered. Please come back with more details if this problem persists and we can reopen this 👍 |
Now that HHVM is released with support for HACK-lang, it is possible to use new features like 'async' (http://docs.hhvm.com/manual/en/hack.async.php). What will be the impact on React?
Will React make use of these features? As I'm not very familiair with React yet, what would be important differences between React promises and Hack asyncs?
The text was updated successfully, but these errors were encountered: