Setting up SLIME with SBCL or CLISP

This is a discussion on Setting up SLIME with SBCL or CLISP within the lisp forums in Programming Languages category; So, I'm running in XUbuntu (Debian flavor) and installed emacs and slime with through the package manager. I'm trying to get slime to run in SBCL or CLISP as opposed to CMUCL and edited my .emacs file as such: (setq interior-lisp-program "/usr/bin/sbcl") (add-to-list 'load-path "/usr/share/emacs21/site-lisp/slime") (require 'slime) (slime-setup) but when slime loads (via M-x slime) It comes up running CMUCL still... emacs doesn't complain about any errors in my ~/.emacs file but I'm also not sure if its even reading it. Am I doing something horribly wrong. Also when running a ridiculously long loop in slime CMUCL, such as (dotimes ...

Go Back   Application Development Forum > Programming Languages > lisp

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-11-2007, 11:36 AM
jrwats@gmail.com
Guest
 
Default Setting up SLIME with SBCL or CLISP

So, I'm running in XUbuntu (Debian flavor) and installed emacs and
slime with through the package manager. I'm trying to get slime to
run in SBCL or CLISP as opposed to CMUCL and edited my .emacs file as
such:
(setq interior-lisp-program "/usr/bin/sbcl")
(add-to-list 'load-path "/usr/share/emacs21/site-lisp/slime")
(require 'slime)
(slime-setup)

but when slime loads (via M-x slime) It comes up running CMUCL
still... emacs doesn't complain about any errors in my ~/.emacs file
but I'm also not sure if its even reading it. Am I doing something
horribly wrong.

Also when running a ridiculously long loop in slime CMUCL, such as
(dotimes (i 99999)
(print i))

It'll stop and display commencing GC with 13.7MB in use. It just
hangs there and NEVER comes out. Is this an issue with slime, cmucl,
or lisp in general?

Reply With Quote
  #2  
Old 09-11-2007, 11:46 AM
Harald Hanche-Olsen
Guest
 
Default Re: Setting up SLIME with SBCL or CLISP

+ jrwats@gmail.com:

> (setq interior-lisp-program "/usr/bin/sbcl")


That should be inferior-lisp-program ...

> but when slime loads (via M-x slime) It comes up running CMUCL
> still...


You can also use C-u M-x slime to run a non-default lisp underneath.

> emacs doesn't complain about any errors in my ~/.emacs file


Assigning a value to the wrong variable is not an error.

> but I'm also not sure if its even reading it.


It probably is. If you're in doubt, put these lines at the end:

(message "Finished loading .emacs")
(sit-for 5)

It should display the indicated message for five seconds.

--
* Harald Hanche-Olsen <URL:http://www.math.ntnu.no/~hanche/>
- It is undesirable to believe a proposition
when there is no ground whatsoever for supposing it is true.
-- Bertrand Russell
Reply With Quote
  #3  
Old 09-11-2007, 11:59 AM
Jason Sidabras
Guest
 
Default Re: Setting up SLIME with SBCL or CLISP

On Sep 11, 10:36 am, jrw...@gmail.com wrote:
> So, I'm running in XUbuntu (Debian flavor) and installed emacs and
> slime with through the package manager. I'm trying to get slime to
> run in SBCL or CLISP as opposed to CMUCL and edited my .emacs file as
> such:
> (setq interior-lisp-program "/usr/bin/sbcl")
> (add-to-list 'load-path "/usr/share/emacs21/site-lisp/slime")
> (require 'slime)
> (slime-setup)
>
> but when slime loads (via M-x slime) It comes up running CMUCL
> still... emacs doesn't complain about any errors in my ~/.emacs file
> but I'm also not sure if its even reading it. Am I doing something
> horribly wrong.
>
> Also when running a ridiculously long loop in slime CMUCL, such as
> (dotimes (i 99999)
> (print i))
>
> It'll stop and display commencing GC with 13.7MB in use. It just
> hangs there and NEVER comes out. Is this an issue with slime, cmucl,
> or lisp in general?


I can't log into my system right now, but if I remember correctly I
used ~/.emacsrc as my init file.

Reply With Quote
  #4  
Old 09-11-2007, 12:06 PM
Chris Russell
Guest
 
Default Re: Setting up SLIME with SBCL or CLISP

On 11 Sep, 16:36, jrw...@gmail.com wrote:
> So, I'm running in XUbuntu (Debian flavor) and installed emacs and
> slime with through the package manager. I'm trying to get slime to
> run in SBCL or CLISP as opposed to CMUCL and edited my .emacs file as
> such:
> (setq interior-lisp-program "/usr/bin/sbcl")


Try (setq inferior-lisp-program .... )instead

Reply With Quote
  #5  
Old 09-11-2007, 02:04 PM
jrwats@gmail.com
Guest
 
Default Re: Setting up SLIME with SBCL or CLISP

Thank you - it was that dumb typo. And emacs does use the .emacs
file.

Does anyone know anything about the Garbage Collection hang?

"commencing GC with 13.7MB in use. It just
hangs there and NEVER comes out. Is this an issue with slime, cmucl,
or lisp in general? "

Reply With Quote
  #6  
Old 09-11-2007, 04:56 PM
Raymond Toy
Guest
 
Default Re: Setting up SLIME with SBCL or CLISP

>>>>> "jrwats" == jrwats <jrwats@gmail.com> writes:

jrwats> Thank you - it was that dumb typo. And emacs does use the .emacs
jrwats> file.

jrwats> Does anyone know anything about the Garbage Collection hang?

jrwats> "commencing GC with 13.7MB in use. It just
jrwats> hangs there and NEVER comes out. Is this an issue with slime, cmucl,
jrwats> or lisp in general? "

I don't see this with cmucl, slime, and xemacs. I see a bunch of
numbers being printed, and I also see GC done once in a while (in a
typeout frame).

Is Lisp still running? Is emacs/xemacs busy handling the output?

BTW, this is on a fairly old version of slime. I need to update.

Ray
Reply With Quote
  #7  
Old 09-11-2007, 06:19 PM
Thomas Bakketun
Guest
 
Default Re: Setting up SLIME with SBCL or CLISP

jrwats@gmail.com wrote:

> Does anyone know anything about the Garbage Collection hang?
>
> "commencing GC with 13.7MB in use. It just
> hangs there and NEVER comes out. Is this an issue with slime, cmucl,
> or lisp in general? "


It's a bug in SLIME when using CMUCL. Looks like it has been fixed in later
versions of SLIME (I can't reproduce it in 2007-02-26). Anyway, you can
simpy turn off those messages (and avoid the bug) by putting this line in
your .cmucl-init.lisp:

(setf *gc-verbose* nil)

Also, please note that the SLIME installed from a Debian package is likely
to be quite old. You should consider installing from CVS instead.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 09:34 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.