Programming language and artificial intelligence

AI Thread Summary
The discussion centers on the programming languages suitable for creating artificial intelligence (AI). While any programming language can be utilized, specific languages are favored for their capabilities. LISP and Prolog are mentioned as traditional AI languages, but there is a consensus that C++ is preferred for its efficiency and framework setup, despite the initial effort required. MATLAB and other mathematical languages like Haskell are also recognized for their utility in AI applications. The conversation highlights that using a combination of languages can be beneficial, leveraging LISP for high-level structure and C++ for efficiency in critical areas. It emphasizes the importance of understanding different programming paradigms, suggesting that relying solely on procedural languages may limit one's approach to programming. Overall, C++ emerges as a strong choice for AI development, with functional languages also holding significant value.
Tungamirai
Messages
13
Reaction score
0
What programming language is used when creating artificial intelligence.
 
Technology news on Phys.org
I think you can use any language but there is a special language dedicated to program robots.
 
http://en.wikipedia.org/wiki/List_of_programming_languages_for_artificial_intelligence"
 
Last edited by a moderator:
I have a question. Can we use our basic programming languages like C and C++ for Artificial Intelligence?
 
From the hyperlink of FunGus: "AI applications are also often written in standard languages like C++ and languages designed for mathematics, such as MATLAB and Lush."

So yes, in my experience you do not want to code your AI application in Lisp or Prolog - the preferred language is IMHO C++.
It takes a little effort to set up the framework, but after that Lisp and Prolog can not compete. They are only nice to learn the concepts of AI thinking.
 
I like Serena said:
From the hyperlink of FunGus: "AI applications are also often written in standard languages like C++ and languages designed for mathematics, such as MATLAB and Lush."

So yes, in my experience you do not want to code your AI application in Lisp or Prolog - the preferred language is IMHO C++.
It takes a little effort to set up the framework, but after that Lisp and Prolog can not compete. They are only nice to learn the concepts of AI thinking.

"Languages designed for mathematics" include all of those that fall under the category of "functional programming" languages. In other words, LISP, Haskell, Mathematica and the likes.

I specialize in AI and would recommend using a pure functional language such as Haskell to program AI systems, although C++ works just as well.
 
I like Serena said:
So yes, in my experience you do not want to code your AI application in Lisp or Prolog - the preferred language is IMHO C++.
It takes a little effort to set up the framework, but after that Lisp and Prolog can not compete. They are only nice to learn the concepts of AI thinking.

It's not an "either/or" choice. There is no reason why you can't use a dialect of Lisp for the large-scale structure of the code and data (with the huge advantage over a procedural language like C++ that there is no real distinction between "code" and "data"), but use C++ or assembler for "small scale" efficiency where that is important

But in any large software application, "efficiency" is usually of no great importance for 99.9% of the lines of code, and premature optimisation is usually a recipe for poor software.

As the previous post implied, if you only know procedural languages, you only know one way of thinking about "programming", and often that is not the best way.
 
Back
Top