Re: Coro in Java 8

2011-04-29 Thread Lukas Stadler
Am 2011-04-28 15:00, schrieb Mark Roos: Of course I would love to see the low level infrastructure in jdk7 binaries. Well, that would be cool, but I think the scope for JDK7 is very much fixed by now, and it's a much too short timeframe anyway... My thought was to use coroutines to emulate Smal

Re: Coro in Java 8

2011-04-29 Thread [email protected]
Le 27 avr. 2011 à 22:01, Charles Oliver Nutter a écrit : > On Wed, Apr 27, 2011 at 2:54 PM, Rémi Forax wrote: >> Yes, 100% agree. >> Coroutine can also be used to implement generators in Java, >> introducing yield in the release that introduce lambda make a lot of >> sense for me. > > Yeah, th

Re: Coro in Java 8

2011-04-28 Thread Rémi Forax
On 04/28/2011 08:32 PM, Charles Oliver Nutter wrote: > On Thu, Apr 28, 2011 at 11:41 AM, Rémi Forax wrote: >> Lukas, if you refresh your patch, we can come at the next JVM Summit in >> July with >> a web server that use co-routine with nio/asyncio plus some examples >> of yield/iterator/generator.

Re: Coro in Java 8

2011-04-28 Thread Charles Oliver Nutter
On Thu, Apr 28, 2011 at 11:41 AM, Rémi Forax wrote: > Lukas, if you refresh your patch, we can come at the next JVM Summit in > July with > a web server that use co-routine with nio/asyncio plus some examples > of yield/iterator/generator. And I promise to finally get coroutine-based fibers into

Re: Coro in Java 8

2011-04-28 Thread Rémi Forax
On 04/28/2011 04:33 PM, Charles Oliver Nutter wrote: > On Thu, Apr 28, 2011 at 5:03 AM, Lukas Stadler wrote: >> I totally agree as well, naturally :-) >> >> And I do plan on spending more time on the coroutine patch again, I >> didn't do much coding in the last months because I was occupied at >>

Re: Coro in Java 8

2011-04-28 Thread Mark Roos
Lukas wrote I'll soon fork of a version that only supports lots of coroutines, because this makes a lot of things much easier (it doesn't require the whole copy to/from stack logic). My thought was to use coroutines to emulate Smalltalk processes. For this I need to convert the machine stack t

Re: Coro in Java 8

2011-04-28 Thread Charles Oliver Nutter
On Thu, Apr 28, 2011 at 5:03 AM, Lukas Stadler wrote: > I totally agree as well, naturally :-) > > And I do plan on spending more time on the coroutine patch again, I > didn't do much coding in the last months because I was occupied at > university. > The result of this is my thesis on coroutines:

Re: Coro in Java 8

2011-04-28 Thread Mark Roos
Of course I would love to see the low level infrastructure in jdk7 binaries. You can hammer out the java syntax for 8 mark___ mlvm-dev mailing list [email protected] http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Re: Coro in Java 8

2011-04-28 Thread Lukas Stadler
I totally agree as well, naturally :-) And I do plan on spending more time on the coroutine patch again, I didn't do much coding in the last months because I was occupied at university. The result of this is my thesis on coroutines: http://ssw.jku.at/Research/Papers/Stadler11Master/ The corout

Re: Coro in Java 8

2011-04-27 Thread Charles Oliver Nutter
On Wed, Apr 27, 2011 at 2:54 PM, Rémi Forax wrote: > Yes,  100% agree. > Coroutine can also be used to implement generators in Java, > introducing yield in the release that introduce lambda make a lot of > sense for me. Yeah, the Java platform is moving toward: * Lightweight concurrency models (

Re: Coro in Java 8

2011-04-27 Thread Rémi Forax
On 04/27/2011 08:33 PM, Charles Oliver Nutter wrote: > I think it's time to start talking about what we'd need to do to get > coroutines in Java 8. > > In the absence of forking, lightweight processes, or M:N threading, > there's no efficient way to implement a large set of problems that > demand f