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

Format error in Steel Bank Common Lisp in Slime Mode

If I run this code (format t "~a" "hello world") in sbcl's default REPL, the output is "hello world" as expected. However, when I try to run the same code in slime mode in emacs, it throws the following error: eval: Wrong type argument: stringp,…
0
votes
1 answer

Evaluating expressions in SLIME while using STEP

I am using SLIME with SBCL. Normally in SBCL, I can do (step (call-some-function 1 2 3)) and I will be able to step through/into/out of each line of code, as well as executing arbitrary expressions of my own to see what the current state of certain…
wrongusername
  • 18,564
  • 40
  • 130
  • 214
0
votes
2 answers

Is it possible in Common Lisp to disable return values for specified functions?

I would like to know whether or not it's possible to disable return values for specified functions. I am using compiler SBCL. I am asking this, because it takes a while to print the return value, and I don't even need it. Any ideas? OK, it does the…
Pea Ce
  • 1
  • 1
0
votes
1 answer

SLIME, SBCL, and EMACS setup not resulting in expected output

I just set up Slime and am immediately noticing some issues I can't seem to resolve. This is the result I get when I try to evaluate and print foo (C-c C-p) I thought this would return 6 instead of the previous defined value of foo which was…
Tyrick
  • 2,776
  • 3
  • 23
  • 33
0
votes
2 answers

sbcl error on export symbols

I use the "pregexp" package for regular expression operations in SBCL. Because the functions is not defined in a package, I have the codes below to wrap it: --------------- in the file "foo.lisp" ----------------- (defpackage :pregexp (:use…
xiepan
  • 623
  • 4
  • 13
0
votes
1 answer

How do I load cl-opengl and lispbuilder-sdl-image automatically at emacs startup?

How do I load cl-opengl and lispbuilder-sdl-image automatically at emacs startup? now i have to slime-compile-load these commands in emacs at startup to use cl-opengl and image: (asdf:load-system :cl-opengl) (asdf:load-system…
user1438567
0
votes
1 answer

Loading AllegroServe

I'm trying to (require :aserve) but get this error: Don't know how to REQUIRE ASERVE. Does anyone know what I'm doing wrong? I'm using SBCL 1.0.57.0 on Ubuntu 12.10. I have the cl-aserve package installed.
mdm
  • 5,528
  • 5
  • 29
  • 28
0
votes
1 answer

Lisp evaluation aborted on unbound variable

During the first example (the database example) in Practical Common Lisp, the author uses a macro and a couple support functions in order to replace a larger function, named where. The code works fine when where is a function, but the macro setup…
gary
  • 4,227
  • 3
  • 31
  • 58
0
votes
1 answer

in-package sbcl

In the REPL I do: * (defpackage :foo (:use common-lisp)) * (in-package :foo) # * *package* # If I write the file: try-package.lisp : (defpackage :foo (:use common-lisp)) (in-package :foo) then I load this…
Gérard
  • 17
  • 4
0
votes
1 answer

recover the 0 in #

on my Debian wheezy with SBCL: 1) Alsaplayer play a CD audio: * (run-program "/usr/bin/alsaplayer" '("-q" "CD.cdda") :wait nil) # 2) ps tells me that the audio CD plays: (EXITED 0) * (run-program "/bin/ps"…
Gérard
  • 17
  • 4
0
votes
1 answer

Lisp Toolkit (ltk): Cannot get SCALE :variable value

I am working with SBCL for Linux on an AMD64 machine. Function CONTROL-TEST makes a window with a drawing CANVAS and two sliding SCALEs. The slider :VARIABLES for UPPER-SLIDER and FORE-SLIDER are supposed to be bound to UPPER-THETA and FORE-THETA,…
SquareCrow
  • 291
  • 2
  • 14
0
votes
2 answers

What does (SB-SYS:WAIT-UNTIL-FD-USABLE 6 :INPUT NIL NIL) do?

I am curently using sbcl 1.0.57.0 and my program generates constant output at the shell, until at a certain point my program freezes without any clue whatsoever. C-c and down, reveals the last call to be: (SB-SYS:WAIT-UNTIL-FD-USABLE 6 :INPUT NIL…
Sim
  • 4,199
  • 4
  • 39
  • 77
0
votes
1 answer

How to use a list of label names for starting threads

I want to use a list of label-names to define the order/amount of threads started with those functions. But it does not work as SBCL complains: DO-STUFF isn't fbound. E.g: (labels ((do-stuff (argI argII) (values argI argII)) (do-stuff-II…
Sim
  • 4,199
  • 4
  • 39
  • 77
0
votes
2 answers

Common Lisp: Empty variable list for DO

According to the HyperSpec, for its page on DO (emphasis provided by me): do accepts an arbitrary number of iteration vars which are bound within the iteration and stepped in parallel. And yet it seems that DO cannot accept an empty variable…
Soyuz
  • 1,077
  • 1
  • 8
  • 16
-1
votes
1 answer

What should g:slimv_swank_cmd be to run SLIMV for SBCL on Windows 10?

I'm trying to use Steel Bank Common Lisp with GVim. I installed Steel Bank Common Lisp (AMD64) into 'C:\Program Files\Steel Bank Common Lisp'. I unzipped SLIMV into 'C:\vimfiles' I installed Python3 and put it in Windows PATH. I installed Python 2.7…
1 2 3
56
57