It always amuses me when people choose to put down a language purely upon speed or based on an arbitrary benchmark. A recent node (
Use Perl wisely, not cleverly) based its put down of Perl on a variety of reasons. Now ignoring the fact that the arguments used against Perl can just as easily be applied to Java and ASP (speed and memory) I do wonder why programmers or wannabe programmers get so hooked on speed and ram. Perhaps its a fast car thing that you grow out of ;).
There have been a handful of projects over the last five years that have required any kind of speed in their run. Aside from the fact that I used Perl in each case, I simply made use of the hardware and software (webserver, database etc) correctly and tried to use the best algorithm for the job.
Now I am fortunate that any intensive program I have written has had database, network and internet latency to compete with so the speed comparisons really become moot.
The point? Well a project I had to complete a while ago had to compete with a C++ multi-tier network system. The solution, replace with Perl. Why I hear you cry. Why use something that is so (tonque in cheek mode activated) bloated, slow, old, doesn't do (insert OO principle here) and hasn't had 6 O'Reilly books published on it in the last month alone?
Well, because we used it cleverly. Development time was reduced, debugging time went down from 3 weeks (or more!) to no more than a day, Perl was easy to teach to a larger audience and we were within 10% of the original C++ code speed.
So whats your point
Well my point is this. I'm glad your language has (insert feature here) and if I have to, I'll learn it and use it and do so happily.
But time and time again Perl has gotten the job done
quickly enough and has allowed me to go home on time and have a life.
Think about that the next time you are still debugging a memory leak at 2am.
An afterthought
I do believe Perl can do most tasks, however I do know when and when not to use it (cleverly remember?). I just don't believe the speed arguments are justifiable.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.