Given the choice, I'd probably program mostly in Perl. It's a nice featureful idiomatic language, without peer for text munging (and 99% of my programs are text munging) and pretty good for most everything else.

The major problem with Perl is that it's slow. (Yeah, yeah, programmer time vs. computer time, but if you have a ten-minute cron window and your script takes 15, you have a more serious problem.) For problems that require the speed of a language compiled to machine code by an optimizing compiler, I'd probably use Common LISP or Scheme. I haven't yet decided which I like more. Wonderful, comfortable languages, the both of them, once you get over your fear of parentheses. For most problems, they're about as quick to program in as Perl, sometimes better, sometimes worse. As usual, it's a matter of knowing the idioms, having a toolchest, and being comfortable with the language.

If I have to write super-fast, low-level code, I'll use C, or maybe carefully-written C++ for an especially large project. C also seems to be the great common denominator of the hacking world: you're pretty much guaranteed that any even vaguely experienced programmer knows C, and that any even vaguely sane system has a C compiler installed. If these points are important to me, I'll probably use C. It sometimes feels like a step backwards coming from one of the languages I mentioned above, but once I've gotten into the swing of the language I do pretty well.

I know (with varying degrees of familiarity) plenty of other languages: 80x86, 68k, and MIPS assembly languages, Haskell (fun!), Prolog (everyone should learn at least a little bit of Prolog), Pascal, and Java are the first that come to mind. They all have their plusses (well, maybe not x86 asm or Pascal :-), but in general, to solve an immediate, real-world problem, I'll pick one of the above.

--
F o x t r o t U n i f o r m
Found a typo in this node? /msg me


In reply to Re: Other languages besides perl by FoxtrotUniform
in thread Other languages besides perl by dimmesdale

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.