Questions tagged [clozure-cl]

Clozure CL (often called CCL for short) is a free Common Lisp implementation.

19 questions
4
votes
2 answers

How can I speed up compilation of Common Lisp `IF` statements?

I have a system that generates decision trees and converts them into nested Common Lisp if statements with predicates that check if a variable value is >= or <= a given integer e.g. (LAMBDA (V1 V2) (IF (>= V1 2) (IF (<= V1 3) (IF…
3
votes
2 answers

How to use Clozure CL on IPv6 only network?

I've tried to replace SBCL with Clozure CL when working in IPv6 only network, but encountered an error like that: MIGRATIONS> (ignore-errors (ccl:make-socket :remote-host "ya.ru" :remote-port 443)) NIL #
Alexander Artemenko
  • 21,378
  • 8
  • 39
  • 36
2
votes
2 answers

Fail to use quicklisp with clozure-cl

While using SBCL normally I want to try CCL for some testing and installed it via homebrew on my computer. That worked fine but I fail to use quicklisp with CCL. If I try to load quicklisp's setup.lisp I get the following error message: ➜ ~…
Martin Buchmann
  • 1,161
  • 7
  • 14
2
votes
1 answer

lx86cl: No such file or directory common clozure lisp

I am on a slackware and I have successfully installed common clozure lisp but when running ccl in shell prompt I have the following error message: > /usr/local/bin/ccl64: line 81: /usr/local/bin//lx86cl64: No such file > or directory > …
2
votes
1 answer

Clozure Common Lisp - file-exists-p is undefined

I get a "Undefined function FILE-EXISTS-P called with arguments ..." error when calling (file-exists-p "somepath") in Clozure Common Lisp but everywhere I look it appears that this function should be available. I even see it when using M-x…
Denis
  • 145
  • 1
  • 8
2
votes
1 answer

SLIME and CCL minibuffer documentation in Emacs

When using Emacs, SLIME and Clozure CL I have a minor gripe: The function signature for aref (I have not yet seen any other instances) is shown only as (aref a). When I go to source the code in question begins with (defun aref (a &lexpr subs). As…
Aroob
  • 113
  • 8
2
votes
1 answer

How to make Clozure exit when an error occurs

I'm trying to run a program under CCL, so that when the program finishes running for any reason, it should exit back to the operating system. Currently using this command line (on Windows): \ccl\wx86cl -l test.lisp -e (quit) This exits when the…
rwallace
  • 31,405
  • 40
  • 123
  • 242
2
votes
0 answers

how fix error with hunchentoot ssl acceptor on clozure common lisp?

I tried to get an SSL version of hunchentoot running, on clozure common lisp 1.11.1 running on a MacBook Pro with OS 10.13.6 I started by creating certificates in the /tmp directory, as follows: openssl req -new -x509 -nodes -out server.crt -keyout…
Mark Klein
  • 97
  • 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

Can't connect to mongo with Clozure CL - cl-mongo

Update 3: this applies to Clozure Common Lisp. I subsequently tried this in SBCL, and it worked without a problem, using latest mongo-community. I'm following the book Lisp for the Web which has been going well. Now I've reached the section which…
mwal
  • 2,803
  • 26
  • 34
1
vote
1 answer

How can I run Clozure CL in the Windows command line?

I'm trying to install Clozure CL using their guide, and it wants me to add the files ccl and ccl64 to my path, but they have no file extension and Windows doesn't know how to run them. I eventually looked in the file and it was headed by #!/bin/sh.…
1
vote
2 answers

coerce function in common lisp -- arrays and lists

I am seeing different behavior of coerce between different versions of Common Lisp - wondering which one is "right" or is the standard ambiguous on this seemingly simple question: is (coerce '(1 2 3) 'array) correct lisp? It works fine in Clozure…
PaulM
  • 305
  • 1
  • 8
1
vote
0 answers

Error: The condition Bad address (error #14) , fail to run Huntentoot on Clozure CL

I am trying to run hunchentoot on IBM power6 and only clozure cl is available on that platform. I have tried this : 1.lisp (hunchentoot:start (make-instance 'hunchentoot:easy-acceptor :port 80)) (hunchentoot:define-easy-handler (say-yo :uri "/yo")…
Bah4i
  • 31
  • 2
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
1 answer

Why do crosslinked defstructs cause stack overflows?

While playing around with graphs, I got a curious error I didn't quite understand. The code below reproduces the problem. ;; Define struct to store a node with links to other nodes. (defstruct node properties links) ;; Make two nodes (setf a…
Paulo Mendes
  • 697
  • 5
  • 16
1
2