Data dodania Pytanie
2017-01-06 10:01 Handling an exception in a thread »
One of my threads entered the debugger. I want to switch to it, expect that stacktrace, choose a restart, etc... How can I do that? I am using bordea...
(1) odpowiedzi
2017-01-05 13:01 Save a CL image without exiting the environment »
I want to save a "snapshot" of the current environment so I can play with it later without consequences for messing it up. (Essentially creating a san...
(1) odpowiedzi
2017-01-04 21:01 How to handle accents in Common Lisp (SBCL)? »
That's probably very basic, but I didn't know where else to ask. I'm trying to process some text information in an SLIME REPL from a file that are wri...
(1) odpowiedzi
2017-01-03 03:01 compile error common lisp »
I am trying to compile "my-project" common-lisp, this is the relevant sections, which breaks while compiling: (ql:quickload :cffi-grovel) (ql:quic...
(1) odpowiedzi
2016-12-26 11:12 SBCL changes EQness of a local bound function object, even though it is not set? »
Given this example code (from a Reddit /r/lisp question): (defun next (pos) (nth (1+ pos) '(0 1 2 3 4 5 6 7 8 9 10))) (defvar *next* (funct...
(2) odpowiedzi
2016-12-25 07:12 Common Lisp: Run function in the background »
What's the best way to run a function in the background, in Common Lisp? Specifically, I'm making a call like (trivial-shell:shell-command "<long a...
(2) odpowiedzi
2016-12-24 19:12 Common lisp: run shell command containing the string "\n" »
I'm trying to run something that simplifies to (trivial-shell:shell-command (concatenate 'string "echo -e " "one" "\n" "two")) And trying to get...
(2) odpowiedzi
2016-12-23 19:12 Common lisp read from FIFO with timeout »
So I have some code like (let ((file (open cur-fifo :if-does-not-exist :create))) (format t "~A~%" (read-line file nil)) (close file)) Which as...
(1) odpowiedzi
2016-12-15 10:12 Recompiling a CL system as it is running »
I am running a common lisp project that fetches market data every 5 seconds. I made some tweaks to the code and want to update it on the production en...
(2) odpowiedzi
2016-12-15 05:12 how to avoid destructuring-bind ARG-COUNT-ERROR? »
I need to read a string of Common Lisp object from database. The object should be a list with two elements of double-float; "(1.0d0 2.0d0)" for exampl...
(3) odpowiedzi
2016-12-01 07:12 How to do dynamic load (Load) in common lisp »
My following code snippets will give SB-INT:SIMPLE-READER-PACKAGE-ERROR; I know it is because package "quicklisp-quickstart" is not defined yet while ...
(1) odpowiedzi
2016-11-18 16:11 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: (decla...
(2) odpowiedzi
2016-11-07 05:11 How to set the charpos of a terminal stream in SBCL »
I'm trying to convince SBCL that the charpos of a terminal is back to 0 after read-line. For instance, the following piece of code (progn (format...
(1) odpowiedzi
2016-11-05 20:11 Why is this lisp benchmark (in sbcl) so slow? »
Since I’m interested in C++ as well as in Lisp, I tried to reproduce the benchmark presented here written by Guillaume Michel. The benchmark is basi...
(1) odpowiedzi
2016-11-04 05:11 Unreachable Ill-formed if-expression is syntax error in Scheme but not in Common Lisp »
I'm trying to get a better understanding of how S-expressions are evaluated in different lisps and wanted to see they would handle interesting ill-for...
(2) odpowiedzi
2016-10-22 11:10 Special variable in hunchentoot »
Currently, I'm developing 2 web-based tools for my own need with hunchentoot. Before starting hunchentoot, I want to set some special variable with le...
(1) odpowiedzi
2016-10-20 17:10 size explosion file vs. string »
I got a 261MB text file (xdebug output) and when I read it in it occupies an additional 2GB of space dynamic space. (defun stream->string (tmp-st...
(0) odpowiedzi
2016-10-18 23:10 A vector of integers is not a subtype of arrays of numbers, why? »
We have the following: CL-USER> (subtypep 'integer 'number) T T CL-USER> (subtypep 'double-float 'number) T T CL-USER> (subtypep 'vect...
(2) odpowiedzi
2016-10-18 17:10 How to see doc string for a defparameter, defconstant, or defvar? »
Using common lisp you cand add many docs strings for example: CL-USER> (defun foo () "doc string for foo" nil) FOO CL-USER&g...
(1) odpowiedzi
2016-10-13 23:10 SBCL & Lambda Expressions »
In SBCL, how does one put a lambda expression into a structure slot [eg, (setf (struct-slot1 struct1) '(lambda (x) (* x x)))], so that it can be calle...
(2) odpowiedzi
2016-10-13 20:10 Common lisp: loop through pairs of a list »
I have a list who's length is divisible by two, and I'm looking for something similar to the answer to this question: (loop for (a b) on lst while b ...
(3) odpowiedzi
2016-10-06 00:10 Common Lisp: standalone executable and shared C library »
Until now, I have managed to build my Common Lisp project into a standalone executable with sbcl like this: (sb-ext:save-lisp-and-die "myexecutable" ...
(1) odpowiedzi
2016-10-04 12:10 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...
(2) odpowiedzi
2016-10-02 16:10 Bulk `unintern` for renamed exported symbols »
I use packages a lot and the exported symbols often change their names. When I try to recompile the package I get warnings like this: package.lisp:3:...
(2) odpowiedzi
2016-09-18 09:09 How to serialize and load an object in SBCL/Common Lisp »
I have an object o that is an instance of a class X in SBCL. I want a function write-X-object that serializes o to a file in such a way that when th...
(1) odpowiedzi
2016-09-17 17:09 Difficulty reading input pipe in SBCL »
I am slowly getting closer to be able to read and write to/from named pipes of a background process through SBCL. What I do is kick off the program I...
(1) odpowiedzi
2016-09-11 14:09 Lispbuilder-SDL: turn surface and preserve color key (transparency) »
Explanation I'm writing turtle graphics app in CL using SDL. I've created a drawing of a turtle and saved it in PNG. Snag No 1: SDL:LOAD-IMAGE didn't...
(1) odpowiedzi
2016-09-01 14:09 Inferior Shell or UIOP: Interacting with background process »
So, I got past actually getting a program to run from SBCL Lisp using inferior-shell (presumably UIOP would be just fine). Anyway, now that I can do ...
(1) odpowiedzi
2016-08-31 07:08 Error loading cl-unicode »
I assume I must be missing something, rather new to this. Quicklisp update-dist and update-client say I have the latest, loaded cl-ppcre just before a...
(0) odpowiedzi
2016-08-28 02:08 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...
(1) odpowiedzi
2016-08-26 11:08 How can you use parameters in sbcl (common-lisp), for sb-ext:run-program? »
I'm trying to call an external shell command in common-lisp, via SBCL's sb-ext:run-program. Documentation about this run-program command, can be foun...
(1) odpowiedzi
2016-08-26 01:08 SBCL run-program (Stanford Parser) or Redirecting I/O in Unix »
I am running into trouble spawning the Stanford Parser as a child process in SBCL lisp: (defvar *p* (sb-ext:run-program "/usr/bin/java" (list ...
(1) odpowiedzi
2016-08-24 23:08 How to properly save Common Lisp image using SBCL? »
If I want to create a Lisp-image of my program, how do I do it properly? Are there any prerequisites? And doesn't it play nicely with QUICKLISP? Righ...
(2) odpowiedzi
2016-08-21 18:08 Quicklisp Libraries »
I am currently running SBCL with quicklisp. I found an old project that I was trying to load with (ql:quickload "project") when I get the depe...
(1) odpowiedzi
2016-08-14 19:08 Qt (via Common Lisp's qtools): QLineEdit does not activate on click but receives focus on TAB »
Problem I've run into rather weird problem: QLineEdit objects in the interface cannot be accessed by mouse clicking on them, but using Tab's they rec...
(1) odpowiedzi