hi monks,

I'm been drooling for perl6's neat and rich expression for years. This year, I've bought learning perl6 and start to learn perl6 officially. ;) During leaning, I'm very satisfied with perl6. To be honest, perl5 is good, but most of time, program in perl5 is a little bit like assemble weapons, you use many modules on cpan( image dzil) in one program which means you have to endure various programming style(moo, moose, bless etc.) in my own application. But perl6 not, it has a consistent class system, type system, and sigil system, that will let you keep your own style during program. Now, I've already replaced some perl5 stuff with perl6. i.e: getopt to MAIN, Devel::REPL to perl6's version etc. and I really enjoy it.

But the problem is performance. I hope I can use perl6 in production. But I found when I use perl6 to deal with large files (thousands files and each file with ten thousands lines), the program's performance decrease really fast. After google search, I notice tux's website which keep record perl6's benchmark, what frustrate me is although perl6's performance improve greatly compared before, it's still slower 10 times than perl5. I'm not expert of language compiler. but I fuzzily remember Reini Urban's criticism about perl6 that because of rakudo's wrong 3-stage design, perl6 would be never as fast as perl5! Is that right? Actually, I'd like to port all my code to perl6 if perl6's performance is the same as perl5's. if he's conclusion was wrong, when can I use a decent fast perl6?

does perl6 deserve to invest for career? or just treat it as hobby? Please enlighten me. TIA.





I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction


In reply to when is perl6 as fast as perl5 by xiaoyafeng

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.