[concurrency-interest] Fast control transfer from one thread to another?

√iktor Ҡlang viktor.klang at gmail.com
Tue Aug 9 14:53:47 EDT 2011


2011/8/9 Charles Oliver Nutter <headius at headius.com>

> 2011/8/9 √iktor Ҡlang <viktor.klang at gmail.com>:
> > Scala has a CPS transformation compiler plugin. In Akka we've implemented
> > our Dataflow API using that:
>
> Because Ruby is dynamically-dispatched, we can't see what methods
> might be used downstream from a Fiber. We'd have to instrument or CPS
> transform every called-through method in JRuby.
>
> The Scala trick is cute, but only works where you can statically
> determine downstream calls and transform them.
>
> JVM really needs a general-purpose coroutine capability.
>

I'd settle for JVM-level continuations, but my personal favorite would be
isolated threads (extra sugar on top for ability to control the scheduling)


>
> - Charlie
>



-- 
Viktor Klang

Akka Tech Lead
Typesafe <http://www.typesafe.com/> - Enterprise-Grade Scala from the
Experts

Twitter: @viktorklang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20110809/7e5ad08b/attachment.html>


More information about the Concurrency-interest mailing list