Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Artificial Intelligence Programming in Perl

by theorbtwo (Prior)
on Jul 01, 2002 at 04:28 UTC ( #178467=note: print w/ replies, xml ) Need Help??


in reply to Artificial Intelligence Programming in Perl

I'd suspect that the reasons end up being mostly speed and inerta.

Update: Fixed my bad grammar.


We are using here a powerful strategy of synthesis: wishful thinking. -- The Wizard Book


Comment on Re: Artificial Intelligence Programming in Perl
Re: Re: Artificial Intelligence Programming in Perl
by cjf (Parson) on Jul 01, 2002 at 05:47 UTC

    I don't think Perl's speed (as in execution time) is a major concern for most AI programming. It's frequently noted that developer time is often far more valuable then execution time for other projects, why would AI programming be any different?

    Inertia, on the other hand, would definately play a part. If you've been programming in Lisp your entire life, why not continue to use it? Does Perl really offer enough advantages in this area for it to be worth learning? Even if it did, chances are the learning curve would reduce your productivity for an extended period of time (you mean every second character doesn't have to be a parenthesis ?).

    That said, not everyone starts programming with Lisp or Java, in fact many start with Perl. Is there any reason why they shouldn't continue to use Perl? Why would we not expect to see its uses in AI gradually increase?

      Sorry. For quite a while, I was involved (as a trained monkey) for a compony doing AI as it's core product. Thus, unlike most people, when I think AI I don't think "way out-there research toy", I think "oh, god, why can't they write us tools that work instead of whining about how sandboxing is theoreticly impossible because of the halting problem". Speed matters for them. They did it all in Java, (which was a mistake; should have been C or C++, efficency).

      Anyway, what I meant about inertia is more of an instutional thing. The compony I worked for wouldn't use perl, even for things like log-munging, for quite a while because the productivity-analisys tools that ate their CVS couldn't handle it. (The place wasn't always run the most sanely -- I no longer work there because they no longer exist.) You use the languages that your advisors know, and you use the languages that the journals publish, and you use the languages that the prior art is written in.


      We are using here a powerful strategy of synthesis: wishful thinking. -- The Wizard Book

      I don't think Perl's speed (as in execution time) is a major concern for most AI programming

      Hmm, on this note I disagree. AI tends to be computationally expensive. AL (ie GA) even more so. Even a minor efficiency improvement can make a _big_ difference.

      It's frequently noted that developer time is often far more valuable then execution time for other projects, why would AI programming be any different?

      Well, this is true and not true. IME its true when the speed differences are marginal at best. Implementing an efficient algorithm in C and the same in Perl will most likely produce acceptable performance for the end product with much lower dev times. However with GA/AI/AL the same is not true. (Well, from what ive seen.) Lower development times are overwhelemed by extremely slow execution times.

      Yves / DeMerphq
      ---
      Writing a good benchmark isnt as easy as it might look.

        I agree with your disagreement ;).

        As I'm learning more about the subject (link, link, link) I can see how execution time could be very important. I've also noticed that a lot of the AI projects/libraries out there tend to have a few very computationally expensive parts, and many not so expensive parts. Wouldn't such a case be perfect for a Perl-Inline::C combination?

        Or am I just showing my Perl bias?

Re: Re: Artificial Intelligence Programming in Perl
by jettero (Monsignor) on Jul 02, 2002 at 22:12 UTC
    I've been working on AI::jNeural (and the C library) as often as time and interest allows. I'd like to see a lot more stuff on CPAN under this topic, that's for sure...
Reaped: Re^2: Artificial Intelligence Programming in Perl
by NodeReaper (Curate) on Oct 18, 2009 at 09:01 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://178467]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2014-12-18 11:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (51 votes), past polls