stack-bound vs. travelling closures proposal.

Neal Gafter neal at gafter.com
Thu Jun 17 00:53:56 PDT 2010


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