Programming language and artificial intelligence

Click For Summary

Discussion Overview

The discussion revolves around the programming languages suitable for creating artificial intelligence (AI) applications. Participants explore various languages, their strengths, and their applicability in AI development, including both general-purpose and specialized languages.

Discussion Character

  • Debate/contested
  • Technical explanation
  • Exploratory

Main Points Raised

  • Some participants suggest that any programming language can be used for AI, while others mention specific languages like LISP and C++ as more suitable.
  • One participant highlights that LISP is often associated with AI but expresses a preference for C++ due to its efficiency and framework setup.
  • Another participant notes that AI applications are frequently written in standard languages like C++ and MATLAB, arguing against the use of LISP or Prolog for practical applications.
  • There is a suggestion that functional programming languages, such as Haskell, could be beneficial for AI programming, although C++ is also considered effective.
  • One participant argues for a hybrid approach, using LISP for high-level structure and C++ for performance-critical sections, emphasizing that efficiency is not always paramount in large applications.
  • Concerns are raised about the limitations of procedural programming as a singular approach to programming, suggesting that it may not encompass the best methodologies for AI development.

Areas of Agreement / Disagreement

Participants express differing opinions on the most suitable programming languages for AI, with no consensus reached. Some advocate for C++ and functional languages, while others defend LISP and Prolog as valuable for learning AI concepts.

Contextual Notes

Participants reference various programming languages and their applications in AI without resolving the debate over their relative merits. The discussion reflects a range of experiences and preferences, highlighting the complexity of language choice in AI development.

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.
 

Similar threads

Replies
38
Views
4K
  • · Replies 13 ·
Replies
13
Views
3K
Replies
2
Views
2K
Replies
15
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 25 ·
Replies
25
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
4
Views
3K
Replies
86
Views
3K