Data dodania Pytanie
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
2017-05-23 19:05 Is the X in (LET ((x ...) a fully fleshed symbol? »
Or in other words: Is it possible for a variable in CL not to be (part of) a symbol? I think I may have a profound misconception about variables in C...
(3) odpowiedzi
2017-05-21 14:05 How to convert a vector of digits into an integer? »
For several mathematical fun problems I am using vectors of digits as a representaion of integers. This works fine for me so far. Now I want to conver...
(2) odpowiedzi
2017-05-21 11:05 Why is lisp saying this parameter is not a list? »
I am working through the MP3 database example in Peter Seibel's Practical Common Lisp. Seibel demonstrates how macros can be used to shorten the code ...
(2) odpowiedzi
2017-05-19 15:05 SBCL's statistical profiler does not show an entry for each function called »
I am using the statistical profiler of SBCL to profile these functions: (defun fact-rec (n) (if (zerop n) 1 (* n (fact-rec (1- n))))) ...
(1) odpowiedzi
2017-05-19 07:05 Common Lisp let function »
I'm just starting to program in Common Lisp and going back through programs that I coded during some of my previous classes to learn and I am having t...
(2) odpowiedzi
2017-05-18 14:05 Embedding CSound in Common Lisp »
I am working on embedding CSound in Lisp. CSound is a music synthesis (and more) open source software. It has a fairly simple (scripting) language. Q...
(1) odpowiedzi
2017-05-18 11:05 Emacs highlights every new character I type (Common Lisp with Slime) »
I'm new to Emacs and I use it to code in Common Lisp with Slime. Everything was ok but this morning when I tried to edit a lisp file it highlights eve...
(1) odpowiedzi
2017-05-17 19:05 How to read a HTTP cookie in Common Lisp? »
I would like to make a single CGI program in Common Lisp, that reads a cookie. It is clear to me that I can send a Cookie by sending HTTP headers. Ye...
(2) odpowiedzi
2017-05-17 17:05 Lisp weird new line before print »
When I'm trying to print some text from terminal using "clisp hello.lisp" (where "hello.lisp" is name of my program) then new line is added before rig...
(2) odpowiedzi
2017-05-17 01:05 Am I confusing macro-expansion with evaluation? »
CLHS says and is a macro. So I was interested in how it was implemented and used slime's slime-macroexpand-all-inplace to expand (and 1 2 nil 4 5) wh...
(0) odpowiedzi
2017-05-15 23:05 How to export all definition symbols in a file in Common Lisp? »
My lisp file contains about 50 function and macro definitions. At the head of the file is: (defpackage :utils (:use :common-lisp)) (in-package :ut...
(2) odpowiedzi
2017-05-15 17:05 HANDLER-CASE alternative which is not a macro »
So consider the following code: (define-condition some-condition (error) nil) (defmethod print-object ((obj some-condition) stream) (format stream...
(1) odpowiedzi
2017-05-15 09:05 Why is a macro being evaluated while compiling a function definition (Clozure Common Lisp)? »
I have: (defmacro assign (name value) (format t "assigning ~A to ~A~%" `,name `,value)) (defun opcode-call (&rest args) (mapcar (lambda (arg...
(1) odpowiedzi
2017-05-13 03:05 Common Lisp: Getting the documentation string of a macro »
In SBCL, I can get the documentation string for a function with something like this: (documentation #'mapcar t) However, I don't understand how to ...
(1) odpowiedzi
2017-05-12 17:05 Recursion to make chord inversions »
I am a composer usually working with Max-MSP and OpenMusic. For porting some work from OM to Max, I have just started to learn LISP. My problem is ra...
(1) odpowiedzi
2017-05-09 01:05 Programmatically constructing a Common Lisp function with defun »
I would like to define a function using defun, but not at top level. (The function name & body needs to be constructed from some user input.) The ...
(2) odpowiedzi
2017-05-08 04:05 ",@" in lisp macro functions »
From http://www.gigamonkeys.com/book/practical-a-simple-database.html : The ,@ "splices" the value of the following expression--which must evalu...
(2) odpowiedzi
2017-05-07 12:05 modifying quicksort in lisp to use an intermediate valuator filter »
I'm working on implementing quicksort that uses an intermediate valuator function; not a test function, but a valuator which substitutes the indirect...
(1) odpowiedzi
2017-05-05 08:05 How to insert code verbatim into SWIG interface? »
I need to insert code into the header of the generated file, but the inserted code is written in Lisp. Since SWIG tries to parse it, it breaks. I nee...
(1) odpowiedzi
2017-05-04 11:05 How to get url query parameters in Clack, Lucerne or Caveman? »
How can we access the url's query parameters in a Clack environment ? It looks like they are in a clack *request* object, named query-string, but I d...
(1) odpowiedzi
2017-05-04 11:05 JIRA API in Common Lisp »
Is there a JIRA API client (or library) written in Common Lisp (I use SBCL)? So far I was able to find the two (both in GitHub.com ): fiddewoaroof/j...
(0) odpowiedzi
2017-05-04 03:05 Creating equivalent to incf as macro-function in lisp »
I'm just starting to learn the concept of macro functions. My teacher has asked us to create a macro function that would function exactly the same wa...
(1) odpowiedzi
2017-05-03 06:05 Distributive function in lisp to merge two lists »
I'm trying to create a function in lisp that receives two lists and distributes their values into a new list. I need to get the values of the first li...
(2) odpowiedzi
2017-05-03 05:05 Implement every, some in Lisp »
So, basically I have a Lisp programming homework. These operations are allowed: quote (’), car, cdr (cadadr, etc.), first, second (third, etc.), res...
(0) odpowiedzi
2017-04-30 10:04 How to write a lisp function which would have in his arguments a choice among several outputs options (i mean by output several possible operations ) »
Hello i try to write a lisp function or a macro which would have in his arguments a choice among several outputs options (i mean by output several pos...
(1) odpowiedzi
2017-04-30 00:04 /Applications/Clozure CL.app/Contents/Resources/ccl/dx86cl64.image: cannot execute binary file »
Setup: MacOS 10.12.4 Clozure CL Version 1.11.1 (16714) Emacs Version 25.1 (9.0) Problem: Clozure CL app starts, REPL runs. Emacs inferior-list f...
(1) odpowiedzi
2017-04-29 11:04 Unbound Variable error in Lisp »
I am trying to do a function that removes duplicates from a list using Common Lisp on LispWorks. So I did two functions. The first one "remove-e" rem...
(1) odpowiedzi
2017-04-29 09:04 Refresh Terminal Window Common Lisp »
I'm planning on writing a small game in Common Lisp on Mac OSX and I want my character and the enemies to be able to move around on screen. I was hopi...
(1) odpowiedzi
2017-04-29 01:04 Confusing SBCL compiler message »
I'm receiving a SBCL compiler warning message, which I don't understand: ; file: D:/Users Data/Dave/SW Library/AI/Planning/DAB Planner/support.lisp ;...
(1) odpowiedzi
2017-04-26 19:04 LISP - Divide a list with the first element of that list »
I want to write a recursive function that takes a list and then divides that list with the first element. When I call the function with (divfirst '(...
(1) odpowiedzi