[sf-perl] Pure perl Moose

Jonathan Swartz swartz at pobox.com
Thu Apr 26 10:38:36 PDT 2012

I think references to Moose being pure perl - like this http://www.linuxjournal.com/content/moose - generally mean that its syntax is built on top of Perl, rather than being an extension to the Perl core.

Moose is definitely not pure perl in the sense of "doesn't need a compiler", since it depends on Class::MOP which uses XSLoader. And a good thing, too, we don't want it to be pure-perl from a performance perspective. Hopefully more of it will end up in XS over time as it stabilizes.

On Apr 26, 2012, at 10:30 AM, yary wrote:

> Hi folks,
> I see references to Moose being pure-Perl, but I don't see any
> instructions on builiding & installing the PurePerl variation. Anyone
> here have any ideas/tips?
> I have been manually building its dependencies, which have both
> PurePerl and XS versions, with some success, but have reached a point
> where Moose is asking for Class::Load::XS even though I have
> Class::Load::PP installed.
> As an FYI,, I started with building Mouse (not Moose) as a Pure Perl
> variant and it mostly worked, but alas, the MouseX::NativeAttributes
> gave those "strange errors' with Mouse::PP that didn't happen with
> Mouse::XS. Which made me want to try the Pure Perl Moose. And if
> someone were to say "Moose used to work in pure perl, but now has XS/C
> dependencies," I would reply, "Point me to the latest Moose that was
> Pure Perl." This code is only making use of the basic Moose bits, it
> is fine with Mouse::XS, and it does not need to be the latest &
> greatest.
> Thanks
> -y
> _______________________________________________
> SanFrancisco-pm mailing list
> SanFrancisco-pm at pm.org
> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm

More information about the SanFrancisco-pm mailing list