Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

I'm not sure I understand you correctly. You explained that optimization counts. C and C++ don't have JIT in their most common forms, as far as I can see. Do you mean that Perl isn't as fast as C and C++ in some domains?

Detailed typing is harder to understand. If anything, I think the type system in C and C++ is one of the worst features of the language. To do anything useful, you're forced to cast willy-nilly. The templating system in C++ is a symptom of the problem. It's a combinatorial explosion based on exposing low-level implementation details. (I think this may be an example of premature optimization -- by forcing you to commit to an int early on, you're restricted in what you can do in many other places around the source code. You can guess at what you'll need later, but if you guess wrong, you have to make a lot of changes, so you'll end up hedging your bets or editing a lot of code or sucking it up and living with your limitations.)

Java's even worse -- it suffered along without templates for years and years. How long did it take before you could put an object in a container without having to upcast? You could also look at all of the work you need to do with the Reflection API to do something like a Factory pattern.

This is turning into a rant on a subject which many people have strong feelings (and I really don't want to debate the benefits of strong versus weak, static versus dynamic typing here!). I'll try to sum up.

In my opinion, Perl is already a general purpose language. There are several benefits of Perl 6 that improve its position: easier distribution of code, easier embedding and extending semantics, improved performance through Parrot, and higher-level programming constructs.

If anything, I'd much rather use a dynamically typed language as a general purpose language.


In reply to Re: (A6) Perl 6, a general-purpose language? by chromatic
in thread (A6) Perl 6, a general-purpose language? by crenz

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!
  • 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, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others drinking their drinks and smoking their pipes about the Monastery: (6)
    As of 2014-08-30 14:02 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The best computer themed movie is:











      Results (293 votes), past polls