views:

247

answers:

4

A new web application may require adding Artificial Intelligence (AI) in the future, e.g. using ProLog. I know it can be done from a Java environment, but I am wondering about the opportunities with modern web languages like Ruby or Python. The latter is considered to be "more scientific" (at least used in that environment), but using Google there seems to be a preliminary ProLog implementation for both.

Any suggestions on modern (open source) web languages (like Python or Ruby) in combination with AI?

A: 

If you used JRuby or Jython you can make use of the existing Java libraries and use either Ruby or Python for the web app. Rails works on JRuby and I have used it to write apps that reuse existing Java code. Not sure of which Python frameworks run on Jython.

sal
JPype is another (arguably better) option. It's aim is to be a bridge to the JVM, so you can access Java libraries from CPython.
Chris S
A: 

You might also find PyKE useful.

Hugh Bothwell
+5  A: 

The selection of language is completely irrelevant, all other things being equal.

If you're trying to do X and there's a library for it in language Y and meshes well with your Web-based framework, then use it.

Without knowing more about what specific areas of AI you're interested in, the question is far too vague to be answered with any more specificity.

Shaggy Frog
I wouldn't say irrelevant. Certain languages have larger AI/machine-learning userbases than others, and therefore will have more tools at your disposal.
Chris S
I believe this is reflected in my answer above.
Shaggy Frog
A: 

You could also use Scala (which is a bit functional and runs on the JVW) and the existing Lift framework for web-stuff.

ziggystar