Moose vs Mouse: OOP in Perl
bugsplat.info
bugsplat.info
Client/server works for xmms, firefox, emacs, ..., so why not you? Using a few extra megs of RAM is well worth not having to use Mouse.
(And oh yeah, if you have a laptop, an SSD is essential. Although much of immutable Moose startup time is actually CPU time, there is a pretty good disk component too. An SSD also lets you do clever things like cryopid-ing your scripts to achieve an effect like precompilation. Cryopid is not faster than App::Persistent, though.)
(Also, SSDs cost money :))
The persistent version of Devel::REPL, for example, is just a few lines of code:
http://github.com/jrockway/app-persistent/blob/master/repl.p...
And if you use MooseX::Runnable, it is automatic. (Just load with +Persistent.)
I'm planning on building some persistent stuff at work and I'll definitely give App::Persistent a closer look when the time comes, but for a little script it's sort of overkill.
One possibility is implementing some sort of XS for all Moose core features, and using XS to implement Moose-based classes (Mouse already does this).
Another project which has been worked on, but has somewhat stalled, is a Moose "compiler" which would generate .pmc files for your classes. Unless you used the meta-model at runtime (most code doesn't), you'd never even need to load Moose.
Patches welcome, of course. If anyone's interested in these projects, join us at irc://irc.perl.org/#moose to discuss then.
[1]: http://search.cpan.org/~flora/Moose-1.03/lib/Moose/Cookbook....