Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: How good is Perl for AI?

by Chmrr (Vicar)
on Nov 07, 2001 at 08:47 UTC ( #123767=note: print w/replies, xml ) Need Help??

in reply to How good is Perl for AI?

First off, as others have noted, the Perl AI mailing list is indeed functionning -- but it currently very low traffic. The following headers may help:

List-Post: <> List-Help: <> List-Unsubscribe: <> List-Subscribe: <>

As for using Perl for AI -- I have fooled around with the idea before. I found Perl's speed to be the only major limiting factor. I answered the question "why Perl?" with the following points:

  • Because I know it, and am comfortable with it. At that point, I was unwilling to leard Scheme or Lisp just to do AI.
  • Because I learn more writing my own system. There are innumerable more implementations out there, some more well-known than others. If I take it off the shelf and use it, I gain no deeper understanding of how it works.
  • Because I can tailor it to my needs. I was planning on making some fairly strange tweaks to how basic GP worked -- and to jump right into someone else's code, which might not have been built with such extensibility in mind, is a scary thought.
  • Because it's mostly cross-platform. Yes, so is Java and C, and lisp is mostly. But so is Perl -- why not?
  • Because I want to be crazy. Nobody had ever written a complete GP system in Perl. I didn't want that to be a possible point of leverage against a language I liked so much. ;>
  • Because I want to give something back. This goes along with writing my own, as well as being crazy. I was hoping to come out of the project with something that might be mildly useful to others. The chances of me doing that had I chosen another language were basically nil. I'm still trying to get myself to put it on CPAN, though. It'll get there Real Soon Now, I promise. I also got pings from the person who is writing a new genetic algorithms library. Unfortunatly, I've been lax in getting my implementation working with his system.

Anyways, just some pseudo-random thoughts.

perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^+*`^ ve^#$&V"+@( NO CARRIER'

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://123767]
[Corion]: But now I think statically (re)generating the Pod tests is a saner approach, and likely I'll regenerate the tests either in Makefile.PL or from xt/ but have them live below t/
[choroba]: I keep the snippets in files of their own, and use a Makefile to syntax highlight them and insert them into slides, while also running them and inserting the output if required
[Corion]: choroba: Ooooh - I didn't think of that! I write my presentations as POD and if it "roughly" looks like Perl code, I should also syntax-check that...
[haukex]: Yes sorry I don't run them all the time, my POD tests are only run as author tests (and are excluded when I'm using Devel::Cover)
[Corion]: choroba: Hmm - no, I keep the snippets inline, but as my framework also has support for capturing output etc., maybe I should do the same...
[Corion]: haukex: Yes, that approach is sane, and it heals the fragility of Pod parsers in a nice way while still syntax-checking stuff
[choroba]: Unfortunately, none of it is online
[haukex]: I figured that POD tests make sense, but only as author tests
[choroba]: I mean, the slides are, but not the makefile with scripts to create them
[Corion]: haukex: I've only now arrived at that revelation ;)

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2017-02-27 12:27 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (385 votes). Check out past polls.