Calling C++ (not C) from Common Lisp?

I am wondering if there is some way to call C++ code from Common Lisp (preferably portably, and if not, preferably in SBCL, and if not, well, then Clozure, CLisp or ECL). The C++ would be called...

clisp : remove from list of list

(remove '(1 2) '((1 2) (1 3))) doesn't remove '(1 2) from list in common lisp. (I think it uses eq and not equal). Do we have any other alternative to delete element from list of lists in common lisp?

Is there a command to halt the interpreter in Common Lisp?

I'm looking for an expression that will cause the interpreter to exit when it is evaluated. I've found lots of implementation-specific ones but none in the HyperSpec, and I was wondering if there...

Which command could be used to clear screen in CLISP?

Such as cls for cmd.exe. It's very annoy if I can't do this.

Enabling autocomplete in sbcl

I have recently started to learn lisp, and have mainly bin using clisp and vim. I wanted to try sbcl as well, since this is often recommended as one of the best, free lisp compilers. There is one...

Can use a android phone as a pc to write c,lisp,java.....and compile the code to run it?

I have an Android phone (Motorola Milestone) and I want to set it as a small PC on my hand. I want to use it for programming, such as write a lisp or C helloworld program, compile the code and run...

Simple Lisp Case statement question - problem comparing to nil

I'm trying to use a case statement to make some code more readable. It seems to work as a series of if statements, but for some reason the case statement always accepts a comparison to nil even...

Clisp REPL error output: how to find line number in file where error occurred?

I'm working through Land of Lisp, using CLisp, writing the code in Vim with Slimv, then alt-tabbing to another terminal window and loading the file into the REPL with (load 'file.lisp), then...

Sorting a Hash by integer value of hash key in Ruby 1.9

Given the following hash: {"7"=>"Ada (gnat-4.3.2)", "13"=>"Assembler (nasm-2.07)", "45"=>"Assembler (gcc-4.3.4)", "104"=>"AWK (gawk) (gawk-3.1.6)", "105"=>"AWK (mawk) (mawk-1.3.3)", "28"=>"Bash...

Does clisp support thread?

I want to run hunchentoot using clisp. In clisp's REPL, i cannot do anything if hunchentoot is started. It seems clisp doesnot support thread. Any suggestion is appreciated!

What's difference between defvar, defparameter, setf and setq

I found a Similar question. But I don't quite understand that explanation. So I'm trying to run clisp with the following example: [1]> (defvar a 5) A [2]> (+ a 1) 6 [3]> (defparameter b...

Common Lisp: shorthand to initialize a hash table with many entries

I'm looking for a possibly non-verbose portable way to initialize a hash table in Common Lisp. E.g. something that works for constant hash tables, but also to pre-load variable hashes. In CLISP I...

Dribble is producing empty output files

I need to create an output file for a program in lisp, but I cannot get dribble to properly record my output. I'm using lispbox and my buffer looks like this when I try to use dribble: (dribble...

Lambda Calculus CONS Pair implementation with Lisp

I'm trying to implement a Church Pair Lambda Calc. style with CLisp. According with Wikipedia: pair ≡ λx.λy.λz.z x y So far, this is my code: (defvar PAIR #'(lambda(x) ...

Common Lisp: Why does my tail-recursive function cause a stack overflow?

I have a problem in understanding the performance of a Common Lisp function (I am still a novice). I have two versions of this function, which simply computes the sum of all integers up to a given...

Generating Fibonacci series in Lisp using recursion?

I'm a newbie in LISP. I'm trying to write a function in CLISP to generate the first n numbers of Fibonacci series. This is what I've done so far. (defun fibonacci(n) (cond ((eq n 1) 0) ...

Nested `defun` produces a repeated warning in Allegro Common Lisp

I have a generic implementation of merge sort in Common Lisp: I have different implementation of split and merge functions and, for each combination of a split and merge function I want to...

Path of current working directory

I installed clisp on windows. I want to load a file but I can't. I do not know what is my current working directory. How can I see it and change it? Thanks in advance

pathnames in Common Lisp, filenames with wildcards in them

The characters * and ? are used as wildcards in pathnames. How does one refer to a filename that has ? as one of its actual characters? For example: [18]> (wild-pathname-p #p"foo") NIL [19]>...

Run a Common Lisp file from the CLISP interface (Error)

Everywhere I looked, it says, you can run a CLISP file with the command "$ clisp file.lisp" from the CLISP terminal. I tried it with a simple (print "Hello World!"), saved it as lisp1.lisp. It...

fatal error: editline/readline.h: No such file or directory compilation terminated

Fatal Error I am working on makeyourownlisp,where in editline/readline.h and editline/history.h have to be added to the program. Following is the code...

DYNAMIC-EXTENT ignored in CLISP?

I read here that "it is permissible for an implementation to ignore" the dynamic-extent declaration in Common Lisp, and I was wondering if it is in fact ignored in the CLISP implementation. I have...

Why is a Common-Lisp Lambda expression a valid function name?

So let's say I want to call some function. If I've defined the function with a defun, I just use the name of the function at the beginning of a list followed by it's arguments like so (I will be...

How to create a list of lists in lisp?

I am trying to run code in common lisp, but it keeps giving me the following error: *** - SYSTEM::%EXPAND-FORM: (SETF (NTH X NUMS) 0) should be a lambda expression What am I doing wrong? I...

Insertion Sort in Common lisp

I want to implement the sorting function in common-lisp with this INSERT function k means cons cell with number & val, and li means list where I want insert k into. with this function, I can make...

Implement Lisp eval function in Common Lisp

I am trying to implement a eval function using CLISP. My motivation: suppose I have a Lisp program like this: (defun call (arg) (cond (some-condition (call (other (strange (functions (on...

Is there any way to see the implementations of built-in macros in Common Lisp?

Common Lisp built-in functions are probably implemented in C. But I imagine macros are implemented in lisp (sorry if I'm wrong about any of two sentences). Is there any way (through some function...

there is no package with name "QL". while installing clisp

I'm trying to install lisp in my laptop by following the instruction command and steps that is suggested this site : https://grishagin.com/lisp/windows10/2017/01/26/install-lisp-Windows10.html. I...

Correct way to use the iterate package in Common Lisp

On my Windows XP box with sbcl-1.4.14 I've installed the ASDF using (load "C:\\Program Files\\clisp-2.49\\asdf\\asdf.lisp") (require :asdf) (push "C:\\Documents and...

How do you debug using 'Code::Blocks 20.03' (the "mingw" version)?

I have built a Console Application using Code::Blocks 20.03, which was installed using codeblocks-20.03mingw-setup.exe. The defaults for the installation directory(see Note01) and the installation...