freenode/#lisp - IRC Chatlog
Search
16:01:10
mister_m
Hello again - can i use DESTRUCTURING-BIND to extract the car, and cdr / "rest" of a list? I'm a little confused about how destructuring lambda lists work.
16:03:23
mister_m
I didn't know you could just do dot notation there, awesome. Does the "rest" of the list when destructuring this way give a proper list?
16:05:55
beach
So (multiple-value-bind (car . cdr) '(a b c . d) ...) will give A as the value of CAR and (B C . D) as the value of CDR, so CDR is not proper.
16:09:30
DaisyChristieeee
Whats wrong with it ? https://bit.ly/38yoZCp Could you please help me to debug it..
16:13:45
DaisyChristieeee
Whats wrong with it ? https://bit.ly/38yoZCp Could you please help me to debug it..
16:27:09
seok
with dexador, if I do (dex:get ..) with keep-alive to true every time, does the connection remain open?
16:45:37
_death
seok: it has a connection pool.. note that keep-alive is true by default.. if you have many requests to many servers, you'll run out of file descriptors unless you clear the connection pool every now and then :/
16:50:54
seok
apparently ArangoDB's http api supports keep alive, so I figured it would be right to use it
19:48:25
LdBeth
However, trust me you won’t like an interactive shell without command/path completion
19:54:06
jackdaniel
there is a shelisp program written in CL which allows you to mix the repl and the shell (like bash) with a special reader macros
19:56:30
LdBeth
I hope they could provide features like Do What I Mean or command abbreviation to make it useable
22:08:18
asdf_asdf_asdf
Hi. How check type of function? (defun hello (a b) (+ a b)) (typep #'hello '(function (fixnum fixnum))
22:13:19
no-defun-allowed
You can only really test (typep #'hello 'function) which is a given if it's in the function namespace.
22:13:55
phoe
> An error of type error is signaled if type-specifier is values, or a type specifier list whose first element is either function or values.
22:13:56
pnp
Hi all, which is the command to indent the whole buffer in Emacs? ... M-x mark-whole-buffer and M-x indent-region does not works
22:14:03
White_Flame
also, there's (and (symbolp obj) (fboundp obj)) if you want to check for funcallable symbols
22:21:59
no-defun-allowed
(defstruct asdf\'s-structure (function-goes-here (error "please provide a function") :type function))
22:23:20
LdBeth
Since it is a function object, the defstruct would only allocate a reference to the function
22:30:32
White_Flame
if I understand this correctly, 1) you can with implementation internals, and since that's the case, 2) are you sure you need that info?
22:31:37
phoe
judging by what you say you must do in order to keep on writing lisp, you are likely doing something horribly wrong now
22:31:57
White_Flame
also, if this is a FFI question and not a plain function question, you need to be a lot more specific
22:32:18
no-defun-allowed
asdf_asdf_asdf: Can you do me a favour and avoid the FFI, and more so SBCL's FFI and its internals, until you learn Common Lisp please?
22:48:59
cl-arthur
How to check the metaclass of an object? And how to check whether an object is an instance or a class object?