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
0 answers

Sorting and editing a Dictionary in Python

I use the CCL algorithm of Spencer Whitt from Github to remove detected road markings from Noise. First, I run the CCL algorithm over an image so that it recognizes contiguous elements. Now I extended the algorithm so that it ignores elements with a…
freddykrueger
  • 309
  • 4
  • 17
1
vote
2 answers

ccl and *.nib files

I'm new to ccl and wanted to know how to "comunicate" between objects inside a *.nib file and ccl? I walked though the "Apple's Currency Converter in Lisp" tutorial and I'm not sure how these two "communicate" together.
beyeran
  • 885
  • 1
  • 8
  • 26
1
vote
1 answer

How to communicate over sockets in Clozure Common Lisp?

In one CCL REPL I enter: (WITH-OPEN-SOCKET (socket :LOCAL-PORT 6667 :LOCAL-HOST "localhost" :CONNECT :PASSIVE :REUSE-ADDRESS t) (let ((stream (ACCEPT-CONNECTION…
Capstone
  • 2,254
  • 2
  • 20
  • 39
1
vote
4 answers

View or Extract the text definitions entered into the top level REPL, ideally for Clozure Common Lisp (CCL)

When working in a top level REPL, I sometimes forget what definitions I've entered into the running lisp system. I use Clozure CL and it provides the option of saving the application as an image, which I do and can continue where I left off, but…
Capstone
  • 2,254
  • 2
  • 20
  • 39
1
vote
2 answers

How to use key-bindings when using SBCL & Clozure CL on Terminal

I'd like to use key-bindings when I use SBCL & Clozure CL on Terminal. You can use key-bindings when you use Clisp on Terminal. For example, when you type "Control-p", you can list the history of codes you typed. You can even delete a letter when…
Hiroki
  • 97
  • 1
  • 8
1
vote
1 answer

Common Lisp: Write to external program input

I want to write a simple wrapper for mpg123 console mp3 player in CL/CCL and wonder how to write to mpg123 which exists as a spawned process: (let* ((p (run-program "mpg123" '("-R") :input :stream :output :stream :wait nil)) (s…
user1453428
  • 185
  • 2
  • 8
1
vote
0 answers

How to access semaphore count in Clozure CL?

When working with SBCL semaphores (sb-thread package) I can easily check the current semaphore count, as demonstrated by the snippet below: CL-USER> (defvar *semaphore* (sb-thread:make-semaphore)) *SEMAPHORE* CL-USER> (sb-thread::semaphore-count…
Wojciech Gac
  • 1,538
  • 1
  • 16
  • 30
1
vote
1 answer

Slime to run right CCL

I have some PC boxes some 32 and some 64 bits. I keep a local svn repo of the CCL implementation on all of them and I have the same .bashrc and .emacs configurations on all boxes. Therefore when I like to use CCL from within Emacs through Slime I…
oakenshield1
  • 851
  • 1
  • 11
  • 26
1
vote
0 answers

Howto customize CCL (Cast Companion Library) controller dialog

I'm trying to customize casting controller dialog and I have problems changing dialog's title style. I've implemented it like CCL library does but without success. This is my relevant code: VideoMediaRouteControllerDialog.java public…
1
vote
1 answer

Getting error when loading a lisp macro: Error: Class named ENTITY not found. While executing: FIND-CLASS, in process Listener(4)

I get this error: Error: Class named ENTITY not found. While executing: FIND-CLASS, in process Listener(4). Type cmd-/ to continue, cmd-. to abort, cmd-\ for a list of available restarts. If continued: Try finding the class again Type :?…
Jim Barrows
  • 3,634
  • 1
  • 25
  • 36
1
vote
1 answer

How do I change the evisceration settings for debugging output in CCL?

When debugging in CCL, how do I change the uneviscerate the results of debugging calls like (:raw 3) and (:v 5 3)?
interestedparty333
  • 2,386
  • 1
  • 21
  • 35
1
vote
1 answer

How do you get the previous command in Clozure?

I'm using the Common Lisp Clozure environment on the Mac. What is the key shortcut to get the previous commands entered in the REPL?
jcheat
  • 121
  • 6
1
vote
1 answer

Permanently redirecting stdout to a file in Common Lisp (CCL)

I am trying to permanently redirect stdout to a file but all of the examples I can find about doing this involve doing so inside a let or inside a with-open-file using the standard-output global. Is there a way can do an application wide…
Mike2012
  • 7,629
  • 15
  • 84
  • 135
1
vote
2 answers

Alternative implementation of `if` - incomprehensible behavior

I wanted to write my own if using Boolean logic and macros. I came up with the following implementation: (defmacro -if (condition if-true if-false) "Implements `if` in terms of Boolean logic only" `(or (and ,condition ,if-true) (and (not…
Wojciech Gac
  • 1,538
  • 1
  • 16
  • 30
1
vote
1 answer

Destructuring macro for ST-JSON JSO object

I have another question regarding decoding JSON in Common Lisp. I settled on ST-JSON as my tool. I am able to get a JSO object containing the JSON data, and access all fields with st-json:getjso. I wanted to write a macro similar in principle to…
Wojciech Gac
  • 1,538
  • 1
  • 16
  • 30