views:

624

answers:

4

For something like a personal recommendation system, machine learning type of stuff on a website, what language would be best?

+12  A: 

The language you know best would be best.

I mean that half-seriously. Given the brief description of your project, there's no reason to believe any of the languages you list would be any better or worse than the others. Those three languages are adequate for approximately similar tasks, so you should pick the one you are most comfortable with and proceed.

Any other recommendations would be advocacy for one language or the other, with no real basis on which to evaluate them. Your description is just too vague.

Bill Karwin
A: 

All of the points that Bill Karwin have brought up are entirely valid: You should really operate in what you are most comfortable with.

If that isn't a factor, I would personally suggest Ruby. It's an incredibly powerful language that draws a lot of commonalities with Lisp and is probably just as good, if not better, for AI programming for all the same reasons Lisp was: it's an extremely dynamic, self-modifiable language. As an added benefit Ruby has a really nice standard library including some great libs like the distributed computed library "dRuby".

Robotsu
A: 

I recently did some research into this for a project at my day job. It was for a recommendation system and the options were php,perl or python.

PHP was out almost immediately, there were no good 3rd party open source libraries and the language itself is not as well suited to any kind of complex real programming.

Python had a few libraries that i wanted to try out and Perl didn't, so I went with Python. In the end, none of those libraries were useful to me but besides library support I prefer python personally anyway so that was the right decision.

Because your question is very vague I can only suggest that you don't use PHP and select the language based on library support for your specific problem area and your comfort in that language. I would say that library support is the biggest factor in your decision and language familiarity/preference is a close second.

Freshhawk
There are libraries for virtually anything in PHP. And it's absolutely suitable to write complex applications with it. I suggest some more research before posting such nonsense.
Techpriester
Developing a large app in PHP ended up frustrating me (though PHP5 makes some huge improvements). However, to say that it has no good 3rd-party libraries is just plain wrong. It doesn't implement library management very well, but everything you need is likely there.
Matchu
+1  A: 
  1. Programming Collective Intelligence - Building Smart Web 2.0 Applications

  2. Collective Intelligence in Action

BianJiang