freenode/#lisp - IRC Chatlog
Search
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?
4:19:52
ealfonso
is there a recommended websockets client library? I tried websocket-driver, which works for ws, but for wss fails with this error: "error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version". Could this be a "websocket-driver" issue or a cl+ssl one?
4:27:32
no-defun-allowed
There is only one websocket client to my knowledge (though I had planned to write one a long time ago).
4:28:44
no-defun-allowed
I think that means that the client and server can't negotiate a SSL/TLS version.
4:30:24
no-defun-allowed
Some people (using other languages, but still using SSL) suggest you could update your version of the OpenSSL library.
4:35:52
ealfonso
the thing is that I don't know which one is the problematic version. I've tried other non-CL ws libraries on my system (e.g. python, etc) and they work. My openssl version is "OpenSSL 1.1.1d 10 Sep 2019", which seems recent.
4:37:14
no-defun-allowed
Right. Maybe you need to give it a larger set of protocols it is allowed to use. I forgot how you configure that though; it's quite awful in my opinion.
4:40:22
ealfonso
there's also someone using plain usocket for websocket: https://stackoverflow.com/questions/25608424/websocket-client-in-common-lisp-with-usocket-library but that probably doesn't help me with wss either. I could probably just fall-back to a command-line client
5:45:09
ahungry
neat, what is #v syntax? Something like *1 and *2 in clojure/cider? (a reference to the last evaluated thing?)
7:20:12
pjb
Josh_2: since this slime features allows you already to refer to any previous result, they must have REPLACED it by #v?