What language for AI?


Results 1 to 9 of 9

Thread: What language for AI?

  1. #1
    Join Date
    Dec 2002
    Location
    Right where I am
    Posts
    903

    What language for AI?

    I am interested in artificial intelligence(AI) programming. Any ideas on what language I should do it in? I know C and am learning C++ right now. Are either of those good languages or should I learn another?
    -------------------------------------
    blobaugh
    lobaugh.net


    All you ever need to know about Samba at O'Reillys (Online book)
    DSL Linux in your pocket.
    Need help choosing a distro? Distro Chooser
    My Screenies
    Table of Windows equivalent software on Linux
    Linux Games from Windows

  2. #2
    Join Date
    Mar 2003
    Location
    mass, usa
    Posts
    343
    I would think c or c++ would be the way to go. With AI I would think speed would be one of the main concerns and c is one of the fastest out there. It might be good to look at some of the game companies and see what languages they look for in a programer which in turn should tell you what they are using.

  3. #3
    Join Date
    Jan 2001
    Location
    Somewhere in middle America
    Posts
    164
    Lisp is a popular AI programming language.
    My Machine:
    Maytag SAV5905
    710 rpm Stainless Steel Drum
    Dual boot: Gentoo / Tide

  4. #4
    Join Date
    Apr 2001
    Location
    SF Bay Area, CA
    Posts
    14,936
    Definitely Lisp. Any college AI course is going to be taught in Lisp (...assuming it's a college that knows what they're doing, that is).

    AI actually doesn't require speed as much as it requires you to be able to readily model whatever problem it is that you're trying to solve. And as so many AI problems are recursive in nature, a language that does recursion easily (i.e. any functional language) is a good thing to use.

    Plus it's not like Lisp is all that much slower than compiled code -- especially if you "compile" the Lisp source instead of interpret it.

  5. #5
    Join Date
    Aug 2002
    Location
    Cayman Islands
    Posts
    681
    Prolog is also kinda nifty to play with, because it's so different.
    Scotty: Captain, we din' can reference it!
    Kirk: Analysis, Mr. Spock?
    Spock: Captain, it doesn't appear in the symbol table.
    Kirk: Then it's of external origin?
    Spock: Affirmative.
    Kirk: Mr. Sulu, go to pass two.
    Sulu: Aye aye, sir, going to pass two.

  6. #6
    Join Date
    Apr 2004
    Posts
    3
    yea, i've heard LISP to be a popular one, but never used it.

    i have done sum robotics and i programmed my robot (A.I. not random controls and ish, actually i did that 2 but A.I. as well ) anyway, it was great to work w/.

  7. #7
    Join Date
    Jan 2003
    Location
    Austin, Texas
    Posts
    683
    I know the AI class at UT is taught in Lisp. I believe it's pretty much the standard language for AI. I don't believe that C/C++ would be a good choice. Prolog is another good choice and I believe used to be the most popular, but both have queries, but I think Lisp dominates the field.
    "The author of that poem is either Homer or, if not Homer, somebody else of the same name."

  8. #8
    Join Date
    Oct 2002
    Location
    Republic of Texas
    Posts
    5,898

    Without a doubt...

    LISP
    Need help in realtime? Visit us at #linuxnewbie on irc.libera.chat

    Few of us will do as much for our fellow man as he has done.
    --Andrew Morton on RMS

  9. #9
    Join Date
    Nov 2003
    Posts
    106
    Lisp is nice because the code is so freely inserted, commands can practically come out of nowhere and run fine. Be careful when writing AI, because if you don't specify the AI to go back to a specific goal, it could basically just crash.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •