How do I disable the "Press ENTER or type command to continue" prompt in Vim?

Is there any way to disable the "Press ENTER or type command to continue" prompt that appears after executing an external command? EDIT: Found a workaround: Add an extra <CR> to the shortcut in my...

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...

Lisp Community - Quality tutorials/resources

As many other people interested in learning Lisp, I feel the resources available are not the best for beginners and eventually prevent many new people from learning it. Do you feel it could be...

CLSQL and MYSQL on OS X

I'm working on OS X 10.6.4. I've been using clbuild to install supporting libraries for SBCL (including clsql), and I do all my work through Aquamacs. I installed MySQL using the excellent...

SBCL Switches print and read order (lisp)

I'm still learning lisp, so, when I came across this problem, it confused me. I have a simple function where I want to print first and then read the input: (defun ask() (princ '?) ...

lisp way of looping over bits of an integer

Suppose I have an integer such as 109, 1101101 in binary. How do I iterate over bits of this number, eg: [64, 32, 8, 4, 1]? What would be a good way of doing that in lisp? Should I modify the for...

How should functionality that requires root privileges be added to a Common Lisp library?

###Original Question I'm trying to create a Lisp library that can, among other things, edit my system's /etc/hosts file and nginx configurations. The problem I'm facing is that, because my Lisp...

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...

sbcl (directory "*") not returning all files (missing *.lisp for example)

SBCL (directory "*") is filtering out some file names based on extension. How do I get it to return all files, or especially all files matching a pattern (as in bash globing) (directory "") ...

Reading a character without requiring the Enter button pressed

read-line and read-char both require you press Enter key after typing something. Is there any mechanism in Common Lisp that would allow the program to continue upon the press of any single...

sbcl run-program hang when there is large amount of output from program

Recently I find a run-program hang issue of sbcl 1.2.7 (32bits, linux). The code as following (progn (with-open-file (s "test.out" :direction :output :if-exists :supersede) (loop repeat 900...

Jump to function definition in Emacs by mouse-click

Using Emacs + Common Lisp (SBCL) + Slime, is there a quick way to jump to the definition of a function (defun ...) without typing (find-function) the name of the function? I am looking for an...

sbcl determine if symbolic link

How do I test if a pathname is a symlink in sbcl? CL-USER> (apropos "syml" ) :CLASSIFY-SYMLINKS (bound) :RESOLVE-SYMLINKS (bound) :SYMLINK...

How do I read the output of a child process without blocking in Rust?

I'm making a small ncurses application in Rust that needs to communicate with a child process. I already have a prototype written in Common Lisp. I'm trying to rewrite it because CL uses a huge...

Squeeze more speed from Common Lisp / SBCL

This paper claims to make a certain Lisp program run faster than its C equivalent. Trying to reproduce the results, I was able to get close (Lisp is 50% slower than C) but wanted to know if anyone...

Python 3 type hints for performance optimizations

PEP 484 says "Using type hints for performance optimizations is left as an exercise for the reader." This suggests to me that, like Common Lisp, type declarations can be used to set aside type...

SBCL: Fixnum Optimizations

I'm trying to get more speed out of a little quadratic solver by using optimizations and fixnums. Here's my code: 1: (defun solve-x (d) 2: (declare (optimize (speed 3)) 3: (type...

In Common Lisp, when do you need to use eval-when, and how do you know?

A required use of eval-when is to ensure that functions which a macro depends on are available at the time the macro is compiled and is used. However, I can't think of an example that would...

SBCL: building a standalone executable

How do I build a standalone executable in SBCL? I've tried ; SLIME 2.20 CL-USER> (defun hullo () (format t "hullo")) HULLO CL-USER> (sb-ext:save-lisp-and-die "hullo" :toplevel #'hullo...

How to use Common Lisp sort of like a smalltalk image

Goal I would like to have my Common Lisp (SBCL + GNU Emacs + Slime) environment be sort of like a Smalltalk image in that I want to have a big ball of mud of all my code organized in packages and...

Can you use emacs to program in common lisp?

During my course on lisp programming I used the lispworks IDE trial version, which is a very good IDE but it's still a trial version. I searched for a new IDE. And I saw this video...

Heap exhaustion while compiling lapack system with SBCL

While compiling the lapack system from the f2cl library, SBCL drops into the low-level debugger with this error message about heap exhaustion: Heap exhausted during garbage collection: 0 bytes...

Expand a file name with a tilde to its fullpath (Common Lisp)

I have a directory name (as string) with a tilde: ~/projects. I want to get its fullpath: /home/user/projects. How do I do that ? The goal is to pass it to uiop:run-program, that doesn't seem to...

How to create a bit array in common lisp?

After googling for about an hour, I have to confess, that while I find a lot of documentation about functions operating on bit arrays, I cannot find a single reference on how to actually create a...

Non destructive modify hash table

Is it possible to non-destructively add new key-value pairs to a Common Lisp (SBCL) hash table? The standard way to add new elements to a hash table is to call: (setf (gethash key *hash-table*)...

UIOP does not recognize local-nicknames keyword

I'm attempting to make a Lisp package with uiop/package:define-package. I'm using SBCL, and have confirmed that package-local nicknaming ought to be supported: * *features* (:QUICKLISP :ASDF3.3...

How do I compile and run a Common Lisp program from the directory of the .asd file?

I have the following directory structure: my-project/ ├── my-project.asd ├── package.lisp # defpackage. ├── utils.lisp # Functions used by main.lisp. └── main.lisp ...

Double Linked List in Common Lisp

I want to implement a simple double linked list in SBCL with the following key structure (defstruct element (value 0 :type fixnum) (next nil :type element) (prev nil :type element)) The...

Lisp - Roswell can't find sbcl.exe

i am starting out with common lisp and wanted to install cl-lsp. I installed scoop, then installed roswell. However, with any command i try to execute with roswell, i get an error that sbcl.exe...

CL+SSL SSL Error: Unsafe legacy renegotiation disabled. How to bypass or resolve?

I'm trying to hit an https endpoint to pull back some data using common-lisp(sbcl). For a while this worked without issue. Then one day I started receiving the following error SSL error...