NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Of course... (Score:1)
... CGI performance is irrelevant, since nobody uses CGI anymore. Modern Perl trades compile-time speed for runtime speed. If you think it's a good idea to recompile your application every time there is a web request, then you should probably not use Catalyst or HTTP::Engine.
FWIW, Shika is being rolled into Mouse, which means HTTP::Engine will soon be both fast and easily compatible with Moose and Moose extensions... and every other user of Moose/Mouse gets that speed for free!
Reply to This
Re: (Score:1)
Really? I use Perl in a CGI environment all the time because that is all that is available to me at work and it is cheap (and I do small sites) with hosting providers.
Is there a cheap mod_perl hosting site?
Re: (Score:1)
Oh...but I agree I wouldn't use Catalyst for a CGI site because that isn't what it is designed for. I use CGI::Application and I may be trying Mojo very soon as well.
Re: (Score:1)
That's just BS. I use vanilla CGI plenty, and it has never been the source of declaring that an application was too slow or otherwise inappropriate technology. I back up the benefits of vanilla CGI [stosberg.com] specific details on hosting availability and expected performance limits where CGI quits being a good choice.
I totally agree that Catalyst apps would run too slow in vanilla CGI, but Catalyst alone does not define "modern Perl".
Even Catalyst's new
Re: (Score:1)
Mojo runs decently in CGI with many of the same features.
The features aren't really the same. Try doing something like Some::Role->meta->apply( $c->request ). A lot of Moose (and Catalyst) imitators steal the sugar, but the sugar is not the power... the internal consistency and extensibility is.
Anyway, doesn't matter much if all you want to do is get some crap out of a database and add some HTML tags around it. TMTOWTDI.
Re: (Score:1)
However, there's no way to use the new Catalyst without Moose, if you don't want the overhead of loading Moose feature which won't be used.