freenode/#lisp - IRC Chatlog
Search
11:53:13
leo_song
as vector and array is harder to use, what is the common way to write a deftype which means a list can only consisted with a certain type of elements? use satisfies?
13:13:16
beach
leo_song: Jim Newton and Didier Verna created some abstractions on top of that though. They call it "regular type expressions".
14:17:28
leo_song
beach: thanks. I was thinking that there would be something like the the array's (array type), so the compilers can have the information to optimise.
14:37:24
beach
leo_song: The array types are determined by the fact that arrays are specialized. A specialized array can hold only objects of a particular type because of the very way the array is represented in memory. But CONS cells can not be specialized that way, so there is no way to guarantee that such a type constraint will remain true.
18:11:27
nij
How to make nickname for a function? (defun f () ()) (setf g #'f) doesn't do what I want, in that (g) returns error.
18:21:09
Alfr
nij, there's also (setf (fdefinition ..) ..); fdefinition also accepts function-names, e.g. (setf frob), which symbol-function does not.
18:22:11
Alfr
nij, also make sure that what you assign really is a function (not a special operator or macro).
19:03:51
lukego
Hey can anyone recommend (or not) an OpenCV binding for Lisp? (Can the ones on Github dates ~2013 be usable or is that hopelessly old in OpenCV terms?)
19:05:02
lukego
Or alternatively, can someone suggest a practical mostly-automated way to extract a set of polygons from a photo? e.g. if you'd take a photo of a keyboard and detect the shape and location of each key
22:09:07
Josh_2
Hey, a foreign function I'm trying to call expects a pointer to a 'const unsigned char ' what encoding type is that? utf-8 doesn't seem to be working properly so I'm not sure if I have the encoding correct