Search found 538 matches
- Mon Jan 20, 2014 9:43 pm
- Forum: Common Lisp
- Topic: Writing an ASDF file for ACL2
- Replies: 2
- Views: 6250
Re: Writing an ASDF file for ACL2
Have you verified that the ACL2 authors would appreciate this change? You could ask the ASDF developers about the feasibility of porting this Makefile. Subscribe to the ASDF mailing list by sending an email to asdf-devel+subscribe at common-lisp.net. After subscribing, tell them what you are interes...
- Fri Jan 10, 2014 8:26 pm
- Forum: Common Lisp
- Topic: Iterating through a list repeatedly?
- Replies: 3
- Views: 7238
Re: Iterating through a list repeatedly?
It sounds like you are asking for something like (maplist (lambda (x) (included x lof-l)) list) or maybe with mapl or mapcon . Another useful pattern is to write an entry function that takes the primary arguments in a simple form and does some simple work before calling the recursive core. In your c...
- Fri Jan 10, 2014 8:07 pm
- Forum: Emacs
- Topic: Loading saved files (ok i'm a numpty)
- Replies: 3
- Views: 23441
Re: Loading saved files (ok i'm a numpty)
Hi Milky, The procedure you describe sounds right, but the results you describe are clearly wrong. The "q" to exit a restart prompt, and the REPL ",cd" to change directories are written on the Emacs side of Slime and should be portable across all CL implementations. 2011 is rathe...
- Thu Jan 02, 2014 1:30 pm
- Forum: Homework
- Topic: Hunchentoot loading error
- Replies: 3
- Views: 11121
Re: Hunchentoot loading error
Hi Damien, This looks like a possible CFFI problem on Win7. You appear to be running the latest CFFI. What version of SBCL are you using? You will probably get the best help by sending this problem report to the CFFI mailing list. To join the CFFI mailing list, send an email to cffi-devel+subscribe@...
- Thu Jan 02, 2014 1:21 pm
- Forum: Common Lisp
- Topic: "unbind" a socket...?
- Replies: 2
- Views: 6337
Re: "unbind" a socket...?
Welcome to the fun of network sockets. There are a few options for this. Keep the socket around for multiple connections (generally preferred), set SO_REUSEADDR, or close the socket after the connection. Regardless of your primary strategy, I almost always set SO_REUSEADDR so an abnormal exit doesn'...
- Thu Nov 07, 2013 8:57 pm
- Forum: Common Lisp
- Topic: Working on a computational geometry lib...
- Replies: 6
- Views: 11871
Re: Working on a computational geometry lib...
Some more links.
http://solvespace.com (Quite fun and powerful for its small size, roughly 30kloc. Alas, it does have limits and bugs.)
http://www.opencascade.org/
http://opensourceecology.org/wiki/CAD_tools
http://solvespace.com (Quite fun and powerful for its small size, roughly 30kloc. Alas, it does have limits and bugs.)
http://www.opencascade.org/
http://opensourceecology.org/wiki/CAD_tools
- Sun Oct 20, 2013 9:26 pm
- Forum: Common Lisp
- Topic: Illegal :UTF-8 character starting at position CFFI/LISP ?
- Replies: 3
- Views: 5766
Re: Illegal :UTF-8 character starting at position CFFI/LISP
It looks your lisp impl is trying to parse the image into a string of UTF-8 characters.
Inevitably, some pixel doesn't parse correctly...
Pixels should stay as an array of bytes.
I suspect this function is the problem: cffi:foreign-string-to-lisp
Inevitably, some pixel doesn't parse correctly...
Pixels should stay as an array of bytes.
I suspect this function is the problem: cffi:foreign-string-to-lisp
- Sat Oct 12, 2013 10:24 pm
- Forum: Homework
- Topic: Knight Project
- Replies: 6
- Views: 15886
Re: Knight Project
It sounds like you have a lot of reading and practice to do.
This might help you get started, though its a proper matrix, not a list of lists.
This might help you get started, though its a proper matrix, not a list of lists.
Code: Select all
(let ((board (make-array '(8 8))))
(dotimes (i 8)
(dotimes (j 8)
(setf (aref board i j) (+ (* 8 i) j))))
board)
- Fri Oct 11, 2013 10:32 am
- Forum: Common Lisp
- Topic: How do I approxmate C pointer dereferencing?
- Replies: 8
- Views: 11707
Re: How do I approxmate C pointer dereferencing?
In order for the "->" function to work, you would need to wrap the pointer in a structure that also contained the type. Something like the following untested code. (defstruct wrapped-pointer :pointer :type) (defun -> (wp field) "Get the specified field from the wrapped pointer." ...
- Thu Oct 10, 2013 9:10 pm
- Forum: Common Lisp
- Topic: Accessing struct members in CFFI
- Replies: 2
- Views: 4714
Re: Accessing struct members in CFFI
When dealing with foreign memory, you often have to use the full foreign API.
Is there a reason you are not wrapping "cvSet3D" and using that in CFFI?
Is there a reason you are not wrapping "cvSet3D" and using that in CFFI?