stack-bound vs. travelling closures proposal.
Brian Goetz
brian.goetz at oracle.com
Thu Jun 17 08:28:18 PDT 2010
I think we're saying the same thing. Exception transparency is needed in the
within-thread case too, but I think the more attractive aspects of what
Reinier is proposing are the other aspects -- nonlocal control flow and
mutable local capture.
On 6/17/2010 3:53 AM, Neal Gafter wrote:
> On Wed, Jun 16, 2010 at 10:21 PM, Brian Goetz<brian.goetz at oracle.com> wrote:
>> Overall, there's a lot to like about the "stack-bound vs traveling"
>> distinction. As pointed out earlier, this is the gating concern on nonlocal
>> control flow, as well as what enables mutable local capture to not be nearly
>> guaranteed to be racy.
>
> I beg to differ. Exception transparency is critical in the concurrent
> loops API described here:
> <http://gafter.blogspot.com/2006/10/concurrent-loops-using-java-closures.html>
> but cannot be implementing in a stack-bound way.
More information about the lambda-dev
mailing list