On Sun, Sep 16, 2007 at 10:52:26AM -0500, David Nicol
wrote:
> On 9/16/07, Nicholas Clark <nick ccl4.org> wrote:
> >
> > I'm not sure how to fix this, and I doubt that it
will get fixed before 5.10,
> > but it would be nice to fix it.
> >
> > Nicholas Clark
>
> possibly by implementing STM Software Transactional
Memory ? Just something
> to think about.
I think it unlikely that anyone will ever implement STM for
the perl 5 core,
given that the data access API is "poke inside these
data structures".
My understanding of STM is that one needs a way to hook into
all the read and
write accesses to data, which would mean replacing all the
(fast) macro
access with slow(er) function calls. This would give all
users of Perl 5 a
performance penalty, not just those wanting STM.
I think that Perl 6 is likely to arrive before STM for Perl
5.
Nicholas Clark
|