Data dodania Pytanie
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 16:08 How to undo a `declaration` proclamation? »
It appears that most (if not all) global declarations cannot be reverted in an ANSI CL standard way. E.g., once you evaluate (either directly or by l...
(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-03 05:08 Running Lisp program with Python2 or 3 »
I am having the lisp code that I found at the repository: https://github.com/JafferWilson/test-program I am looking for compiling and running this cod...
(0) 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-29 16:07 CL-WHO not displaying any HTML after conditional »
Sorry for the probably stupid question, but I'm new to Common Lisp (I migrated from Racket) and so far I'm having an absolute blast building a web app...
(1) odpowiedzi
2017-07-29 15:07 unread-char behaviour deviating from spec? »
On the Common Lisp HyperSpec page for unread-char - see here - it says both of the following things: "unread-char is intended to be an efficient mec...
(1) odpowiedzi
2017-07-29 08:07 Sharing Lisp symbols across packages »
I have a function foo defined in a package my-package: (in-package :my-package) (defun foo (a) (if (eql a 'value1) (do-this) (do-the-other)...
(1) odpowiedzi
2017-07-26 12:07 common lisp iterate generalized drivers »
I'm going throught the iterate manual and in section 2.1.3, appears genearlized drivers and in section 2.1.5 previous values of driver variables. Wi...
(0) 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
2017-07-24 16:07 Lisp sort function key »
I'm trying to sort a list that looks something like this: (defvar my-list '((:x 1 :y something) (:x 5 :y something) (:x 19 :y something))) I'm tryi...
(2) odpowiedzi
2017-07-24 02:07 Using parenscript set-interval function »
I've seen many examples where the (set-interval "my-method" n) function is used to call a function every n seconds in the browser, but I cannot get th...
(2) odpowiedzi
2017-07-23 12:07 LISP break a function execution »
How can I break a function execution in LISP if I get a certain value? For example, I have a main function like this: (defun recognize-a (arg input)...
(1) odpowiedzi
2017-07-21 21:07 Why prohibit a function object in function position (but allow lambda forms)? »
lambda form expression in function position A lambda expression in function position compiles just fine: > ((lambda (n) (> n 10)) 42) T Clos...
(3) odpowiedzi
2017-07-21 18:07 Is it technically possible to make Python / Ruby as performant as Common Lisp? »
It is said that Python/Ruby are conceptually close to Common Lisp. I was wondering specifically - Being said to provide high performance to modern C...
(0) odpowiedzi
2017-07-21 07:07 Removing last two elements from a list in Lisp »
I need to remove the last two elements from a list in common list, but I can remove only one. What's the way? (defun my-butlast (list) (loop ...
(2) odpowiedzi
2017-07-20 17:07 LISP parameter binding »
I have to define a LISP function that assigns to a parameter the result of another function, like this: (defun assign-param (x) (defparameter param...
(2) odpowiedzi
2017-07-20 17:07 Cannot install lparallel alongside CL21 (?) Failing with CL21.CORE.FUNCTION »
I have a weird mix of errors. I was using CL21, I was in my package, and I wanted to install lparallel. Not possible: (ql:quickload :lparallel) To l...
(1) odpowiedzi
2017-07-19 23:07 NFA recognizer in LISP »
I have to define a function in lisp that, given a regular expression and an e-NFA as input, it returns true if the expression is accepted by the autom...
(2) odpowiedzi
2017-07-19 23:07 Dynamically defining setf expanders »
I'm trying to define a macro that'll take a struct's name, a key, and the name of a hash table in the struct and define functions to access and modify...
(1) odpowiedzi
2017-07-19 15:07 Looking for a way to map a function over a 2D Lisp array »
All of the map functions like mapcar, mapcan, mapc, etc require lists as their inputs. I am working with 2D arrays, and would prefer to not mess with ...
(1) odpowiedzi
2017-07-18 09:07 Comparable (Rankable / Sortable) enums in Common Lisp »
I wonder if there's any trick or library to get rankable enums in Common Lisp. In general I define a set of enums like this (deftype weekdays() ...
(1) odpowiedzi
2017-07-18 03:07 Need help presenting a list »
I need help about the way for present a list in Lisp. I have this list of names and different lenguages (setq l '((david spanish german) ...
(2) odpowiedzi
2017-07-17 19:07 LISP meaning of # symbol »
In my Lisp code I have the function (nfa-regex-compile), which creates a list of cons with the initial state, the transitions and the final state (rep...
(1) odpowiedzi
2017-07-17 11:07 Lispworks 7.0 load zeromq fail in Windows 10 »
I use the LispWorks7.0 to load the zeromq on my PC with windows 10, and got the error message as below: CL-USER 13 > (ql:quickload :zeromq) To...
(0) odpowiedzi
2017-07-16 17:07 Signing Requests & Timestamps »
Amazon has a handy-dandy tool for testing requests and confirming that you are signing requests correctly they call a 'scratchpad'. You hand it an un...
(1) odpowiedzi
2017-07-14 20:07 Is it reasonable to create large numbers of gensyms? »
I am considering using large numbers of gensyms to differentiate between objects in a system I'm building (like refs in erlang). Should I expect to r...
(1) odpowiedzi
2017-07-12 20:07 Variable not visible in if block »
(let ((x 21) (y 7)) (princ (/ x y)) (let z (/ x y) (if (eq z 3)(princ "Working")))) My intention for this program is to have "Workin...
(2) odpowiedzi
2017-07-12 11:07 Antik Iter unknown keyword matrix-element »
I'm using Antik, and consistently getting an error, "Unknown keyword MATRIX-ELEMENT": CL-USER> (defparameter m1 #m(1 2 3 grid:^ 0 6 8)) M1 CL-USER...
(1) odpowiedzi
2017-07-12 08:07 How to "cast" an instance to a subclass? »
I have an instance of class message I'll call "msg". I have defined a class "my-message" and would like instance "msg" to now be of that class. It so...
(2) odpowiedzi