Re: perl and web development
From: Sherm Pendley (spamtrap_at_dot-app.org)
Date: 02/01/05
- Next message: PerlFAQ Server: "FAQ 4.67 Why does passing a subroutine an undefined element in a hash create it?"
- Previous message: Tore Aursand: "Re: Obfuscating mod_perl code"
- In reply to: Deke: "perl and web development"
- Next in thread: Thomas Wittek: "Re: perl and web development"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 01 Feb 2005 05:55:23 -0500
Deke wrote:
> 1. Is perl a better option than PHP for web development. Why?
There is no "One True Language" that is better for all things. What's better
for Site A may not be better for Site B. It depends on your skill with
various technologies, your hosting environment, and a variety of other
factors.
> 2. Do many hosting sites support perl?
Most of them support it to varying degrees. Basic CGI support is cheap and
easy to find; mod_perl support less so.
> 3. Is perl faster than PHP in most instances?
It depends. In general, an server-embedded interpreter (either Perl or PHP)
will perform better than a child process (either Perl or PHP). This is one
major reason why the answer to 1 is "it depends" - if your hosting company
only supports one or the other as an embedded module, that's a major plus
for the language that can be embedded.
> 4. Considerng that Zend purposely cripples php speed so that they can
> sell/promote their performance products
Prove it.
> perl run at its maximum - especially with a compiler in perl 6?
The compiler will do less than you think it will. It will compile to byte
codes - which Perl 5 already does. The difference is, 6 will offer the
ability to save compiled byte codes to disk, whereas Perl 5 has to compile
your script each time it starts up.
For small scripts that take negligible time to compile anyway, you won't
notice a difference between compiling at startup and loading pre-compiled
byte codes. For huge scripts, you'll probably see an improvement in startup
time, but no difference in execution speed.
> 6. Is compiled perl 6 code compatible with mod_perl and mason?
I'd that it will be, when Perl 6 is finished and released. That's still
pretty far off though.
sherm--
-- Cocoa programming in Perl: http://camelbones.sourceforge.net Hire me! My resume: http://www.dot-app.org
- Next message: PerlFAQ Server: "FAQ 4.67 Why does passing a subroutine an undefined element in a hash create it?"
- Previous message: Tore Aursand: "Re: Obfuscating mod_perl code"
- In reply to: Deke: "perl and web development"
- Next in thread: Thomas Wittek: "Re: perl and web development"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|