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
-1
votes
1 answer

How do I solve name service error in sbcl with slime?

I've recently installed SLIME mode and I can't get it to work. Upon startup (M-x slime) it throws out this error: This is SBCL 2.1.1, an implementation of ANSI Common Lisp. More information about SBCL is available at . SBCL is…
Simponic
  • 1
  • 2
-1
votes
1 answer

Lisp lexical closure - function declaration

I have a function,format-ls: (defun format-ls (ls) (let (( acc ())) (dolist (elt ls) (push "(~A . " acc)) acc)) You can notice that there is a missing parenthesis in the closing line, acc)). Yet my Lisp REPL(sbcl 2.1.1)…
Hxx
  • 1
-1
votes
1 answer

Common Lisp Variable addFraction is unbound

Why does it say that the variable addFraction is Unbound? (defun addFraction (N1 D1 N2 D2) (format t "~d ~d" (+ (+ (lcm D1 D2) N1) (+ (lcm D1 D2) N2)) (lcm D1 D2))) When I ran the code it says this: #
popsymark
  • 9
  • 2
-1
votes
2 answers

do not nest defun (use flet or labels), sbcl REPL does not report all conditions (warnings)

Tests performed on SBCL 1.3.1 I define function xx inside of function xxx. (Originally xx was recursive and there were invariants used from the xxx closure. However the recursion is not important here, xx just returns t) xxx only calls xx. Hence xxx…
user3446498
-1
votes
1 answer

Common Lisp lexer generator that allows state variables

Neither of the two main lexer generators commonly referenced, cl-lex and lispbuilder-lexer allow for state variables in the "action blocks", making it impossible to recognize a c-style multi-line comment, for example. What is a lexer generator in…
ealfonso
  • 6,622
  • 5
  • 39
  • 67
-1
votes
1 answer

Crash While running Pushgp using SBCL 1.1.6.0-3c5581a on mac OS X Yosemite Ver. 10.10.3

The following error message occured While running Pushgp using SBCL 1.1.6.0-3c5581a on mac OS X Yosemite Ver. 10.10.3, what do i do next to correct it and avoid future occurrence? Thanks Producing next generation... Heap exhausted during garbage…
-2
votes
3 answers

how do I pass a list to a common lisp macro?

I am trying to compare the performance of a function and a macro. EDIT: Why do I want to compare the two? Paul Graham wrote in his ON LISP book that macros can be used to make a system more efficient because a lot of the computation can be done at…
user15601609
-2
votes
1 answer

variable unbound in lisp when using threading in sbcl lisp

i am writing a program in sbcl to multiply two numbers using add and shift method. while my normal program would run nicely but when i use threads , the program shows no output and no error message. Is there any mistake in code which i should…
Amit Chahar
  • 2,519
  • 3
  • 18
  • 23
-2
votes
2 answers

(list (list ....))

(list '+ 3 5) (+ 3 5) (list (+ 3 5)) (8) (list (list '+ 3 5)) ((+ 3 5)) Why the result of the third line is different of the result of the second line ?
Gérard
  • 17
  • 4
1 2 3
56
57