Data dodania Pytanie
2017-06-18 11:06 Call to the next most specific method does not work »
Consider the class account : (defclass account () ((name :initarg :name :reader name) (balance :initarg :balance :initform 0.00 :accessor balanc...
(1) odpowiedzi
2017-06-17 15:06 Can't get AllegroServe / Ironclad to work »
(ql:quickload "aserve") fails I'm trying to install AllegroServe. According to http://quickdocs.org/portableaserve/ and to this SO thread the simples...
(1) odpowiedzi
2017-06-17 04:06 Dynamic Binding and Macros »
Consider the following code: CL-USER> (defmacro sum (a b) (+ a b)) SUM CL-USER> (let ((alpha 3) (beta -1)) (sum alpha b...
(2) odpowiedzi
2017-06-16 22:06 How to check if the result of a calculation is a natural number? »
For another Project Euler struggle (using SBCL 1.3.17) I want to test if a number is a pentagonal number. This can be easily tested if the result of ...
(1) odpowiedzi
2017-06-16 20:06 Use package shadowing symbols »
For instance I have this package definition which shadows COMMON-LISP:LISTEN : (defpackage :shadows (:use :common-lisp) (:shadow #:listen) (:ex...
(3) odpowiedzi
2017-06-16 17:06 How to get a file size (and other attributes) in Common Lisp? »
How do we get file attributes ? I primarily am looking to get the size, but also its last access time and other attributes. I only found (file-length...
(1) odpowiedzi
2017-06-15 05:06 Lisp / parameter-passing »
In order to solve some issue I am having while using Common Lisp, I browsed the net and found this: Variable references in lisp which is very related ...
(1) odpowiedzi
2017-06-14 13:06 Write on file Common Lisp »
the problem is: i've a list of lists of lists like this: (((1 2) (3 4) (5 6)) ((7 8) (9 0))) i've to write it in a file, where numbers in every lis...
(1) odpowiedzi
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