Re: perl and web development

From: Sherm Pendley (spamtrap_at_dot-app.org)
Date: 02/01/05


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


Relevant Pages

  • Questions about "perldoc perlembed"
    ... Ultimately I am trying to embed the ability to run Perl scripts on ... Perl to properly embed in my Win32 C++ program. ... COMPILE THE PROGRAMS IN EXACTLY THE SAME ... Eventually I read the section "Maintaining multiple interpreter ...
    (comp.lang.perl.misc)
  • Re: Questions about "perldoc perlembed"
    ... Ultimately I am trying to embed the ability to run Perl scripts on ... Perl to properly embed in my Win32 C++ program. ... COMPILE THE PROGRAMS IN EXACTLY THE SAME ... Eventually I read the section "Maintaining multiple interpreter ...
    (comp.lang.perl.misc)
  • Re: perl and web development
    ... There is no "One True Language" that is better for all things. ... an server-embedded interpreter (either Perl or PHP) ... It will compile to byte ... For small scripts that take negligible time to compile anyway, ...
    (comp.lang.perl.modules)
  • compile Perl as a STATIC library
    ... compiled and installed Perl successfully on Win32. ... I can now write programs that use the Perl interpreter to execute ... I hope it is clear what i want, i want to compile a static Perl ... as standalone programs and i can execute Perl scripts in these ...
    (comp.lang.perl.misc)
  • RE: DBI compile on HPUX-11.23
    ... I am literally in the process of building perl 5.8.7 on Itanium ... Subject: DBI compile on HPUX-11.23 ... since there's no INSTALL document I'm having problem with the ...
    (perl.dbi.users)