Data dodania Pytanie
2017-03-13 11:03 Lisp web tales: How to fix the blogdemo example (Chapter 4)? »
I came across Pavel's tutorial about writing a web app using CL and RESTAS as a frame work. While simple Hello, World! examples work. I am not able to...
(0) odpowiedzi
2017-03-12 23:03 Creating 2 files and writing to them different content from another file in Lisp »
I am trying to write in 2 different files content from another file. Procedure is that I have to write 10 lines of file_a in one file and the rest in ...
(1) odpowiedzi
2017-03-10 15:03 Is it possible to limit the number of calls to the cons function in the duplicate() function? »
I wrote the function double() that duplicate the items in a list as follows: (defun duplicate (l) (if (null l) nil (cons (car l) (cons ...
(3) odpowiedzi
2017-03-10 04:03 Why are this list's contents retained between function calls? »
I probably just don't understand Lisp scoping, but I'm struggling to understand what's going on in this tic-tac-toe game, which I've stubbed down to d...
(0) odpowiedzi
2017-03-07 17:03 Generalizing Lisp functions »
For rapid prototyping purposes, I would like to start building a library of generalized versions of some basic functions provided in Common Lisp, rath...
(1) odpowiedzi
2017-03-07 13:03 lisp Cons cell diagram for the list »
This is my trying code. (defun f (lst) (cond ((null lst) nil) ((listp (first lst)) nil (f (car lst))) (t (cons (f...
(1) odpowiedzi
2017-03-07 07:03 LISP programming »
(defun bubbleUp (n) (cond ((null n) nil) ((null (cdr n)) n) ((> (car n) (car (cdr n))) (append (list (car (cdr n))) ...
(1) odpowiedzi
2017-03-06 19:03 require doesn't load asdf system in ~/common-lisp/ subdirectories »
(require :your-system) doesn't load system but system exist in asdf standard directory ~/common-lisp/. CL-USER> (require :your-system) Don't know...
(2) odpowiedzi
2017-03-06 16:03 lisp swap list elements »
This is my lisp code. (defun f (lst) (append (subst (last lst) (first lst) (car lst)) (subst (first lst) (last lst) (...
(2) odpowiedzi
2017-03-06 10:03 Common Lisp: extract methods from generic function »
Is there a way to extract a list of methods from a generic function in Common Lisp? For example: (defmethod say ((self string)) ; method-0 (forma...
(1) odpowiedzi
2017-03-05 19:03 Common Lisp references to functions »
There seems to be a number of different ways of referring to a function in Common Lisp: via symbol, where the symbol appears (unquoted) as the car o...
(1) odpowiedzi
2017-03-05 04:03 How can the symbols in a Pandoric Macro be compiled out? »
I have read section 6.7 of LOL a few times now, and I still can't wrap my mind around the following. Bindings that were previously closed to outsi...
(2) 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-03 15:03 &optional parameter in lisp macros: Why does this variable behave like this? »
I'm trying to create a lisp macro that has an &optional parameter with a default value. Unfortunately the parameter is processed differently depen...
(1) 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-03-02 13:03 Common Lisp: CLOS and packages / how to import and merge generics »
Suppose we have two packages, each defines a class and exports symbols for slots/generic methods with identical names. (defpackage pkg1 (:export _cla...
(2) odpowiedzi
2017-03-01 20:03 Common Lisp type vs. class distinctions »
In the post at Common Lisp class hierarchy, Rainer Joswig & Joshua Taylor carefully distinguish some of the differences between built-in Common Li...
(3) odpowiedzi
2017-03-01 01:03 Breaking up a list into groups of 3's and interjecting symbols »
Im trying to create a function which will take a integer argument and returns those integers with their position within the number spelled out. For ex...
(1) odpowiedzi
2017-02-28 18:02 Hunchentoot dispatcher »
I'm relatively new to Common Lisp (SBCL) and Hunchentoot (using Quicklisp). Can someone tell me how I can get this to work? I'm trying to wrap an Hunc...
(1) odpowiedzi
2017-02-28 17:02 Common Lisp class hierarchy »
Greg Pfeil's Class Hierarchy diagram provides a comprehensive picture the Common Lisp type system. But I'm trying to better understand the class relat...
(2) odpowiedzi
2017-02-28 16:02 Access https page in Common Lisp error »
Right now when I am trying in Common Lisp to connect to an https site with dexador I get this error: SSL verify error: 20 X509_V_ERR_UNABLE_TO_GET...
(0) odpowiedzi
2017-02-27 22:02 How do I encode booleans using yason? »
I'm trying to use the yason library to encode some data for an API endpoint. Some parts of the return value here are going to be booleans. The problem...
(1) odpowiedzi
2017-02-26 17:02 How is the defun macro implemented in lisp? »
I'd like to learn more about lisp macros and I want to create a simple implementation of the defun macro. I'm also interested in lisp's source code in...
(2) odpowiedzi
2017-02-26 09:02 Lisp- "[Function name] Is not a Number" »
So I have this simple expression to evaluate and list the two roots of a quadratic equation: (defun QUADRATIC (A B C) (list (/ (+ (- B) (sqrt(- (*...
(1) odpowiedzi
2017-02-25 18:02 Immutable lisp objects »
Peter Seibel in Practical Common Lisp Ch 6. Variables, footnote 4, mentions that integers and characters are immutable. (To this short list, sds at No...
(1) odpowiedzi
2017-02-24 19:02 How do I create SHA256 HMAC using Ironclad in Common Lisp? »
There is a python function I am trying to port to Common Lisp: HEX(HMAC_SHA256(apiSecret, 'stupidstupid')) How do I go about this with Ironclad? T...
(1) odpowiedzi
2017-02-24 03:02 Passing by parameters by value in lisp »
The problem I am having is that I can't get around the fact that lisp passes arrays by value not by reference. When I researched this problem, the so...
(1) odpowiedzi
2017-02-23 01:02 The copy-symbol function »
Common Lisp provides a number of functions for copying objects; namely, copy-list, copy-alist, copy-seq, copy-structure, copy-tree, and copy-symbol. H...
(1) odpowiedzi
2017-02-22 15:02 lisp different length two list »
I'm having difficulties with two lists of different lengths. (f '(8 1 2 3 23 12) '(2 9 4 6)) should return (1 2 3 4 6 8 9 12 23) This is my trying c...
(1) odpowiedzi
2017-02-21 18:02 Nondestructive setf? »
Common Lisp seems to go to great lengths to provide both nondestructive functions (like subst & remove) and destructive functions and modify macro...
(2) odpowiedzi
2017-02-21 07:02 What is the meaning of adoc mode? »
The adoc minor mode automatically appear whenever I open Common Lisp extension file *.lsp. I have done a search on Google, as well on Emacs help itse...
(1) odpowiedzi
2017-02-21 00:02 Installing CLOCC & packages »
The comment by sds at Saving CLOS objects provides a reference to a Common Lisp Open Code Collection (CLOCC) file (closio.lisp) for printably reading ...
(1) odpowiedzi
2017-02-20 15:02 Lisp recursive square use one variables »
This is Trying code (defun f (a n) (if (zerop n) 1 (* a (f a (- n 1))))) (f 3) should return 27, (f 4) should return 256 I tri...
(5) odpowiedzi
2017-02-20 00:02 Saving CLOS objects »
Saving any Common Lisp structure object to a file (readably) seems relatively straightforward with something like (defun save-structure-object (objec...
(1) odpowiedzi
2017-02-20 00:02 Advice on how to tackle this lisp function. »
I have written a function called my_rotate that takes a number from a user and creates a list up to five numbers. my_rotate then, pops off the first e...
(1) odpowiedzi