[Perl5-syntax] Method::Signatures, now with types

Buddy Burden barefootcoder at gmail.com
Wed Apr 20 23:43:20 GMT 2011


Nick,

>> Can you think of a good way to avoid this? or do you think I'm
>> worrying unnecessarily and it's no big deal?

> If you believe the hype about Moose dragging in half of CPAN in
> dependencies (haha), then I think this little bit of
> micro-optimization isn't really all that necessary.

Well, no, I certainly don't believe that hype.  I'm more looking to
preempt any disparaging comments. :)  Also, it would certainly settle
the quesiton of whether I've truly managed to supplant MXMS 100% or
not.  All my testing tells me I have, but if it weren't even getting
loaded, that would be pretty definitive. ;->

> Not really ideal for repetitive execution environments where startup
> time is important (CGI, etc), but I don't think anyone is going to be
> using MXD for such environments anyhow.

That's definitely true.  Although I wasn't even thinking about the
additional startup time so much as the additional memory.  It's only
about 50Mb by my calcs, but maybe that's significant to  ... someone.
:)

> That said, I am fairly sure there some black magic that you could
> invoke to prevent loading of MXMS, but then your module declaration
> would need to be before MXD (rather than after). But I digress.

Ah, yes, I think I see where you're going ... insert something into
%INC which would report it as already loaded, handle requests for
$VERSION, etc.  Yeah, that would be pretty hinky on top of the
necessity to load it first, which is counter-intuitive.

> Congratulations on your success. Next time I wander off into MXD land,
> I'll give your module a whirl.

Awesome.  Hopefully it'll be up on CPAN by then.  I'm still tweaking a
few bits here and there and testing on different Perl versions, but it
should be done very soon now.


            -- Buddy



More information about the Perl5-syntax mailing list