Hi Josh,

The spec is outdated.

"at (p) async" is preferred to "async at (p)".

In the first case, p is evaluated synchronously (i.e., by the parent 
async) and then a single remote async is spawned.
In the second, p is semantically required to be evaluated asynchronously 
with the parent async as it is contained in the body of an async.
Therefore, if the compiler cannot prove that "async at (p)" can be safely 
rewritten into "at (p) async", a first local async is spawned to evaluate 
p then change places as you describe.

Olivier



From:   Josh Milthorpe <josh.miltho...@anu.edu.au>
To:     x10-users@lists.sourceforge.net, 
Date:   11/26/2012 11:07 PM
Subject:        [X10-users] remote async idiom



Hi all,

section 13.3.3 of the language specification states

"In most cases, async at(p) S is preferred to at(p) async S, since the 
former returns instantly, but the latter blocks waiting for the remote 
activity to be spawned."

Is this correct?  It is my understanding that, where p can be evaluated 
statically, "at(p) async" is preferred as it will be translated into a 
single asynchronous message to the remote place, whereas "async at(p)" 
will create an activity at the current place which then changes places.

Many thanks,

Josh

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to