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
1
vote
1 answer

multiprocessing with lisp, let*

I am trying to create a process that uses a let*. When I try to run it, the child process is in a [reset] state. If I use a workaround and use let, the thread starts out as [active] everything works fine. I am puzzled at this behavior and would love…
saq7
  • 1,528
  • 1
  • 12
  • 25
1
vote
1 answer

Why round is incorrect in CCL?

I have learning Common Lisp for 2 months, I meet a puzzle, here is the code: CL-USER> (round 33.6) 34 -0.40000153 anyone explain it? Thanks
1
vote
1 answer

common lisp: fork quicklisp-loaded project into subdirectory

I have small common lisp project that uses lispbuilder-sdl. I'd like to make a fork of lispbuilder-sdl, put it into subdirectory and remove some stuff I don't need from it. How can I do that? As far as I know, quicklisp can load projects that are…
SigTerm
  • 26,089
  • 6
  • 66
  • 115
1
vote
2 answers

Fail to `(require "COCOA")` with Mac ports Clozure Common Lisp

I have installed the package ccl with Mac ports. Now I want to use the Cocoa bridge. Welcome to Clozure Common Lisp Version 1.8 (DarwinX8664)! ? (require "COCOA") > Error: Permission denied : #P"/opt/local/share/ccl/1.8/temp…
kmkaplan
  • 18,655
  • 4
  • 51
  • 65
1
vote
2 answers

Can I specify directory for shell command?

I use the following function to run shell commands: (defun sh (cmd) #+clisp (shell cmd) #+ecl (si:system cmd) #+sbcl (sb-ext:run-program "/bin/sh" (list "-c" cmd) :input nil :output*standard-output*) #+clozure (ccl:run-program "/bin/sh"…
z_axis
  • 8,272
  • 7
  • 41
  • 61
0
votes
1 answer

SLIME not finding Clozure or Hyperspec docs

I just fresh-installed Emacs + SLIME + CCL on Ubuntu following the steps described in clozure.com and everything seems to work fine. However apropos prints this output when asked for a particular keyword: MAKE-ARRAY Function: (not…
deprecated
  • 5,142
  • 3
  • 41
  • 62
0
votes
1 answer

Finding Neighbors in 2d Array (Not Including diagonal)

In another post I found this way to find the neighbors of the current pixel in a 2d array. The solution considered diagonal pixels to be neighbors. I need a solution that gives only directly N, S, E, W. How would I be able to implement that into…
fredo
  • 15
  • 3
0
votes
1 answer

Returning end times between 2 start times of the same patient?

Currently writing a clinical report in Cerner's CCL (derived from SQL). The start of a patient's central line insertion is posted on 1 form, and the end on another form. Patients may end up having more than 1 start time documented on the same…
deltas2k
  • 3
  • 5
0
votes
1 answer

Why is a macro being evaluated while compiling a function definition (Clozure Common Lisp)?

I have: (defmacro assign (name value) (format t "assigning ~A to ~A~%" `,name `,value)) (defun opcode-call (&rest args) (mapcar (lambda (arg) (if (stringp arg) (let ((var (gensym))) (assign var…
Capstone
  • 2,254
  • 2
  • 20
  • 39
0
votes
1 answer

CCL Cocoa bridge "hello world" not working?

I'm trying to run the "hello world" script provided by Clozure for the CCL-Cocoa bridge: https://trac.clozure.com/ccl/wiki/CocoaBridge Load the file containing these forms, evaluate (show-red-window), and you'll see a red…
shadowtalker
  • 12,529
  • 3
  • 53
  • 96
0
votes
0 answers

Making Clozure Common Lisp recognize my custom HOME on Windows

I'm writing Common Lisp on WinXP in Emacs (downloaded a fork of Lispbox that comes with CCL 1.11 and changed the default .emacs.d to Spacemacs) I have a .bat file that launches emacs and sets HOME to my custom home directory (I want this setup to be…
ohmree
  • 375
  • 3
  • 15
0
votes
3 answers

OpenCv see each pixel value in an image

I'm working on Connected Component Labeling (CCL) operation in OpenCv (in C++ language). To see whether CCL works reliably, I must check each pixel value in the image while debugging. I have tried saving the result of CCL as an image, however I…
elmass
  • 117
  • 2
  • 3
  • 9
0
votes
1 answer

Common Lisp sockets

using ccl specifically, I am trying to set up two sockets in the same program to serve as a fifo data structure. to that end, I've been standing up test code to exercise my understanding of the api, and I now have a problem I can't figure out. The…
Joshua
  • 374
  • 3
  • 17
0
votes
1 answer

Permission error compiling Clozure CL despite sudo privileges

I checked out Clozure Common Lisp 1.10 via subversion for my wheezy raspian raspberry pi. When I attempted to run armcl, I got the "GLIBC_2.15 not found" error. I used apt-get to install the latest version m4, 1.4.16-3. I followed Clozure's…
fpt
  • 358
  • 3
  • 11