Data dodania Pytanie
2017-10-10 00:10 sbcl: muffle style-warning in defmacro »
In sbcl, I know I can muffle the anticipated messages when using both &optional and &key in defun, but that doesn't seem to work in defmacro. ...
(1) 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-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-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-19 08:09 SBCL returns handle-win32-exception »
I wanna call c++ function from SBCL using cffi. I tried to call the following very simple function. #include <stdio.h> void print1() { printf(...
(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-17 05:09 sbcl: encoding and decoding characters without actual I/O »
In sbcl, when encoding a string using, say, :utf-8, is there a way to encode it to a byte vector without doing actual I/O, similar to clisp's (EXT:CO...
(2) odpowiedzi
2017-09-14 17:09 accessing sbcl errno strings »
In sbcl I can handle errors as I do here when opening a nonexistent file: (require "SB-POSIX") (let* (fd) (handler-case (setf fd (sb-posix:...
(1) odpowiedzi
2017-09-09 15:09 I can (asdf:load-system :foo), but asdf still complains that '"foo" doesn't designate a package' »
Trying to finally start using asdf for my lisp doodles, I tried setting up a simple example. The files are ; contents of example.asd (asdf:defsystem ...
(1) odpowiedzi
2017-09-03 13:09 sbcl: list all valid character encodings »
To get the list of all valid encodings for sbcl, I do this: (let (encoding-list) (let (symbol-list) (do-external-symbols (s :keyword) (pu...
(1) odpowiedzi
2017-09-02 18:09 sbcl: end-of-line format specification »
In clisp, I can do something like this: (with-open-file (fred "fred-unix" :direction :output :if-exists :supersed...
(0) odpowiedzi
2017-08-31 19:08 SBCL timeouts can go past handler-case if there are signals in body »
It's an obvious pattern to put sb-ext:with-timeout into handler-case to perform some operation in case the code under the timeout timeouts. However, i...
(0) odpowiedzi
2017-08-27 00:08 Undefined variable in function declaration while it is clearly defined »
I'm working on a function that will let you measure the run-time of a passed function run-n-time. It's not close to finished, because while writing th...
(1) odpowiedzi
2017-08-26 15:08 Suppress style-warning on make-instance in sbcl »
I have two packages with a class defined in each. The second class inherits from the first but has a slot of the same name. The intention is indeed to...
(2) 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-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-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-02 12:07 How to update a dependency with quicklisp? »
I have updated quicklisp to the lates version CL-USER> (ql:update-all-dists) 1 dist to check. You already have the latest version of "...
(1) odpowiedzi
2017-06-25 00:06 Win10: ASDF can't load system (ASDF_OUTPUT_TRANSLATION error) »
Update 2 I think @faré is right, it's an output translation problem. So I declared the evironment variable ASDF_OUTPUT_TRANSLATIONS and set it to E...
(1) odpowiedzi
2017-06-17 15:06 Can't get AllegroServe / Ironclad to work »
(ql:quickload "aserve") fails I'm trying to install AllegroServe. According to http://quickdocs.org/portableaserve/ and to this SO thread the simples...
(1) odpowiedzi
2017-06-09 19:06 Inferior-Shell Live Print Output »
I'm using inferior-shell:run to launch a long-running task which can routinely fail (it's a build validation routine). My main issue is that I could ...
(1) odpowiedzi
2017-06-07 20:06 SBCL statistical profiler warns of undefined function »
SBCL 1.3.9 produces the following error when I attempt to run the statistical profiler. Is start-profiling not exported? * (in-package :cl-user) * (r...
(1) odpowiedzi
2017-06-05 21:06 modify plist inside list? »
I have a list of plists such as '((:atom Toddler :visited nil :on-clauses (0 1)) (:atom Child :visited nil :on-clauses 1)) how should I change ...
(2) odpowiedzi
2017-06-03 10:06 Using deftransform/defknown in SBCL internals to get the compiler to transform user authored functions »
At the end of section 6.5 in the current SBCL manual, we have the following quote: If your system's performance is suffering because of some const...
(1) odpowiedzi
2017-06-01 12:06 SBCL's statistical profiler suddenly stops working »
when I try to use the profiler everything goes well until I change the profiling options. It works when I do (sb-sprof:with-profiling (:report :flat ...
(0) odpowiedzi
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-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-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-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-06 10:04 SBCL common lisp, using pmap within a loop »
I've been recently dealing with a nested for loops in SBCL. I discovered, that operations, which can be reduced to map, can easily be made parallel us...
(1) odpowiedzi
2017-04-05 12:04 Splitting a string by whitespace in SBCL »
I've been trying to split a simple whitespace-delimited string into individual parts, for example: I have: "test 123 test2 test3" ...
(2) odpowiedzi
2017-04-05 10:04 Common lisp reading a gzipped stream line by line »
I am currently dealing with a problem, where I have to read a zipped file line by line, and further on process each line and do something with it. I ...
(1) odpowiedzi
2017-04-04 08:04 Lisp disabling ASDF warning »
I wrote my first SBCl Lisp program, which will be execute from the command line. I use the following command for execution: sbcl --noinform --noprint...
(0) odpowiedzi
2017-03-27 23:03 Where is the implementation of values-list in SBCL? »
I am trying to figure out the implementation of values-list function in SBCL. The source code at src/code/eval.lisp looks like pretty simple, but why ...
(1) odpowiedzi