I'm very interested to see your benchmark code, and platform. In purticular, did the perl code have a c-style for loop, or a perl-style? What version of perl was it? Did your C code actualy perform the computation at all, or was it optmized out of existance? Ditto on the Java version. Why do you think this about perl6? Have you seen any benchmarks for parrot? (Try parrot performance vs.(trivial test) the good, the bad, and the ugly to start with. Yes, the perl5 numbers are terrible, but it's outside of it's core competencies by a fair bit. Also, if you change the style a bit to be more idiomatic, it helps quite a bit.) They're quite impressive, and we're still working on them. Did you know that http://amazon.com and http://etoys.com run perl? How about the Human Genome Project? Have you run runtime size comparisons with Java?
If you're doing heavy numeric computing, don't do it in Perl. Do it in C. Integrate the C with perl. But for ordinary, day-to-day computing, perl is a very good choice much of the time.
Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).
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.