Data dodania Pytanie
2017-01-28 23:01 Getting ECL symbol name as string in C++ »
I'm working on embedding Embeddable Common Lisp into a library and I've been writing utility functions to convert ECL's cl_object to various C/C++ typ...
(1) odpowiedzi
2017-01-27 19:01 Is there any difference between the "for" and "as" keywords in the loop macro? »
In Common Lisp, in the loop macro, the and and as keywords appear to function identically: (loop for i from 1 to 3 do (print i)) (loop as i from 1 to...
(1) odpowiedzi
2017-01-27 18:01 Why does (probe-file #P"/") return nil? »
This seems like it could be a bug in ECL's implementation -- or due to some detail in the standard: > (probe-file #P"/usr") #P"/usr/" ...
(0) odpowiedzi
2017-01-27 03:01 LISP function to print out fibonacci sequence up to N amount of numbers »
I have to write code that computes N Fibonacci numbers (where N is the function parameter). I'm new to LISP and am struggling with the syntax. This is...
(3) odpowiedzi
2017-01-26 21:01 Is there an inverse of 'pathname-directory'? »
I wonder if there's a function such that: (equal path (some-function (pathname-directory path))) ...
(1) odpowiedzi
2017-01-26 04:01 Common Lisp - Platform for Number Crunching »
I have been using GNU Clisp on Windows 10 (on an ASUS Laptop) and ran into memory problems when creating a matrix with millions of entries. After a l...
(0) odpowiedzi
2017-01-25 16:01 Why when I convert a string to a symbol using intern is the accesror function for structures returning an error? »
I am by most standards a novice lisp programmer, however, I don't feel what I am trying to do is particularly complex and I do not understand why it i...
(1) odpowiedzi
2017-01-25 05:01 How can I find the asdf system that contains a lisp form? »
Is there a way to determine what asdf system contains a piece of code? Obviously: (let ((p *package*)) (defun get-package () p)) Getting the ...
(0) odpowiedzi
2017-01-25 04:01 Flattening lists (while removing 'nil' and keeping atoms after " . ") in lisp »
I want to create a function that would flatten a list and remove all potential nil inside. Expected behavior, example 1: (myfunc '(a (b (c) (d)) (e ...
(1) odpowiedzi
2017-01-24 21:01 Concise access to generalized variables »
Common-lisp seems to provide "generalized variables" to allow programmatic access to places in addition to names (of variables). As a simple example, ...
(0) odpowiedzi
2017-01-24 18:01 HTTPS with Clack »
I have written a small server with Ningle, which in turn is using Clack to start a web server such as Hunchentoot or Woo. How can I handle HTTPS requ...
(1) odpowiedzi
2017-01-24 11:01 Partially Shared data structures common lisp »
Say I wanted to have two lists(setq x '(1 2 3)) and (setq y (list 1 (cadr x) 3) but I wanted (cadr y) to actually point to (cadr x) so that after (set...
(2) odpowiedzi
2017-01-23 21:01 Common lisp: How to implement reduce »
I've been looking for this for days, basically I need to implement a function that does the same thing that the system function reduce does. This is w...
(2) odpowiedzi
2017-01-23 02:01 Should error reporting bind *print-circle* to T? »
When CL reports an error, it often prints objects which caused the error. Should CL bind *print-circle* (or *print-length*/*print-level*) when printi...
(1) odpowiedzi
2017-01-22 23:01 Clisp "Program stack overflow. RESET" on a (cadr). How? »
I'm (still) porting code from Franz Lisp to Common LISP. Now I seem to have pushed the interpreter into a strange corner where it blows up. [11]>...
(1) odpowiedzi
2017-01-21 01:01 Why do some lisps put the function name outside of the argument list in a function definition? »
common lisp and clojure do (defn function-name (arg1 arg2) (body)) racket/scheme does (defn (function-name arg1 arg2) (body)) The latter makes m...
(3) odpowiedzi
2017-01-20 20:01 Extendable Vector Type »
How does one properly specify the common-lisp type of an extendable vector (ie, acceptable to vector-push-extend), so it can be copied. For example, i...
(2) odpowiedzi
2017-01-20 08:01 Clisp error message: an object cannot start with #\). What does this mean? »
Please see this example. I am using GNU CLISP 2.49. (defparameter *pudding-eater* 'henry') ;; output: READ from #<INPUT CONCATENATED-STREAM #<...
(3) odpowiedzi
2017-01-19 03:01 Franz LISP to Common LISP conversion 2 - macros which generate macros »
I'm reviving an old LISP program from the early 1980s. (It's the Nelson-Oppen simplifier, an early proof system. This version was part of the Ford Pas...
(2) odpowiedzi
2017-01-19 01:01 how to remove an element from a nested list lisp »
could you please help me to solve a tricky homework about nested list? Basically anytime the predicate evenp is true , I should remove the element fr...
(1) odpowiedzi
2017-01-18 16:01 LISP FUNCTION - Return the count of numbers of the list that are bigger of the first element »
I want to solve a lisp function that returns a NUMBER(count) of numbers which are greater than the first number in the list.The list is a linear list ...
(2) odpowiedzi
2017-01-18 15:01 Read in data from the user in a loop »
For a little game I am working on, I want to read in the names of the players. I have two solutions so far which I find both a bit cumbersome. Version...
(1) odpowiedzi
2017-01-17 06:01 How to create a single word from macro arguments in Common Lisp? »
I have: (defmacro test (a b c) `'(,a ,b ,c)) Running (test apple banana cuba) gives (APPLE BANANA CUBA) as expected. How do I make the macro p...
(2) odpowiedzi
2017-01-14 17:01 How to define a function locally in lisp? »
I need to define a function inside a let and be able to immediately use it, like this: (let ((test (lambda () (print "ha")))) (test)) However,...
(3) odpowiedzi
2017-01-14 16:01 Spawning multiple processes to handle many socket based connections in Clozure Common Lisp »
I have the following: (defun serve (&key (port 80) (handler #'IDENTITY)) (WITH-OPEN-SOCKET (socket :LOCAL-PORT port :LOCAL-HO...
(1) odpowiedzi
2017-01-13 09:01 CLISP Terminal error: Invalid byte sequence »
i have a problem while loading my source file inside terminal using clisp. if i execute the following command to load the file: (load #p "filename.l...
(1) odpowiedzi
2017-01-13 07:01 Mutiple value bind in do loop in Common Lisp »
How do you bind multiple values returned from a function, inside a do loop? The following is obviously very wrong, but is something like this possible...
(3) odpowiedzi
2017-01-12 17:01 Exercise about substitution in nested lisp »
Morning everyones!!! I'm actually trying to make an exercise in Common Lisp but I have no idea of how to do it only using recursion. This is the pr...
(0) odpowiedzi
2017-01-12 04:01 Is there anyone who has completed all the exercises in the "Common Lisp - An Interactive Approach" book? »
Here’s the link to the book. I’m stuck in the exercises of the “Recursion on Trees” chapter (Pg 148, Prob 18.25). It involves redefining two...
(0) odpowiedzi
2017-01-12 03:01 Franz LISP to Common LISP conversion questions »
I'm reviving an old LISP program from the early 1980s. (It's the Nelson-Oppen simplifier, an early proof system. This version was part of the Ford Pa...
(1) odpowiedzi
2017-01-11 22:01 Delete the first element of each sublist »
I am supposed to write a function which will delete the first element of each sublist. So if we are given (1 (2 (3 4) 5) 6), my function should retu...
(1) odpowiedzi
2017-01-11 04:01 Same results as "member" without using it (lisp) »
To complete an exercise, I need to check if an element is in a list or not. I know that there is the function member in lisp, but our instructor is ve...
(1) odpowiedzi
2017-01-11 00:01 How to set 80 columns in LispWorks? »
I'm very new with Common Lisp and LispWorks so please describe all the steps. I want to set 80 columns, how can I do? I'm using LispWorks Personal. ...
(1) odpowiedzi
2017-01-10 18:01 Access CLOS-object slots from used external package »
I am learning to structure my CL programm and now having trouble to use the CLOS while programming in the large with packages. package.lisp (defpack...
(3) odpowiedzi
2017-01-09 20:01 How can *standard-input* and *standard-output* be redirected to another PTY, FIFO or socket? »
I was wondering if it's possible to redirect ECL's Linux stdio so that it does not share streams with the application that it's embedded in. My probl...
(0) odpowiedzi