Data dodania Pytanie
2017-04-06 10:04 SBCL common lisp, using pmap within a loop »
I've been recently dealing with a nested for loops in SBCL. I discovered, that operations, which can be reduced to map, can easily be made parallel us...
(1) odpowiedzi
2017-04-05 12:04 Splitting a string by whitespace in SBCL »
I've been trying to split a simple whitespace-delimited string into individual parts, for example: I have: "test 123 test2 test3" ...
(2) odpowiedzi
2017-04-05 10:04 Common lisp reading a gzipped stream line by line »
I am currently dealing with a problem, where I have to read a zipped file line by line, and further on process each line and do something with it. I ...
(1) odpowiedzi
2017-04-04 08:04 Lisp disabling ASDF warning »
I wrote my first SBCl Lisp program, which will be execute from the command line. I use the following command for execution: sbcl --noinform --noprint...
(0) odpowiedzi
2017-03-27 23:03 Where is the implementation of values-list in SBCL? »
I am trying to figure out the implementation of values-list function in SBCL. The source code at src/code/eval.lisp looks like pretty simple, but why ...
(1) odpowiedzi
2017-03-25 00:03 Lisp SBCL declare a function argument to be a list of a certain type for type checking »
I am having a hard time figuring out how to tell the sbcl compiler that the &rest args to a function ought to be a list of TYPE. Basically, I wan...
(1) odpowiedzi
2017-03-22 00:03 Optimisation options sbcl »
How to set optimization options like "speed 3" for all functions? (declaim (optimize (speed 3) (debug 0) (safety 0)) Doesnt work( ...
(1) odpowiedzi
2017-03-04 09:03 How many memory the bit-vector using in sbcl? »
How many memory the bit-vector using in sbcl? Does per bit spend 1 bit memory? Does per bit spend 1 byte memory? Does per bit spend 1 word memory? ...
(2) odpowiedzi
2017-03-02 23:03 How to run Windows shell commands from Lisp with asdf uiop:run-program under sbcl »
We would like to invoke Windows shell commands from within Lisp, using sbcl and asdf uiop:run-program. What we have done under emacs/slime on Windows...
(1) odpowiedzi
2017-02-14 07:02 Why does apply throw a CONTROL-STACK-EXHAUSTED-ERROR on a large list? »
(apply #'+ (loop for i from 1 to x collect 1)) works if x has value 253391, but fails with a (SB-KERNEL::CONTROL-STACK-EXHAUSTED-ERROR) on 253392*. ...
(2) odpowiedzi
2017-02-08 15:02 Recursion in SBCL »
I am having an issue with SBCL (on linux) which might be related to tail recursion (not that I'm entirely sure what that is). I am adding the code th...
(1) odpowiedzi
2017-02-04 02:02 how are functions defined in the lisp dialect used in the little lisper 1974 edition »
The first function definition in the 1974 edition of the Little Lisper appears as follows: (ISLAT (LAMBDA (L) (COND ((NULL L) T) ((ATOM (...
(1) odpowiedzi
2017-02-03 21:02 How to load non-standard characters from file using SBCL Common Lisp? »
Trying loading contents of file containing one line with word: λέξη (with-open-file (s PATH-TO-FILE :direction :input) (let ((a (read-line s)))...
(1) odpowiedzi
2017-02-03 04:02 How can I list all of the defined functions and global variables that are active in common lisp »
Is it possible to determine what the current environment has defined (in the common lisp image), from the running system itself? I am running SBCL 1....
(1) odpowiedzi
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