Data dodania Pytanie
2017-10-09 23:10 Which Lisp and which GUI for a vector drawing application? »
I intend to write a vector drawing application in Lisp. I am most comfortable with Common Lisp SBCL and qtools looks fine to me. However, I am tempted...
(0) odpowiedzi
2017-10-09 04:10 SBCL error: "binding stack exhausted" when running Maxima on Linux machine »
I realize there are many places I can ask this question at but I thought I'd try here. I've already seemingly attained as much help as I can from the ...
(1) odpowiedzi
2017-10-06 01:10 Common Lisp Function Return vs Side Effect »
In Common Lisp, if one runs (print "Hello"), he gets this back: "hello" "hello" It is my understanding that one of these is a side effect of the p...
(0) odpowiedzi
2017-10-03 22:10 Error in running LISP code using JScheme in java »
Jar file PC location is mention below: cmd Command: javac -cp "C:\Users\Krishna\Downloads\jscheme-7.2.jar" sample\ABC.java java sample.ABC Sour...
(0) odpowiedzi
2017-10-03 15:10 Sort elements in list »
How to sort elements in list alphabetically ...
(0) odpowiedzi
2017-10-02 01:10 can anybody help to write a lisp code to find the first element which is satisfying the predicate in the list »
can any body help me to write the common lisp code? as following: create a find first predicate list function to return the first element which is sat...
(2) odpowiedzi
2017-10-01 23:10 Learning LISP. Why does NIL print out after end of function using if statement »
Hi newbie here trying to learn lisp and im confused as to why lisp prints out NIL at the end of my output? Is there a way for it to not print NIL or i...
(2) odpowiedzi
2017-09-30 06:09 "Hot" Debug and Swap in Common LISP »
One of the features that are unique to Common Lisp that is frequently mentioned is that of the "hot" debug. That is, it is the ability to debug, edit ...
(2) odpowiedzi
2017-09-29 21:09 Lazily generating prime in Common Lisp »
I'm trying to generate prime numbers in a pythonic way- that is, using generators. The python code would be more or less the following def divisor_i...
(1) odpowiedzi
2017-09-28 17:09 lisp: required argument to defun not a symbol »
When porting legacy code from clisp to sbcl, I encountered syntax which raised a problem illustrated by this code which runs without apparent error in...
(1) odpowiedzi
2017-09-28 17:09 Why does this program return a list of atoms? »
So I am learning Lisp at school and one of the programs I have to create is one that duplicates the functionality of remove-if-not by using mapcan. I ...
(1) odpowiedzi
2017-09-27 22:09 Lisp labels function deleted before used »
I'm trying to use a local function using labels to allow my function to recurse. This is the code: (defun my-replace (e1 e2 L) "Perform a deep r...
(1) odpowiedzi
2017-09-19 12:09 SBCL optimization: function type declaration »
If I have a function that accepts function argument, for optimization purposes I can declare it to be a function, let's say (defun foo (f) (declar...
(0) odpowiedzi
2017-09-17 12:09 sbcl: additional documentation for (for example) #'sb-ext:string-to-octets »
I recently asked a question about sbcl for which a response mentioned two functions of which I wasn't aware: #'sb-ext:string-to-octets and #'sb-ext:oc...
(1) odpowiedzi
2017-09-14 18:09 Lisp, instructions not working in defun »
I'm trying to make a function that changes infix input to prefix eg : (x + 1) as input outputted as (+ x 1). So here is my code for the moment : (s...
(1) odpowiedzi
2017-09-11 14:09 lisp: describing every external thing in a package »
I'm sure the answer is obvious, but I'm banging my head against this one. I'm trying to describe every externally defined thing in a LISP package. The...
(1) odpowiedzi
2017-09-11 00:09 New to lisp. I was wondering why I get this error. "1 is not of type LIST." »
(defun fizzbuzz(lst emptyList) (if (= (mod (car lst) 3) 0) (fizzbuzz (cdr lst) (append emptyList (list(append (car lst) '(fizz))))) ) ...
(1) odpowiedzi
2017-09-10 18:09 A different list merging into a new list in Lisp »
I would like to ask how can I merge 2 different lists of numbers to a new list keeping the "common points" between them in Common Lisp. Example list...
(2) odpowiedzi
2017-09-09 19:09 Why does this racket function need an argument? And how does it work? »
I am a beginner in Racket and the following code is from University of Washington's Racket Programming course- (define s "hello") (define (pow1 x y) ...
(1) odpowiedzi
2017-09-03 14:09 Executing lisp program »
I am new to lisp. I wrote a simple lisp program in notepad and saved it with extension .lisp. Kindly guide me how to execute this program in lisp inte...
(0) odpowiedzi
2017-08-30 19:08 Merging two lists of numbers using Lisp »
I would like to ask how can I merge 2 different lists of numbers to a new list keeping the "common points" between them in Common Lisp. Example ...
(0) odpowiedzi
2017-08-25 14:08 How to manage recursion in Common Lisp macros »
I need to write a Common Lisp macro that take a symbol and a list. The list is composed by lists of two elements: a symbol and a string, like this: (...
(3) odpowiedzi
2017-08-21 14:08 Common Lisp: avoid evaluation of a symbol in a function »
I have a trivial problem in Common Lisp. I need to write a function that takes a symbol as a parameter (i.e. a name of a function or a name of a varia...
(3) odpowiedzi
2017-08-15 10:08 function (OccurencesOfPrimes < list >) which counts the number of primes in a (possibly nested) list »
I am working on problem to get the occurence of Prime in a list in lisp. Input: Write a function (OccurencesOfPrimes < list >) which counts the ...
(1) odpowiedzi
2017-08-13 02:08 Get nth cdr of a list without using nthcdr »
I'm a Common Lisp beginner struggling with one of my assignment... One of my CS assignment is to create a function which basically works as the built...
(1) odpowiedzi
2017-08-11 21:08 Why won't can't I read from my usocket using usocket::socket-receive? »
I'm learning common-lisp, and I'm trying to write a dumb chat program using a client and server tcp socket connection using the usocket library. Below...
(0) odpowiedzi
2017-08-07 17:08 Can SBCL arrays have typed arrays as elements? »
Consider this simple example: (deftype image nil '(simple-array single-float (100))) Here we are defining a shorthand for a type that is an array t...
(2) odpowiedzi
2017-08-06 17:08 Reading structures with typed slots in SBCL »
Consider this simple code example: (defstruct test (:example nil :type (simple-array single-float))) (defparameter test-struct (make-test :examp...
(1) odpowiedzi
2017-08-05 22:08 How to create a common lisp (SBCL) vector of a particular type for usage in a usocket? »
I'm very new to Common Lisp and I am trying to learn how to program using network sockets. In the common lisp usocket api it specifies that the functi...
(1) odpowiedzi
2017-08-03 06:08 SBCL -Common Lisp Error »
I am trying to run the repository from the following link: https://github.com/JafferWilson/test-program I am getting this error: sbcl --script par...
(1) odpowiedzi
2017-08-01 18:08 Is my definition of the LISP cons-cell list correct? »
I'm trying to really understand LISP in order to have a good foundation moving forward, but it's been slow going because LISP (specifically Common Lis...
(4) odpowiedzi
2017-08-01 02:08 Package EXT does not exist »
I am currently working through the Land of Lisp examples and have run into a compile exception: package EXT does not exist from this line I suspect: (...
(1) odpowiedzi
2017-07-31 10:07 How to upgrade asdf version in quicklisp? »
I want to compile and run a lisp source code to parse peercoin blockchain so that i can get top 100 richest addresses. I am using lisp source code htt...
(0) odpowiedzi
2017-07-30 00:07 how to call Common Lisp codes from JSCL method »
JSCL is one of the implementations of Common Lisp(CL). It covers many of CL features except CLOS, format, etc. It has its REPL as other CL implement...
(1) odpowiedzi
2017-07-25 15:07 Blocked Matrix Multiplication »
I am trying to create a function that performs blocked matrix multiplication in AllegroCL, but I keep getting array-index errors. I believe it is due ...
(1) odpowiedzi