Data dodania Pytanie
2017-06-14 06:06 Symbols Produced By Intern »
Here is a code snippet: CL-USER> (setf (symbol-value (intern "foo")) 98) 98 CL-USER> foo ; Evaluation aborted on #<UNBOUND-VARIABLE FOO {100...
(2) odpowiedzi
2017-06-12 10:06 Embeddable Common Lisp (ECL): load shared library with extension functions »
Is it possible to load a shared library in ECL, import some C functions which receive and return cl_object (as if they were defined with ecl_def_c_fun...
(0) odpowiedzi
2017-06-10 11:06 Compilation and Macros »
This is a quotation on the topic "compilation and macro expansion", from the book Common Lisp: A gentle introduction to symbolic computation. (defmac...
(1) odpowiedzi
2017-06-09 22:06 Read from file Common Lisp »
I need to read from a file but I'm having some issues with the code. I've to read i file like this: 1.0 4.5 4.555 6.43 4.0 5 ..... 6 3 2 numbers pe...
(1) odpowiedzi
2017-06-09 19:06 Inferior-Shell Live Print Output »
I'm using inferior-shell:run to launch a long-running task which can routinely fail (it's a build validation routine). My main issue is that I could ...
(1) odpowiedzi
2017-06-09 14:06 Macro Issues: Eval of a macro body works, but the macro doesn't »
Consider the following code snippet: [1]> (defvar *clist* '((2 1 21) ( 3 2 32) (4 3 43))) *CLIST* [2]> (eval `(case '1 ,@(mapcar #'rest *clist*...
(2) odpowiedzi
2017-06-08 08:06 Behaviour of "#'" in lisp »
As far as I understand '# is an abbreviation for (function ). But I noticed different behaviour while using #' in apply function. Example (apply ...
(1) odpowiedzi
2017-06-08 02:06 slime/emacs: Buffer that shows accessible variable bindings at point »
Is there a way to show all accessible bindings at point (cursor)? more precisely: Is it possible (e.g.) to open a buffer and that buffer shows and up...
(0) odpowiedzi
2017-06-07 20:06 SBCL statistical profiler warns of undefined function »
SBCL 1.3.9 produces the following error when I attempt to run the statistical profiler. Is start-profiling not exported? * (in-package :cl-user) * (r...
(1) odpowiedzi
2017-06-07 07:06 How to return middle element of list? »
How to define function which returns the middle element of list, assuming an odd number of elements? (all-but-last list) returns all but the last ele...
(1) odpowiedzi
2017-06-07 03:06 All combinations of list elements without duplicate elements »
Alexandria has a function map-product which takes an arbitrary number of list arguments, and generates all combinations of elements, one from each lis...
(1) odpowiedzi
2017-06-06 13:06 Call Lisp Code from R? »
Is there any way to connect R to Lisp? I have alogrithms written in Lisp but other part of my work is in R and I wanted to automate the entire process...
(0) odpowiedzi
2017-06-06 06:06 LISP file reading Loop condtion and sequential number »
Hello I have question about LISP LOOP condition in file reading and about sequential number in the loop What I want to do is read a file and save dat...
(1) odpowiedzi
2017-06-06 03:06 Common Lisp, list handling (append etc.) »
I have to manage this situation: (defun make-point (a b) (cons a b)) This function creates one of the point on the Cartesian axis (I omit generic c...
(1) odpowiedzi
2017-06-05 21:06 modify plist inside list? »
I have a list of plists such as '((:atom Toddler :visited nil :on-clauses (0 1)) (:atom Child :visited nil :on-clauses 1)) how should I change ...
(2) odpowiedzi
2017-06-05 17:06 How to read file and save data On LISP programming language »
I have a question about LISP Programming language What I have to do is read a file and save data in the file. To do this, I found the function like ...
(1) odpowiedzi
2017-06-05 13:06 Two common elements between lists »
I have a problem with this function two-similar-p. (defun two-similar-p (list1 list2) (mapcar (lambda (e) (mapcar (lambda (e1) ...
(1) odpowiedzi
2017-06-04 17:06 Using variables in the values-form in multiple-value-bind »
I am trying to implement a function read-from-whole-string in lisp, where it uses the inbuilt function read-from-string. About read-from-string r...
(3) odpowiedzi
2017-06-03 10:06 Using deftransform/defknown in SBCL internals to get the compiler to transform user authored functions »
At the end of section 6.5 in the current SBCL manual, we have the following quote: If your system's performance is suffering because of some const...
(1) odpowiedzi
2017-06-02 20:06 "On Lisp": `(a b c) vs '(a b c) vs (list 'a 'b 'c) »
In On Lisp (p. 84) Graham says ‘(a b c) (without comma) is equal to ’(a b c) and then says A backquoted list is equivalent to a call t...
(1) odpowiedzi
2017-06-02 00:06 Defining functions Scheme-style in Common Lisp, without defun »
In Scheme, you define functions like (define f (lambda (x) ...)) In particular, you can do something like this (define f (g)) where g is some fu...
(1) odpowiedzi
2017-06-01 19:06 using Generic sequences system in common lisp with an alist from jonathan »
I'm working with the messenger api from facebook, using ningle. there is a moment in my program that I need to work with this alist coming from jonath...
(1) odpowiedzi
2017-06-01 12:06 SBCL's statistical profiler suddenly stops working »
when I try to use the profiler everything goes well until I change the profiling options. It works when I do (sb-sprof:with-profiling (:report :flat ...
(0) odpowiedzi
2017-05-31 16:05 Weird error when compiling Common Lisp code »
I am getting the following error trying to compile some code: Lambda list of method # is incompatible with that of the generic function INITIAL...
(1) odpowiedzi
2017-05-31 11:05 Typing variables in Common Lisp »
I read that CL supports optional typing (as in the language has this feature) which I would assume allos for faster code in many cases, but I can't se...
(1) odpowiedzi
2017-05-30 18:05 How can I make equivalence function in Common Lisp? »
I know that it is possible to check if 2 lists have the same sets with using "EQUAL" function in Common Lisp. (equal '(a b c) '(a b c)) => T ...
(2) odpowiedzi
2017-05-30 11:05 create a list in c lisp recursively »
I am trying to create a list in lisp that starts at n and ends at 2. (setq liste ()) (defun makeList (n) (if (> n 2) (setq liste (a...
(1) odpowiedzi
2017-05-30 00:05 Equal function in Lisp »
I want to write an equal function that tell that any two numbers are equal, and that a symbol is equal only to itself. Also two lists should be equal ...
(1) odpowiedzi
2017-05-29 19:05 Deep reverse function in Lisp »
I want to write a deep reverse function in Lisp, with only relying on the original reverse function that Lisp provides, and some other common things. ...
(1) odpowiedzi
2017-05-29 11:05 Set operation A\B in Common Lisp »
I just started learning Common Lisp 2 days ago, so please excuse spaghetti code and non-understanding. My problem is the following: I want to write a...
(1) odpowiedzi
2017-05-29 09:05 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 enviro...
(1) odpowiedzi
2017-05-28 09:05 Collecting to a vector instead of a list »
I solved Project Euler's 8th problem using SBCL and the iterate package from quicklisp. In my code I defined a function that turns a number into a lis...
(3) odpowiedzi
2017-05-26 12:05 Exporting anaphoric macros in common lisp packages »
i am having problem exporting a macro, it works when in it is declared in the same package, but not when it is imported. I use Emacs, SLIME, Clozure o...
(1) odpowiedzi
2017-05-25 17:05 CLisp: set encoding to UTF-8 for strings »
I have some piece of code: ; Palatal Pulmonic Consonants (loop for e in (list '(:nasal "ɲ") '(:plosive "c") ...
(1) odpowiedzi
2017-05-23 23:05 Profiling a slow function under SBCL »
I'm in the need to profile a function that is "slow", i.e. it takes a very long time to terminate (if ever). It seems to me that it should be possible...
(0) odpowiedzi