Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Is perl scalable?

by chromatic (Archbishop)
on Dec 05, 2002 at 23:41 UTC ( [id://217939]=note: print w/replies, xml ) Need Help??


in reply to Is perl scalable?

obviously a compiled language would run faster than a script

It's not obvious to me why this is the case. It's also not (quite) obvious to me why people think that Perl is interpreted and Java isn't.

Perl's biggest shortcoming is that it's so efficient, you can often get your job done before you stop to think about the "right way to do it".

Perl's scalability depends on how you do it. I'm sorry this answer isn't more meaningful, but it's a meaningless question. (Is a hammer scalable?)

Perl is only a love-hate relationship for people who don't yet grasp the subtleties that Real Programmers (to be elitist) encounter every day.

Replies are listed 'Best First'.
Re: Re: Is perl scalable?
by perrin (Chancellor) on Dec 06, 2002 at 01:33 UTC
    It's also not (quite) obvious to me why people think that Perl is interpreted and Java isn't.

    It's obvious to me: because they have to run javac before they can execute Java code! As we know, Perl does this step implicitly, and Perl's compiler is so much more efficient than Java's that no one even knows it's there unless they bother to learn something about how Perl works internally.

    The bottom line for anyone who doesn't already know this: both languages compile to bytecode and then interpret that bytecode. This is also how modern versions of PHP and Tcl work. So, explain to them that Java is no more compiled than PHP is, and see what they make of that.

    Also, note that while Perl CGI has to do the compilation step every time, mod_perl and similar persistent technologies (and equivalent for PHP and Tcl) just keep the bytecode in memory after the first time it is compiled.

      [People think that Perl is interpreted and Java isn't] because they have to run javac before they can execute Java code!

      Many JVMs do incremental compilation, using technology pioneered in Smalltalk and Self, though it's probably true that the fact of there being a separate "compilation" phase, by a thing called a "compiler" confuses many people about what's really going on under the covers.

        You mean incremental compilation like Hotspot does? That's a bit different, since it's compiling from bytecode to machine language. I wonder if a just-in-time compiler would make a difference in Perl performance. Then again, it's already as fast or faster than Java for everything I've ever tried, so maybe it isn't worth the complexity.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://217939]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-25 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found