I would suggest that for most problems a good compiled language (Fortran compilers have beaten very skilled assembly language programmers for about 40 years; I see little reason why C/C++ wouldn't do as well) will beat even the best hand-coded assembler for many classes of problems

Are you making the claim about assembler for programming time or for run time ? Or size ?

If run time and/or size...

Code generation has become better and better. Processors have become better at supporting code generators. Processors have become more complex, so that to get the most out of them you need to worry about the relationship between instructions -- instruction scheduling is hard work for the average human. So these days it's effectively impossible to cost justify assembler vs C -- cycles and RAM are cheap and plentiful, and next year even cheaper and more plentiful.

I suppose with specialist vector processors and such, even FORTRAN could out-instruction-schedule a human. I've no experience with such heavy duty scientific iron.

However, as a bare-knuckle assembler black-belt, I'd have been flabbergasted not to be able to out-run a compiler 20 years ago, let alone 40. I don't want to start an OT religious war... but I must ask if you have evidence for your assertions ?

Does anyone have a section of code that is so time critical it's worth casting into assembler ? I have a hankering to go mano-a-mano with some real code !


In reply to Re^2: Is Perl right for me? by gone2015
in thread Is Perl right for me? by RobinV

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.