Newsgroups: comp.lang.lisp, comp.lang.functional
From: Mark Tarver <dr.mtar...@ukonline.co.uk>
Date: Fri, 22 Feb 2008 03:59:02 -0800 (PST)
Local: Fri 22 Feb 2008 11:59
Subject: Re: a golden oldie challenge: Eliza
On 22 Feb, 11:49, Mark Tarver <dr.mtar...@ukonline.co.uk> wrote:
> Having got 3936 LOC through a 4000 LOC implementation, I thought I'd Well here is my shot at it in Qi. Total LOC excluding script is 70 > do some recreational > hacking and do an old old program I've not looked at for some time - > Eliza. You all know Eliza well enough for me not to have to spell it > out. The challenge is to implement or dig up an Eliza program (you > don't have to write it yourself) in your favourite FPL. Note that the > script that drives Eliza's responses should not be counted towards the > LOC count. Some constraints. > 1. The script itself should be changeable by any novice. That is to > 2. The program should receive keyboard input from the user - > During the Harrop Wars on comp.lang.lisp a lot of stuff was thrown > Oh last thing; don't get too uptight about this. It's only a bit of > Mark LOC. You should run it under Qi 9.2 (latest release) because the system function 'read-chars-as-stringlist' had a bug that was patched in that release. My script is very boring ;). I looked for a Haskell/ML equivalent and found zilch. Norvig's PAIP Mark (define eliza (define eliza-loop (define respond-with (define no-match? (define user (define whitespace? (define user-loop (define remove-if (define pmatch (define pmatch-help (define nilbind (define consbind (define rep (define value-in You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||