Questions tagged [ccl]

Clozure CL (CCL) is a Common Lisp implementation.

Quoting the wilkipedia page:

Clozure CL (CCL) is a Common Lisp implementation. It implements the full ANSI Common Lisp standard with several extensions (CLOS MOP, threads, CLOS conditions, CLOS streams, etc.) It contains a command line development environment, an experimental integrated development environment (IDE) for Mac OS X using the Hemlock editor, and can also be used with SLIME (a Common Lisp development environment for GNU Emacs).

The official page is in here.

116 questions
2
votes
1 answer

common lisp: value 16777216 is not of the expected type (UNSIGNED-BYTE 24)

I'm using Clozure-CL on windows 7. I wrote a simple “image” class (well, struct) for a test. (defmacro -> (struct slot) `(slot-value ,struct ,slot)) (defstruct (image (:constructor make-image (&key width height (bytes-per-pixel 4) …
SigTerm
  • 26,089
  • 6
  • 66
  • 115
2
votes
2 answers

On Windows, CR still here after read-line in Common Lisp

I have a function reading a text file on Windows (thus a file with CRLF as line ending), and when I call read-line on this file, I get strings ending with CR, and this with SBCL or Clozure CL. With MKCL, both CR and LF are removed. So I wonder,…
user1220978
2
votes
1 answer

clozure cl: cl-freetype2 on windows 7

I'm working on windows 7 64bit system using clozure cl (version 1.8-r15286m) with quicklisp installed. I need some freetype2 bindings for common lisp. (map characters to glyphs + kerning info) I've tried to install "cl-freetype2" using…
SigTerm
  • 26,089
  • 6
  • 66
  • 115
2
votes
2 answers

Can lambdas have docstrings?

I know that def* can have docstrings, so I just give lambdas a try. Embarrassingly, The following returns NIL. (documentation (lambda () "a function which always returns nil" nil) 'function) What's wrong? Can't lambdas have docstrings? Is there a…
Mike Manilone
  • 582
  • 4
  • 17
2
votes
0 answers

Strange crash when bringing up a window on Sandboxed cocoa app only on OSX 10.8.3

This one is quite weird. I recently upgraded to Mountain Lion on my dev machine and now every time I bring up the main project window of my app it crashes. The strange thing is that it only happens on 10.8.3 and it only happen if I sandbox the…
Mike2012
  • 7,629
  • 15
  • 84
  • 135
2
votes
1 answer

Unexpected behavior with `eval-when`

The following fragment of CL code does not work as I expected with CCL running SLIME. If I first compile and load the file using C-c C-k, and then run (rdirichlet #(1.0 2.0 3.0) 1.0) in the SLIME/CCL REPL, I get the error value 1.0 is not of the…
Faheem Mitha
  • 6,096
  • 7
  • 48
  • 83
2
votes
1 answer

Clozure common lisp. How to list subdirectories on windows?

My folder looks this way c:/bar/ c:/bar/dir1 c:/bar/dir2 c:/bar/00.txt c:/bar/02.txt I can list files (directory "c:/bar/*.*") (#P"c:/bar/00.txt" #P"c:/bar/01.txt") but have a problem listing subdirectories (directory "c:/bar/*") NIL (directory…
alex2k8
  • 42,496
  • 57
  • 170
  • 221
1
vote
1 answer

how to kill a group of processes in clozure cl?

I want to run a shell command within ccl, but this command may be hung for some reason. So I want to kill all the sub process generated by this command. How can I do this? I have tried trivial-shell to run the shell command, when the command not…
whitelilis
  • 113
  • 4
1
vote
1 answer

LISP/CCL: Passing a quotation mark as argument to 'run-program'

What is the correct way of passing a quotation mark as an argument to Clozure CL's run-program? Take the simple example of calling echo ", which should return ". However, when I try to run this command by using ccl:run-program as shown below, the…
Rimaux
  • 11
  • 2
1
vote
0 answers

Dtrace from Touretzky

I am trying to learn lisp with the book "Common LISP a Gentle Introduction to Symbolic Computation" written by Touretzky. There is a utility in the book, Dtrace(I use dtrace.generic). Example of using dtrace: (defun add-to-end (x y) (append x…
noein
  • 411
  • 2
  • 10
1
vote
2 answers

lisp macro expand with partial eval

I have following code which confuse me now, I hope some can tell me the difference and how to fix this. (defmacro tm(a) `(concat ,(symbol-name a))) (defun tf(a) (list (quote concat) (symbol-name a))) I just think they should be the same…
winterTTr
  • 1,739
  • 1
  • 10
  • 30
1
vote
2 answers

SBCL ASDF problem vs. CCL Re: Circular Ref?

This compiles fine on ccl, but fails with a circular ref. error on SBCL: kp.asd: (in-package :asdf) (defsystem kp :components ((:module "utils" :components ((:file "utils") )) )) (load-system…
jackisquizzical
  • 307
  • 1
  • 8
1
vote
1 answer

USocket on SBCL: connection refused (Drakma and Dex)

Running simple HTTP-request: with dexador or drakma and on SBCL 1.4.14 and on OS X 10.13.6 with (ql:client-version) equals to "2017-03-06" and (defvar qlqs-info:*version* "2015-01-28" (I've just installed Quicklisp from…
hsrv
  • 1,372
  • 10
  • 22
1
vote
1 answer

Clozure Common Lisp - DRIBBLE doesn't write anything to file

I'm using Clozure Common Lisp on Windows. When using the DRIBBLE command and evaluating some simple forms followed by closing the DRIBBLE stream, a specified file is created but nothing is written into it. (DRIBBLE "test.log") (+ 2 2) (LIST 'a 'b…
Denis
  • 145
  • 1
  • 8
1
vote
3 answers

Common Lisp - CCL, why a warning when passing a global to a local function?

I’m learning Common Lisp, using CCL. I get a warning when I use a global variable locally. Why does CCL provide this functionality? What is the purpose of this? (setf n 75) ;;;This function works, but gets a warning about ;;;n being an undeclared…
S.J.
  • 27
  • 6