Re: JRuby with coroutines

2010-04-08 Thread Rémi Forax
Le 08/04/2010 09:49, Christian Thalinger a écrit : > On Wed, 2010-04-07 at 19:20 +0200, Lukas Stadler wrote: > >> I'm currently writing a paper about the coroutine implementation for >> this year's PPPJ conference. That'll take up most of my time for the >> next two weeks. >> > Hmpf. Tha

Re: JRuby with coroutines

2010-04-08 Thread Christian Thalinger
On Wed, 2010-04-07 at 19:20 +0200, Lukas Stadler wrote: > I'm currently writing a paper about the coroutine implementation for > this year's PPPJ conference. That'll take up most of my time for the > next two weeks. Hmpf. That reminds me that I promised to write one too about the JSR 292 implem

Re: JRuby with coroutines

2010-04-07 Thread John Rose
On Apr 7, 2010, at 10:55 AM, Charles Oliver Nutter wrote: >> what I'd like to say is "if you want to apply coro.patch then >> you need to exclude all other patches". >> I suppose there's a simpler way to do that? If you use only the single guard +coro you should get that effect. Drop the other "

Re: JRuby with coroutines

2010-04-07 Thread Charles Oliver Nutter
On Wed, Apr 7, 2010 at 12:20 PM, Lukas Stadler wrote: > Wow, I didn't expect to instantly get that much feedback! > > I'm sorry, I should have updated the code examples to reflect the API > changes I did last week. > > I'm currently writing a paper about the coroutine implementation for > this yea

Re: JRuby with coroutines

2010-04-07 Thread Lukas Stadler
Wow, I didn't expect to instantly get that much feedback! I'm sorry, I should have updated the code examples to reflect the API changes I did last week. I'm currently writing a paper about the coroutine implementation for this year's PPPJ conference. That'll take up most of my time for the nex

Re: JRuby with coroutines

2010-04-06 Thread Nick Sieger
On Tue, Apr 6, 2010 at 11:16 AM, Lukas Stadler wrote: > Today I toyed around a little bit with JRuby and coroutines. > > I modified JRuby to use my coroutine implementation and ran some > fiber-microbenchmarks. The results are pretty good: > http://classparser.blogspot.com/2010/04/jruby-coroutines

Re: JRuby with coroutines

2010-04-06 Thread John Rose
On Apr 6, 2010, at 8:07 PM, Stephen Bannasch wrote: > I'm confused about how to interpret these two guards for coro.patch: '+coro' > and '-/coro' > > What does the prefix '-/' signify? /foo by local convention means "not foo". Therefore, -/foo is a double negative. It may be needed (besides

Re: JRuby with coroutines

2010-04-06 Thread Stephen Bannasch
If I set guards="buildable coro" I get patches that don't apply cleanly. When I run: hg qguard -l in sources/hotspot I see this for coro.patch: coro.patch: +coro -/coro +/meth +/indy +/callcc +/inti +/dynopt +1e976d3fd820 -testable I'm confused about how to interpret these two guards for coro.

Re: JRuby with coroutines

2010-04-06 Thread Stephen Bannasch
At 6:16 PM +0200 4/6/10, Lukas Stadler wrote: >Today I toyed around a little bit with JRuby and coroutines. Kukas, that's exciting! Building today with guards="buildable testable" seems to include the coro.patch http://gist.github.com/358261 But I'm not able to successfully run CoroutineTest1.

Re: JRuby with coroutines

2010-04-06 Thread Charles Oliver Nutter
Ok, I've had a chance to look your post over. Really awesome work! I've had it on my to-do list for weeks to get your stuff wired in, but never got around to it. So yeah, this is great and I'm ready to merge in changes *right now* :) Obviously you had to change things in JRuby, so we'd probably wa

Re: JRuby with coroutines

2010-04-06 Thread Thomas E Enebo
Fabulous stuff. I should mention that our Ruby 1.9 mode still is in pure-interpreted mode so once we get our JIT hooked up these numbers should look even nicer! -Tom On Tue, Apr 6, 2010 at 11:16 AM, Lukas Stadler wrote: > Today I toyed around a little bit with JRuby and coroutines. > > I modifi

Re: JRuby with coroutines

2010-04-06 Thread Charles Oliver Nutter
Oh my god, this is awesome. I'll respond with more later. On Tue, Apr 6, 2010 at 11:16 AM, Lukas Stadler wrote: > Today I toyed around a little bit with JRuby and coroutines. > > I modified JRuby to use my coroutine implementation and ran some > fiber-microbenchmarks. The results are pretty good: