Re: [ANN] threadify-0.0.1
by Charles Oliver Nutter other posts by this author
Jul 9 2008 6:39PM messages near this date
Re: [ANN] threadify-0.0.1
|
Re: [ANN] threadify-0.0.1
Michael Guterl wrote:
> On Tue, Jul 1, 2008 at 5:04 PM, Charles Oliver Nutter
> <charles.nutter@[...].com> wrote:
> > ara howard wrote:
> >>
> >> this one's for you charlie ;-)
> > Appears to work just dandy under JRuby:
> >
>
> I was doing some comparison between threadify and peach with JRuby,
> when I noticed some interesting behavior with using
> Enumerator#to_enum.
>
> Sample code and three different results are posted here:
> http://pastie.org/230287. Each result randomly occurs and sometimes
> the code produces no error whatsoever. MRI does not seem to exhibit
> the same behavior.
>
> I am not sure that what I am doing in the code is even reasonable,
> however, I thought it might be worth pointing out.
Thanks for filing the bug. I'm looking into it now.
In general we have inserted synchronization code only where it really
appears to be necessary to maintain the integrity of data structures.
That means that in some cases, you need to be mindful of code actually
running in parallel against e.g. arrays, hashes, strings, and so on. But
we do want to reduce the possibility of a Java exception, so I'll
investigate a bit.
- Charlie
Thread:
Ara Howard
Daniel Berger
Ara.T.Howard
Charles Oliver Nutter
Michael Guterl
Charles Oliver Nutter
Michael Guterl
Ara.T.Howard
Charles Oliver Nutter
Charles Oliver Nutter
Ara.T.Howard
Ara.T.Howard
Ara.T.Howard
Charles Oliver Nutter
Martin DeMello
Charles Oliver Nutter
Martin DeMello
Ara.T.Howard
Fedzor
|