Loading ...
Sorry, an error occurred while loading the content.

PAIP code

Expand Messages
  • AMANULLAH NURULLAH
    Hi, this query is regarding the book paradigms of AI programming by Peter Norvig. I am trying to experiment of the STUDENT program in chapter 7. I
    Message 1 of 3 , Apr 7, 2004
    • 0 Attachment
      Hi, this query is regarding the book "paradigms of AI
      programming" by Peter Norvig.

      I am trying to experiment of the STUDENT program in
      chapter 7. I downloaded 'paip.zip' and followed the
      instructions, but i have the followng problem. Can
      some one help? I am using the gnome common lisp.

      When i say
      (load "auxfns.lisp")

      GCL says
      Loading auxfns.lisp
      Finished loading auxfns.lisp
      T



      Then i say
      (requires "examples")

      and the GCL says

      Loading /home/nurullah/AI/Project/paip/examples.lisp
      Loading /home/nurullah/AI/Project/paip/tutor.lisp
      Loading /home/nurullah/AI/Project/paip/auxfns.lisp
      Warning: SYMBOL is being redefined.
      Finished loading
      /home/nurullah/AI/Project/paip/auxfns.lisp



      Error: (QUOTE SET-CHAPTER) is not of type SYMBOL.
      Fast links are on: do (si::use-fast-links nil) for
      debugging
      Error signalled by DEFUN.
      Broken at DEFUN. Type :H for Help.

      Then i try saying
      (do-examples :all)

      GCL says

      0

      Then whichever chapter # i specify, the GCL says the
      following

      Error: The function SET-CHAPTER is undefined.
      Fast links are on: do (si::use-fast-links nil) for
      debugging
      Error signalled by LET.
      Backtrace: system:universal-error-handler > evalhook >
      do-examples > block > let > let > tagbody > setq > + >
      do-chapter > LET



      Broken at DEFUN.


      Can somebody help me run the PAIP code.

      thanx
      aman



      ________________________________________________________________________
      Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.
      Go to: http://in.insurance.yahoo.com/licspecial/index.html
    • Paolo Amoroso
      ... I suggest that you use an implementation more conforming to the ANSI Common Lisp standard, such as CMUCL. Although things are improving for GCL, its level
      Message 2 of 3 , Apr 9, 2004
      • 0 Attachment
        AMANULLAH NURULLAH <amanumr@...> writes:

        > I am trying to experiment of the STUDENT program in
        > chapter 7. I downloaded 'paip.zip' and followed the
        > instructions, but i have the followng problem. Can
        > some one help? I am using the gnome common lisp.

        I suggest that you use an implementation more conforming to the ANSI
        Common Lisp standard, such as CMUCL. Although things are improving
        for GCL, its level of compliance may not be adequate for running the
        PAIP code.


        Paolo
        --
        Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film
      • chen yu
        Hello, I have read part of Mr. Norvig s PAIP code and run some examples. Here some advice is given, and I hope it is helpful to you. 1. I have found PAIP code
        Message 3 of 3 , Apr 13, 2004
        • 0 Attachment
          Hello,
          I have read part of Mr. Norvig's PAIP code and run some examples. Here some advice is given, and I hope it is helpful to you.
          1. I have found PAIP code are written before 1997, it means that they are old code and haven't be maintained by 7 years. Maybe bugs haven't found by the writer after previous modification. Maybe your compiler is not 100 percent compatible to the source code. Therefore it can't be run correct.
           
          2. I have faced similar problem with you, that's, can't run the program as you. My steps are following:
            2.1. I have read 'examples.lisp' file and find the related test code.
            2.2. Then trying one function by function in "examples.lisp" for debugging.
            2.3. It is sure that you will find the error "function is not defined". Then you can search the "function" definition in the source directory. 
              2.3.1 If you find it, try to load the find before "tutor.lisp", test this function.
              2.3.2 go back to step 2.1.
           
           
          3. If you are patient, it is better to try to test from chapter 1 "Introduction to Lisp".
          4. In read the source code, I find it is difficult to distinguish the "built-in function", "user-defined function" and "user-defined datastructure" because it doesn't have the "special remark". Therefore it you can't find the "function" definition, pleaser remind yourself it maybe "built-in function" or "user-defined datastructure".
          For "built-in function", you can find it in the http://www.lispworks.com/reference/HyperSpec/Front/index.htm.
          For "user-defined datastructure", you should read the source code carefully, no other ways.
           
           
           
          I like the lisp programing style (short and powerful). But the stupid lisp programming tools makes me annoying (No intelligent sensing, No GUI debugging tools, long debugging time costs).
          Now I have transferred to prolog as tools.
           
           
          Thank you for your attention.
          Best regards/chenyu
           
           
           
           
           
           
                
                
           
           
           
           
           
           
           
           
           


          AMANULLAH NURULLAH <amanumr@...> wrote:
          Hi, this query is regarding the book "paradigms of AI
          programming" by Peter Norvig.

          I am trying to experiment of the STUDENT program in
          chapter 7.   I downloaded 'paip.zip' and followed the
          instructions, but i have the followng problem.  Can
          some one help?  I am using the gnome common lisp.

          When i say
          (load "auxfns.lisp")

          GCL says
          Loading auxfns.lisp
          Finished loading auxfns.lisp
          T
                                                               
                                                               
                                                          
          Then i say
          (requires "examples")

          and the GCL says

          Loading /home/nurullah/AI/Project/paip/examples.lisp
          Loading /home/nurullah/AI/Project/paip/tutor.lisp
          Loading /home/nurullah/AI/Project/paip/auxfns.lisp
          Warning: SYMBOL is being redefined.
          Finished loading
          /home/nurullah/AI/Project/paip/auxfns.lisp
                                                               
                                                               
                                                          
          Error: (QUOTE SET-CHAPTER) is not of type SYMBOL.
          Fast links are on: do (si::use-fast-links nil) for
          debugging
          Error signalled by DEFUN.
          Broken at DEFUN.  Type :H for Help.

          Then i try saying
          (do-examples :all)

          GCL says

          0

          Then whichever chapter # i specify,  the GCL says the
          following

          Error: The function SET-CHAPTER is undefined.
          Fast links are on: do (si::use-fast-links nil) for
          debugging
          Error signalled by LET.
          Backtrace: system:universal-error-handler > evalhook >
          do-examples > block > let > let > tagbody > setq > + >
          do-chapter > LET
                                                               
                                                               
                                                          
          Broken at DEFUN.


          Can somebody help me run the PAIP code.

          thanx
          aman



          ________________________________________________________________________
          Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.
          Go to: http://in.insurance.yahoo.com/licspecial/index.html



          Do You Yahoo!?
          惠普TT游戏剧,玩游戏,中大奖!

        Your message has been successfully submitted and would be delivered to recipients shortly.