The compilation method is not the only thing that determines execution speed. I have extensive experience in another interpreted language, Forth, and it beats the pants off of anything but tightly written C code. This is not due the compilation method but in the minimalist implementation of the bytecode and the design of the programs. To get raw speed you give up runtime checking, floating point math, and garbage collection among other things. Not as a hard rule but these are design choices that you make. Just as these choices have to made when writing in any language. The important thing is whether the language allows these choices, and if the language doesn't do what you want you can usually do it in a library. So really, it makes little sense to even draw the distinction between languages.

Speed is not everything. As I'm writing this I'm looking at the process status of the many widgets sitting on my desktop. They are all running between 0% and 1% processor utilization. My whole Xorg desktop runs between 2% and 3%. So do I care what language they were written in? No.

I don't take it as a given that a C++ program runs faster that a perl program. Some of the slowest running junk that I've seen has been written in C++ using the MFC Classes. Again the determining factor is not the compilation method but the library implementation.

My next project involve numerical simulations using the ATLAS libraries. These libraries are written in Fortran, C and C++. The libraries do all the heavy work and the application code just shuffles the results over the the display libraries. ( Written in Python, I think. ) So the whole Perl vs X thing is moot. This project mirrors most of my big projects in that I rely on libraries to do the most of the work. So I really don't care what language I'm writing in just so long as it stays out of the way.


s//----->\t/;$~="JAPH";s//\r<$~~/;{s|~$~-|-~$~|||s |-$~~|$~~-|||s,<$~~,<~$~,,s,~$~>,$~~>,, $|=1,select$,,$,,$,,1e-1;print;redo}

In reply to Re: Perl: friend or foe ? by starbolin
in thread Perl: friend or foe ? by MonkPaul

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.