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
4
votes
3 answers

"Heap exhausted, game over" message in wxMaxima - Does ccl will work for me?

everyone, I'm trying to do some calculations and plot the results, but it seems that these are too heavy for Maxima. When I try to calculate N1 and N2 the program crashes when parameter j is too high or when I try to plot them, the program displays…
4
votes
4 answers

how to create applications with Clozure Common Lisp (on Microsoft Windows)

I am a new one to Common Lisp (using Clozure Common Lisp under Microsoft Windows), who is familiar with c and python before. So maybe the questions are stupid here, but be patient to give me some help. 1) What's is the usual way to run a common…
winterTTr
  • 1,739
  • 1
  • 10
  • 30
4
votes
2 answers

How to portably create a class at run-time in Common-Lisp CLOS

I need to create a class at run-time, possibly without resorting to eval. Knowing that the metaclass protocol is not fully standardized in Common-Lisp, after browsing through the The Common Lisp Object System MetaObject Protocol, I tried the…
Renzo
  • 26,848
  • 5
  • 49
  • 61
4
votes
1 answer

Retrieving (load)ed source code from CCL?

I called (load "code.lisp") with CCL, then accidentally deleted code.lisp. Is there any way for me to retrieve the source code? Does CCL have it in memory anywhere?
user2058002
4
votes
1 answer

On Slime Load , change default package from Cl-USER

When we start slime, it starts in CL-USER by default. Since I work with a particular package very frequently, I want to automatically in-package into that package on slime startup. i.e. I want save myself the trouble of doing the below: CL-USER>…
RAbraham
  • 5,956
  • 8
  • 45
  • 80
4
votes
2 answers

lisp, CLOS: adding a slot to the lock class

I am trying to add a new slot to the lock class. This is useful because I have a lot of locks in a hierarchy and if I store the parent lock for every lock it becomes easier to detect problems while debugging. Unfortunately, this apparently can't be…
Florian Dietz
  • 877
  • 9
  • 20
4
votes
3 answers

Common Lisp: Launch subprocess with different working directory than lisp process

Suppose I have a directory A, and subdirectory B. I cd into A and launch lisp. In that lisp process, I would like to launch a Python subprocess where Python sees B as its current working directory. The lisp process needs to have cwd in A, and the…
Clayton Stanley
  • 7,513
  • 9
  • 32
  • 46
3
votes
2 answers

How to modify this code to support CCL?

It seems there is NO ANSI standard way to execute an external program and get its output as the following SBCL special code does: (defmacro with-input-from-program ((stream program program-args environment) &body…
z_axis
  • 8,272
  • 7
  • 41
  • 61
3
votes
1 answer

Sharpsign dot macro in Clozure Common Lisp

I want to use constant variables in case macro as "Common Lisp Recipes" book recommends. 10-2. Using Constant Variables as Keys in CASE Macros Unfortunately it doesn't work in Clozure CL. (defpackage #:foo (:use #:cl)) (in-package…
Maris Orbidans
  • 163
  • 2
  • 4
3
votes
2 answers

Handling Images in Clozure Cl

1) What is the proper method to make an image in ccl? Or what is the exact difference between: (compile-file "foo.lisp") and (progn (load "foo.lisp") (save-application "foo"))? 2) Is there any possibility to load multiple images (command line…
beyeran
  • 885
  • 1
  • 8
  • 26
3
votes
2 answers

buffers in CCL code samples along with the oneapi toolkit

I Was going through the CCL code samples along with the oneapi toolkit. In the below DPC++(SYCL) code initially sendbuf a buffer is created in the cpu side and is not initialised and in the part where offloading to target device takes place the…
Kannan K
  • 43
  • 4
3
votes
0 answers

ccl lisp on ubuntu: when I leave ccl it terminates the shell

I'm using ccl (Clozure CL) 1.11.5 on on a digital ocean Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-124-generic x86_64) server. Works fine, but whenever I exit lisp, either by ^d or (quit), the linux shell terminates as well and I have to re-ssh to the…
jackisquizzical
  • 307
  • 1
  • 8
3
votes
1 answer

unread-char behaviour deviating from spec?

On the Common Lisp HyperSpec page for unread-char - see here - it says both of the following things: "unread-char is intended to be an efficient mechanism for allowing the Lisp reader and other parsers to perform one-character lookahead in…
Andy Page
  • 315
  • 1
  • 11
3
votes
1 answer

How do I get the list of all environment variables available in a Lisp process?

I want to enumerate the list of all environment variables available in my Lisp process. I want the same list that is returned by the C variable environ. Neither SBCL nor Clozure CL seem to provide it out of the box. Can I do it using CFFI?
Chaitanya Gupta
  • 4,043
  • 2
  • 31
  • 41
3
votes
1 answer

Problems sending UDP with CCL

when I try to send a message as follow: (let* ((temp-buffer message) (out-vector (make-array (length temp-buffer) :element-type'(unsigned-byte 8) :initial-contents temp-buffer)) (s (ccl:make-socket :remote-host host…
yannics
  • 179
  • 10