Advertisement

Best AI languages

Started by November 17, 2005 10:53 PM
8 comments, last by Kylotan 19 years ago
Hey I'm just starting to get into AI programming but before I do actual code I wanna know which languages are the best to code AI.
LISP and Prolog are considered traditional AI languages, but are maybe not as popular as they used to be. A lot of researchers seem to prototype things in Matlab these days, especially in machine learning / vision research. For game AI you might look at scripting languages like Lua and Ruby that can be embedded into a game engine easily. I know FarCry uses Lua for AI scripting. Really though I'd just say go with what you know / what's right for the particular project you're trying to code.
Advertisement
There is no definite best language for anything. Besides, we need more information to help such as what type of AI programming you will be doing.
well mainly rts (real time strategy)
That's a type of game, not a type of AI. Just code the AI in the language you're making your game in. (ie. probably C++, or maybe Java, C#, etc) When you understand it a bit better, you will have an idea of whether to move it to a different language or not.
Lisp/Scheme is popular in AI research because, first the functionnal paradigm suits AI very well. Second, because opposed to C++ and Java, which are strongly typed languages, Lisp is almost not typed. Some stuff is surprisingly fast to code in Lisp. But the performance is appaling, so it is only used for R&D and prototyping.

Like AP said, many choose to code the AI at least partially in a scripting language. Python is also a popular one. The rest just code the AI in C++ like the rest of the game.
Advertisement
Quote: Original post by Steadtler
Lisp/Scheme is popular in AI research because, first the functionnal paradigm suits AI very well. Second, because opposed to C++ and Java, which are strongly typed languages, Lisp is almost not typed. Some stuff is surprisingly fast to code in Lisp. But the performance is appaling, so it is only used for R&D and prototyping.

Like AP said, many choose to code the AI at least partially in a scripting language. Python is also a popular one. The rest just code the AI in C++ like the rest of the game.


Yep, especially since a lot of cutting edge research in AI doesn't run in real time, but is rather a prototype, so often times researchers use Matlab for prototyping, C/C++ for considering practical applications, etc.
^
|
That's me!

What about doing something like Hill Climbing or Simulated Annealing?
-----------------------------MB
They're pretty trivial in any language.

This topic is closed to new replies.

Advertisement