Questions tagged [sbcl]

Steel Bank Common Lisp: an open-source compiler and runtime implementation of ANSI Common Lisp.

SBCL is an open-source implementation of ANSI Common Lisp (1994), the Common Lisp standard. It runs on Linux, FreeBSD and variants, MAC OS X, and recently on Windows (x64 support in progress). It features unicode support, native interface to C libraries (UFFI), threading (Windows support not official yet), and a native compiler.

849 questions
0
votes
1 answer

debug minimax game awele "oware" in lisp

Hello I'm new at lisp and I have as project for the university to develop a game "oware" with a minimax "ai" and im stuck on this error and im really lost on de debug i have this function (defun alpha-beta (player board n-score s-score alpha beta…
0
votes
1 answer

load library from lisp script, working directory and path

I need to load a library in a LISP script. The script "loader.lisp" and the library "mylib.dll" are in the same folder "parent_dir". If I run the script from inside the folder (current directory = "parent_dir") it works fine: (load "loader.lisp")…
UnableToLoad
  • 315
  • 6
  • 18
0
votes
1 answer

slime v.2014-04-27 sbcl v.1.2.0 lisp in-package does not change *package* after compilation and loading command C-c C-k

This is the code: (defpackage :morse (:use :common-lisp)) (in-package :morse) ... When I use C-c C-k (Compile/Load file): CL-USER> *package* # ; compiling file "/home/frederik/Lisp/Code/mycode/marco_baringer.lisp"…
user1614113
  • 85
  • 2
  • 9
0
votes
1 answer

How do I make SBCL invoke debugger on any condition/error?

For instance, when SBCL says The value NIL is not of type CONS I'd like to break execution and invoke the debugger at the point of error. Right now it is bubbled up all the way to the caller (the Wookie async web server, in my case) where it is…
minya
  • 325
  • 1
  • 9
0
votes
1 answer

with-html-output adds string when using :li

I'm working my way through Lisp For The Web by Adam Tornhill and I'm stuck at generating a html page with an li element in it. (with-html-output (*standard-output* nil :prologue t :indent t) (htm (:li (:a :href "Link" "Vote!") …
Held
  • 15
  • 1
  • 3
0
votes
1 answer

common lisp defclass make-instance usage in custom macro

I have define a macro that create a new class and then defines a constant that creates an instance of the newly defined class: (defmacro my-class (name inst) `(progn (defclass ,name nil nil) (defconstant ,inst (make-instance…
José
  • 3,041
  • 8
  • 37
  • 58
0
votes
0 answers

"premature end of core file" when running SBCL common lisp interpreter

I tried installing SBCL on Debian 6.0, and I tried to run it to get a lisp interpreter. When I run it, I get the following output: #> sbcl This is SBCL 1.0.40.0.debian, an implementation of ANSI Common Lisp. More information about SBCL is available…
Justin T Conroy
  • 327
  • 3
  • 12
0
votes
0 answers

Calling a .bat/.ps file from within a lisp file

How do we call a .bat file or powershell file from a lisp file in SBCL or CCL? We need to do this because the batch file calls gprolog commands with some arguments. Note: LispWorks has something like below: (system:call-system-showing-output…
RAbraham
  • 5,956
  • 8
  • 45
  • 80
0
votes
1 answer

"Permission denied" while building sbcl from source

While compiling the sbcl from source I am getting an error like: make: Entering directory `/home/me/projects/sbcl/tools-for-build' cc -fno-omit-frame-pointer -I../src/runtime determine-endianness.c -ldl -o determine-endianness make: Leaving…
Bleeding Fingers
  • 6,993
  • 7
  • 46
  • 74
0
votes
2 answers

Recompile doesn't correct typo in function call

I've been seeing this a lot lately and am not sure if it is an SBCL issue, an Emacs problem, a SLIME problem, or my own understanding of what it means to "compile" a lisp file. I will have a function, say this: (defun some-function (x)…
johnbakers
  • 24,158
  • 24
  • 130
  • 258
0
votes
2 answers

Can someone tell me how do I run a sample game using this lisp code?

I am extremely new to lisp. I have the following piece of code that I obtained online: http://goo.gl/tXReiS I essentially need to run a sample game using this code. I installed Steel Bank Common Lisp and did (load "file.lisp") and I was able to…
gran_profaci
  • 8,087
  • 15
  • 66
  • 99
0
votes
1 answer

Hunchentoot 1.0 returns only empty responses

I'm using an Intel Mac with Mac OS 10.5 and SBCL 1.0.29. I've done pre-1.0 Hunchentoot development here before, so I've had that installed (via asdf-install). Recently I started a new project, and decided I'd start from Hunchentoot 1.0. I…
Ken
  • 437
  • 7
  • 10
0
votes
2 answers

How to generate a string out of an (error)object without actual printing?

I want to retrieve the string, generated by write for further processing without doing any actual output, but write seems always to also output into the REPL CL-USER>(let ((err-string (write (make-instance 'error) :stream nil))) …
Sim
  • 4,199
  • 4
  • 39
  • 77
0
votes
2 answers

slime prints my (format ...) calls only when called function ends

I have emacs + sbcl + slime installed. I have this function defined (defun jugar () (let* ((nodoActual *nodo-inicial*) (estadoActual (nodo-estado nodoActual)) (timeStart nil) (timeEnd nil) ) (loop while (not…
gosku
  • 23
  • 3
0
votes
1 answer

How to protect main-thread from errors caused by children (SBCL)

I am currently playing with sb-thread API, provided by SBCL, wondering what happens if an error is thrown inside a started thread and how to ensure that only that process is affected (and dies), and no other process is, as apparently the debugger…
Sim
  • 4,199
  • 4
  • 39
  • 77