Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
Good question/discussion. Here are my thoughts on the topic.

TMTOWTDI, but there is probably only one or two right ways to do it. It really depends on what area of AI you're focusing on. AI is such a general topic that for choosing a langauge you need to split it into different catagories. You also need to decide what your objectives are.

For a task such as NLP, Perl is a very appropriate language. It provides good (read effecient) methods for this task. You have regexes, data structures, and weak type. Those things are all good for something like this (at least I think so).

However, NLP is just a small portion of AI. Artificial Intelligence is defined as the ability to make intelligent decisions. Most often, this involves interacting with the world, or at least a psuedo-world. Let's see, interacting with the world, bring any specific type of programming to mind? Oh yes, Object-Oriented programming. I'd imagine that'd be good for something like this.

Perl has OO (object oriented). It's not the best OO, but it's OO none the less. So do I support using PerlOO for real world tasks in AI? I didn't say that. Other languages provide much cleaner and simpler OO than Perl. My personal favorite is Ruby. It's clean, it works. It is slow though. This could be a reason not to use it. Maybe Java or some other language would be better suited.

I would do most of my AI programming in Ruby. I like it because:
1. It's OO -- good for simulating real world problems
2. It has regexes, just like Perl does
3. The ability to create methods such as [] and + delight me

You may want to take this with a grain of salt. I've done very little AI programming. I've read a couple books. I'm currently trying to do some NLP in Ruby. So far it's going good. It is a memory hog, way more than Perl is, and it's slow, but I think it's worth it. Just my $.02

elusion :

In reply to Re: How good is Perl for AI? by elusion
in thread How good is Perl for AI? by PetaMem

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
  • 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.
  • Log In?

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

    How do I use this? | Other CB clients
    Other Users?
    Others contemplating the Monastery: (7)
    As of 2015-10-07 20:36 GMT
    Find Nodes?
      Voting Booth?

      Does Humor Belong in Programming?

      Results (200 votes), past polls