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

sbcl - why not execute code in sequence

I'm excising example from book: ANSI Common Lisp, charpter 14.6 conditions. sbcl not print the prompt in correct order: example code: (defun user-input (prompt) (format t prompt) (let ((str (read-line))) (or (ignore-errors…
Amitabha
  • 1,693
  • 2
  • 25
  • 42
0
votes
1 answer

SBCL - Package lock all Quicklisp libraries as they are loaded?

Can I automatically package-lock libraries as they are loaded by Quicklisp? I want every package locked. Can I do this?
Rekumaru
  • 421
  • 1
  • 4
  • 10
0
votes
3 answers

Common Lisp - Giving &rest Lists as Arguments

As a result of musings around an exercism problem, I am trying to write a function that takes an input number and an arbitrary length list of divisors to test, along with the expected divisibility (i.e. remainder 0) as a boolean, returning true if…
Sam
  • 125
  • 7
0
votes
2 answers

List Generation in Lisp

Why do people say lists come for free in Lisp? If I run this code (let ((acc '())) (do ((i 1 (incf i))) ((= i 100)) (do ((j 0 (incf j))) ((= j 100)) (do ((k 0 (incf k))) ((= k 100)) …
myselfesteem
  • 733
  • 1
  • 6
  • 23
0
votes
1 answer

How to read sbcl deterministic profiler output?

How is the output of the deterministic profiler of sbcl to be interpreted? seconds | gc | consed | calls | sec/call | name ------------------------------------------------------- seconds (total execution time),calls (amount…
Sim
  • 4,199
  • 4
  • 39
  • 77
0
votes
2 answers

Common Lisp: How to quote parenthese in SBCL

In Common Lisp, the special operator quote makes whatever followed by un-evaluated, like (quote a) -> a (quote {}) -> {} But why the form (quote ()) gives me nil? I'm using SBCL 1.2.6 and this is what I got in REPL: CL-USER> (quote ()) NIL More…
shizhz
  • 11,715
  • 3
  • 39
  • 49
0
votes
2 answers

How to use grid:slice in LISP?

When I do : (grid:subgrid #( 1 2 3 4) '(1) '(2)) , i get 3. But when I do: (grid:subgrid #( 1 2 3 4) '(1) '(* 2 1)) ,i get the following error: #. Does anyone have a hint?
Xaving
  • 329
  • 1
  • 11
0
votes
0 answers

Using cl-glfw3 on windows

I'm trying to load the library cl-glfw3 with sbcl amd64 for windows. But all I've got is a message with a missing dll. The libffi-6.dll and glfw3.dll are on the same folder that the lisp program. * (ql:quickload "cl-glfw3") To load "cl-glfw3": …
Victor Marzo
  • 713
  • 5
  • 10
0
votes
1 answer

Install GSLL on SBCL with Quicklisp

I am trying to install the GNU Scientific Library for Lisp (GSLL). I saw there are answers to a similar question already, but I didn't find the connection to what is happening in my case. Could anyone help to move on from here? CL-USER>…
Danny Zuko
  • 483
  • 4
  • 12
0
votes
1 answer

want a simple program illustrating the use of concurrent lisp using threads

I am just getting curious about lisp programming and wanted to know how to use concurrent lisp by making threads. -I also wanted to be clear with the pcall() function in lisp.
Omkar
  • 791
  • 1
  • 9
  • 26
0
votes
1 answer

Issue with installing lispbuilder-SDL on Linux. - "Don't know how to require ASDF-INSTALL"

I am trying to install lispbuilder-SDL on Linux using the instructions given here. I have gotten to the part where I must install CFFI using ASDF but I am getting the following error when I try to type (require 'asdf-install): Don't know how to…
0
votes
1 answer

Why do I get "Undefined function" warning when compiling a function?

Why won't this compile? Why does it come up saying that ordered is an undefined function? (defun ordered (numbers) (sort numbers #'<)) (defun printing-ordered (numbers) (princ (apply #'ordered numbers))) I am using SBCL, and Emacs with…
Floofk
  • 123
  • 1
  • 11
0
votes
1 answer

Assign and print an input string to a variable. Lisp

I want my program to ask for an expression, assign an inputted string to a variable 'exp' and then print the expression. However I am having some trouble. I first tried using (read) (princ "Enter a expression to be evaluated.") (setf exp…
sam
  • 123
  • 2
  • 8
0
votes
1 answer

SBCL: running from bash and exiting back to bash

I'm new to SBCL and I'm trying to run Lisp scripts stored in text files from a bash terminal. This is what I write at the beginning of the file as referenced at http://www.sbcl.org/manual/#Running-from-Shell #!/usr/local/bin/sbcl…
user1326050
  • 57
  • 1
  • 1
  • 4
0
votes
2 answers

Count sublists on each level in LISP

I need to write a program which counts sublists on each level and prints it like ((1 2) (2 1) (3 1)) ( ( ) ( ... ) So, for (A (B (C)) D) it will be ( (1 1) (2 1) (3 1) ) I have wrote this program. The logics is that I…
vladfau
  • 1,003
  • 11
  • 22