Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-20 00:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found