Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Perl speed VS. other languages

by Juerd (Abbot)
on Jan 15, 2002 at 15:06 UTC ( [id://138871]=note: print w/replies, xml ) Need Help??


in reply to Perl speed VS. other languages

I suggest you let your friend read Ten Perl Myths, especially "Perl is too slow".
About the other languages: C and C++ programs execute faster, Basic programs are a lot slower. Java's speed depends on a lot of things, and I know nothing about COBOL and Pascal.
For a lot of things, it's better to have speedy development instead of speedy execution.

Think about how you would write this in C(++):
push @foo, [ split /:/ ] while <>; print map { "$_->[0]\n" } sort { $a->[2] <=> $b->[2] } @foo; # Two lines, for clarity. # Of course I could have used another map.
The C(++) equivalent may execute a lot faster, but how long does programming it take? I guess it'll take longer than the one minute I spent on it.

2;0 juerd@ouranos:~$ perl -e'undef christmas' Segmentation fault 2;139 juerd@ouranos:~$

Replies are listed 'Best First'.
Re(2): Perl speed VS. other languages
by dmmiller2k (Chaplain) on Jan 16, 2002 at 00:08 UTC

    I quite agree! See my post, 'Re: Perl speed VS. other languages'.

    dmm

    If you GIVE a man a fish you feed him for a day
    But,
    TEACH him to fish and you feed him for a lifetime

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-24 20:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found