Data dodania Pytanie
2018-02-14 19:02 Common Lisp Hash-Dot #. Reader Macro »
Recently, I have come across the so-called hash-dot Common Lisp reader macro and am wondering how it works and what it does. Using search engines was ...
(1) odpowiedzi
2018-02-13 04:02 Lisp error: code contains a dotted list, ending with »
Trying to compute B^e and getting the weird error *** - code contains a dotted list, ending with B code: (defun fast-power (B e) (cond(zerop e) ...
(3) odpowiedzi
2018-02-12 07:02 Creating a Lisp macro that can apply a lambda to a list within a context »
Basically I am trying to write a Common Lisp macro defined as: (defmacro applyfunct (function arguments variables)) that applies the function given...
(1) odpowiedzi
2018-02-12 03:02 How do I make a setf-able a macro that will either return a form that returns a parameter or a form that returns a default number »
I have this macro (defmacro get-priority (todo) `(or (and (listp (car ,todo)) (cdr (assoc 'priority ,todo))) 0)) Which is called...
(1) odpowiedzi
2018-02-11 02:02 Common Lisp and ASDF System Testing »
I am wondering how one runs tests using ASDF. Suppose we have the following system definition. What command would I run to run the tests? I have trie...
(1) odpowiedzi
2018-02-08 00:02 When installing quicklisp on Windows 10, where should I put ~/.config/common-lisp/source-registry.conf.d/projects.conf for ASDF to find? »
I am trying to get Common Lisp running on my Windows 10 machine and I have run into a problem with getting ASDF/(ql:quickload "...") to load a project...
(0) odpowiedzi
2018-02-06 05:02 common lisp invoking function without apply leads to odd number of keywords »
i am currently learning common lisp and stumbled upon a question i could not answer my self: (defun find-all (item seq &rest keyword-args &ke...
(2) odpowiedzi
2018-02-05 19:02 ES6 style classes in Parenscript »
Is there a decent way to write a Parenscript class macro that outputs ES6 class definitions? If the class definitions look like this: class Person {...
(2) odpowiedzi
2018-02-04 20:02 backquote, unquote and unquote-splicing in normal functions »
I am still in the process of understanding macros and though I think I understand the basics of "backquote" "unquote" and "unquote splicing", I had th...
(3) odpowiedzi
2018-02-02 00:02 lisp read command works wrong for sbcl »
I schlocked this example of a read function from (Land of Lisp)in to my sbcl repl and it does not show the prompt: "Please type your name" until after...
(1) odpowiedzi
2018-02-01 19:02 Having trouble creating a higher-order function in Common Lisp »
I'm trying to follow along with SICP in Common Lisp. I tried adapting the higher-order function shown in §1.3 of the book, which is just an implemen...
(0) odpowiedzi
2018-02-01 16:02 How do I use CLX/XLIB from Common Lisp after installing it from my package manager? »
I'm trying to use CLX while learning common lisp, because I figure it's more effective to learn if I have an actual, tangible, practical result. Unfor...
(1) odpowiedzi
2018-01-31 12:01 Difference between setf functions and functions »
What is the difference between the following solutions (a setf function and a function)? Is one of them preferable, or are they only two ways to get t...
(1) odpowiedzi
2018-01-28 19:01 Generate combinations »
I am trying to write a function in Lisp that generates all possible combinations of given keys and values. Here is an example input and output: Input...
(2) odpowiedzi
2018-01-23 14:01 Does SBCL for lisp handle scope differently? It does not seem to pass scope into called functions? »
When using emacs or my android app I run (defun big (num) (setf num2 5)(little num))) (defun little (num)(+ num2 num)) Little happily accepts num2 ...
(1) odpowiedzi
2018-01-23 13:01 WebSocket error in common lisp »
I want to make slack bot. I can not solve this error. (ql:quickload '(:cl-slack :event-emitter :websocket-driver ...
(0) odpowiedzi
2018-01-23 00:01 Accessing an encapsulated class slots within the encapsulating class method in common list »
I have the following basic classes and methods: (defgeneric connect-edge (edge)) (defclass Node () ((forward-edges :initfo...
(1) odpowiedzi
2018-01-22 14:01 Working through Practical Common lisp, how to get started »
I want to setup a common lisp environment to write non-trivial programs. I have been learning common lisp by typing in code at the REPL. I wish to s...
(1) odpowiedzi
2018-01-22 06:01 Doubling every item in list while limiting cons calls in Lisp »
I have a function that doubles every item in a list: (defun double (L) (cond ((atom L) nil) (t (cons (car L) (cons (car L ) (double (c...
(2) odpowiedzi
2018-01-21 23:01 Writing a NoSQL / MongoDB Driver »
I am currently thinking of undertaking the task specified in the title for one of the Lisp languages (most likely Common Lisp). However, I have no ide...
(0) odpowiedzi
2018-01-21 21:01 Common Lisp weird multiplication »
I'm just curious about the result of the following multiplication : (* 2.14 5.0) ==> 10.700001 Why this remaining '1' at the end of the result ?...
(0) odpowiedzi
2018-01-21 10:01 How to save lisp interaction history for future re-load? »
I am using portacle as my Common Lisp environment. When I save my file it saves the entire REPL including the CL-USER>. This results in compilation...
(1) odpowiedzi
2018-01-20 21:01 Where is 'a1' bound in sortf from the book Let over Lambda? »
The book "Let over Lambda" by Doug Hoyte describes a fast sorting function for fixed sized inputs via sorting networks: (defmacro! sortf (comperator ...
(1) odpowiedzi
2018-01-20 19:01 Sidestepping errors by defining vars with SETF »
Crew, I'm one of those types that insists on defining my variables with SETF. I've upgraded to a new machine (and a new version of SBCL) and it's n...
(2) odpowiedzi
2018-01-20 07:01 Calling Lua From Common Lisp »
Is there any existing project or easy approach to running lua code in a common lisp program? I've seen a few Lisp in Lua projects but to my knowledge...
(1) odpowiedzi
2018-01-19 09:01 Wss protocol in common lisp? »
I want to make slack bot. I need to use wss protocol. Please tell me WebSocket library with 'wss' protocol in common lisp. I know WebSocket library wi...
(0) odpowiedzi
2018-01-18 23:01 Trying to write a function that creates global symbols in common lisp »
I have a global list of words (symbols) and I want to write a function that can add new words to it. I can add new words but then I run into errors th...
(2) odpowiedzi
2018-01-18 13:01 How to remove a defmethod for a struct »
I have 2 destructs: monster & orc. The orc includes monster. The generic monster has generic defmethods on it named monster-show & monster-hit...
(3) odpowiedzi
2018-01-18 00:01 I am using lisp in a box environment »
CL-USER> (load "hello-world.lisp") #P"g:/Machinelearning/Beginner/lispbox-0.7/hello-world.lisp" How do I know the file is compiled? What command ...
(1) odpowiedzi
2018-01-16 14:01 Saving SBCL Image From Emacs Multiple Threads Error »
I have been playing with saving running Common Lisp images to save time upon restart and make the development more efficient. However, I am having a b...
(2) odpowiedzi
2018-01-15 15:01 Looking for a program that can help me generates for a lisp program a lines of code per function statistics »
I am looking for program that can generate for me a statistics of the lines of code per functions in a lisp program. In Lisp this means for each funct...
(1) odpowiedzi
2018-01-15 07:01 write json object in lisp »
Good morning i need help to write this function in lisp. this is the description. The json-write function writes the JSON object to the filename f...
(1) odpowiedzi
2018-01-14 23:01 Arrays, Lists and Hashtables in Common Lisp »
I am wondering what is the difference between arrays, lists and hashtables in Common Lisp. That is, I am aware how to implement and use them syntactic...
(1) odpowiedzi
2018-01-13 12:01 LISP find last paired parenthesys »
The function i wrote has to return the position of the } corresponding to the first occurrence of the { it finds from the start (i'm not looking for t...
(0) odpowiedzi
2018-01-13 11:01 Common Lisp CFFI and C exit codes »
I have successfully coupled a C library with Common Lisp, with the help of CFFI. However, the C library uses exit codes to catch errors, which leads t...
(1) odpowiedzi