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
2 answers

modify plist inside list?

I have a list of plists such as '((:atom Toddler :visited nil :on-clauses (0 1)) (:atom Child :visited nil :on-clauses 1)) how should I change the :onclauses property on a given :atom? I'd like to update this property, e.g. making the second…
bruno cuconato
  • 164
  • 1
  • 9
0
votes
1 answer

How to install MJRCALC-system in SBCL by Quicklisp

I've installed SBCL with Quicklisp in my Tumbleweed. Quicklisp has also ASDF inbuilt. After that I also intalled MJRCALC-system in Home/quicklisp/local-projects/mjrcalc-folder. Quicklisp (and ASDF) can recognize the system (in SBCL): (ql:quickload…
0
votes
1 answer

Common lisp reading a gzipped stream line by line

I am currently dealing with a problem, where I have to read a zipped file line by line, and further on process each line and do something with it. I managed to read from stdin using the following code: (defun process () (princ…
sdgaw erzswer
  • 2,182
  • 2
  • 26
  • 45
0
votes
1 answer

Optimisation options sbcl

How to set optimization options like "speed 3" for all functions? (declaim (optimize (speed 3) (debug 0) (safety 0)) Doesnt work(
djkah11
  • 446
  • 5
  • 21
0
votes
1 answer

Generic Function cannot find applicable method

When I call (draw win) I get an error the "generic function can't find applicable method. I have just gotten into CLOS and I am using sdl2kit to simply render a window. (defclass game-window (kit.sdl2:window) ((rotation :initform…
ZhangBing
  • 45
  • 1
  • 11
0
votes
2 answers

Recursion in SBCL

I am having an issue with SBCL (on linux) which might be related to tail recursion (not that I'm entirely sure what that is). I am adding the code this time (it looks long but that's because I stretched it all out). The deal is that I have a…
Todd Pierce
  • 161
  • 7
0
votes
1 answer

how are functions defined in the lisp dialect used in the little lisper 1974 edition

The first function definition in the 1974 edition of the Little Lisper appears as follows: (ISLAT (LAMBDA (L) (COND ((NULL L) T) ((ATOM (CAR L))(ISLAT (CDR L))) (T F) ) )) This doesn't look like a proper function…
decuser
  • 238
  • 5
  • 20
0
votes
1 answer

Common lisp read from FIFO with timeout

So I have some code like (let ((file (open cur-fifo :if-does-not-exist :create))) (format t "~A~%" (read-line file nil)) (close file)) Which as far as I can tell works fine, except that this will block indefinitely if no data was written to…
Kahr Kunne
  • 332
  • 1
  • 3
  • 14
0
votes
1 answer

Difficulty reading input pipe in SBCL

I am slowly getting closer to be able to read and write to/from named pipes of a background process through SBCL. What I do is kick off the program I am trying to read/write from/to: todd@ubuntu:~/CoreNLP$ cat ./spin | /usr/bin/java -cp "*" -Xmx2g…
Todd Pierce
  • 161
  • 7
0
votes
1 answer

Getting started with ASDF package management and Common Lisp

I'm having trouble getting started with ASDF and Common Lisp. How can I get a minimal example working?
audrow
  • 143
  • 1
  • 9
0
votes
2 answers

how to make clisp or sbcl use all cpu cores availble?

Over a remote ssh connection, I'm trying to cross-compile sbcl using clisp. The steps I've followed thus far are such: I downloaded most recent sbcl source, (at this time sbcl-1.3.7), uncompressed it, and entered its source directory. Then to build…
0
votes
0 answers

How can I create a global variable in Common LISP?

I tried using setf in the "toplevel" of my program: (setf x 17) But SBCL version 1.3.1 gives me an error message: ; in: SETF X ; (SETF X 17) ; ==> ; (SETQ X 17) ; ; caught WARNING: ; undefined variable: X ; ; compilation unit finished ; …
hugomg
  • 68,213
  • 24
  • 160
  • 246
0
votes
1 answer

Loading quicklisp package for use in another lisp file

I have downloaded a large software project FriCAS which I have compiled from source and using SBCL. This was just a matter of using GNU .configure - I am a complete Lisp newbie. However, in order to add some further functionality I have - by very…
Alasdair
  • 1,300
  • 4
  • 16
  • 28
0
votes
2 answers

LISP: Run program in Ubuntu

I am newbie in lisp I have installed Clisp in my ubuntu 14.04 machine and SBCL too. My Program in TextEditor looks like this: ( hello world ) but i am getting the following error: user@user:~/Desktop/lisp$ ./test.lisp ./test.lisp: line 1: i:…
ojas
  • 2,150
  • 5
  • 22
  • 37
0
votes
1 answer

Emacs Slime - Comma doesn't work

I have emacs 24.5.1 on windows with slime installed. I am using sbcl for lisp. When I open up slime, it works, but whenever I try to use comma to invoke a command, it just enters a comma. I can't get to the slime command menu. Is there any other…
Laren Mortensen
  • 127
  • 2
  • 8