Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 146841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:40:31+00:00 2026-05-11T08:40:31+00:00

I have been reading a lot about Reinforcement Learning lately, and I have found

  • 0

I have been reading a lot about Reinforcement Learning lately, and I have found ‘Reinforcement Learning: An Introduction’ to be an excellent guide. The author’s helpfully provice source code for a lot of their worked examples.

Before I begin the question I should point out that my practical knowledge of lisp is minimal. I know the basic concepts and how it works, but I have never really used lisp in a meaningful way, so it is likely I am just doing something incredibly n00b-ish. 🙂

Also, the author states on his page that he will not answer questions about his code, so I did not contact him, and figured Stack Overflow would be a much better choice.

I have been trying to run the code on a linux machine, using both GNU’s CLISP and SBCL but have not been able to run it. I keep getting a whole list of errors using either interpreter. In particular, most of the code appears to use a lot of utilities contained in a file ‘utilities.lisp’ which contains the lines

(defpackage :rss-utilities   (:use :common-lisp :ccl)   (:nicknames :ut))  (in-package :ut) 

The :ccl seems to refer to some kind of Mac-based version of lisp, but I could not confirm this, it could just be some other package of code.

> * (load 'utilities.lisp') > > debugger invoked on a > SB-KERNEL:SIMPLE-PACKAGE-ERROR in > thread #<THREAD 'initial thread' > RUNNING {100266AC51}>:   The name > 'CCL' does not designate any package. >  > Type HELP for debugger help, or > (SB-EXT:QUIT) to exit from SBCL. >  > restarts (invokable by number or by > possibly-abbreviated name):   0: > [ABORT] Exit debugger, returning to > top level. >  > (SB-INT:%FIND-PACKAGE-OR-LOSE 'CCL') 

I tried removing this particular piece (changing the line to

  (:use :common-lisp) 

but that just created more errors.

> ; in: LAMBDA NIL ;     (+ > RSS-UTILITIES::*MENUBAR-BOTTOM* ;      > (/ (- RSS-UTILITIES::MAX-V > RSS-UTILITIES::V-SIZE) 2)) ;  ; caught > WARNING: ;   undefined variable: > *MENUBAR-BOTTOM* >  > ;     (- > RSS-UTILITIES::*SCREEN-HEIGHT* > RSS-UTILITIES::*MENUBAR-BOTTOM*) ;  ; > caught WARNING: ;   undefined > variable: *SCREEN-HEIGHT* >  > ;     (IF RSS-UTILITIES::CONTAINER ;   > (RSS-UTILITIES::POINT-H ;          > (RSS-UTILITIES::VIEW-SIZE > RSS-UTILITIES::CONTAINER)) ;         > RSS-UTILITIES::*SCREEN-WIDTH*) ;  ; > caught WARNING: ;   undefined > variable: *SCREEN-WIDTH* >  > ;     (RSS-UTILITIES::POINT-H > (RSS-UTILITIES::VIEW-SIZE > RSS-UTILITIES::VIEW)) ;  ; caught > STYLE-WARNING: ;   undefined function: > POINT-H >  > ;     (RSS-UTILITIES::POINT-V > (RSS-UTILITIES::VIEW-SIZE > RSS-UTILITIES::VIEW)) ;  ; caught > STYLE-WARNING: ;   undefined function: > POINT-V 

Anybody got any idea how I can run this code? Am I just totally ignorant of all things lisp?

UPDATE [March 2009]: I installed Clozure, but was still not able to get the code to run.

At the CCL command prompt, the command

(load 'utilities.lisp') 

results in the following error output:

;Compiler warnings : ;   In CENTER-VIEW: Undeclared free variable *SCREEN-HEIGHT* ;   In CENTER-VIEW: Undeclared free variable *SCREEN-WIDTH* ;   In CENTER-VIEW: Undeclared free variable *MENUBAR-BOTTOM* (2 references) > Error: Undefined function RANDOM-STATE called with arguments (64497 9) . > While executing: CCL::READ-DISPATCH, in process listener(1). > Type :GO to continue, :POP to abort, :R for a list of available restarts. > If continued: Retry applying RANDOM-STATE to (64497 9). > Type :? for other options. 1 > 

Unfortuately, I’m still learning about lisp, so while I have a sense that something is not fully defined, I do not really understand how to read these error messages.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T08:40:31+00:00Added an answer on May 11, 2026 at 8:40 am

    That code is for Macintosh Common Lisp (MCL). It will only run there. Using Clozure CL (CCL) will not help. You would have to comment the graphics code. The random state stuff also is slightly special for MCL. You have to port it to portable Common Lisp (make-random-state, etc.). Also the file names are special for the Mac.

    Clozure CL is a fork from Macintosh Common Lisp, but has be changed to Unix conventions (pathnames, …) and does not include the special graphics code of MCL.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lately I have been reading a lot of blog topics about big sites(facebook, twitter,
I have been reading a lot about Haskell lately, and the benefits that it
I have been reading a lot of articles lately about programming practice, design and
I have been reading about Factory pattern a lot lately. I am trying to
Lately I have been reading about web crawling, indexing and serving. I have found
I have been reading a lot about QR codes and how the code itself
I have been reading a lot about C++ casting and I am starting to
I have been reading a lot on design patterns lately and some of them
I have been reading a lot of Javascript lately and I have been noticing
I have been reading a lot about how flash development/design had died, and as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.