freenode/#lisp - IRC Chatlog
Search
2:46:19
loke
The defmethod macro itself calls ENSURE_GENERIC-FUNCTION... The defmethod macro expands into a call to INSTALL-METHOD with also calls ENSURE-GENERIC-FUNCTION.
2:58:57
drmeister
There may be - I've got problems much later - when methods are being defined and wiping out the specializer-profile slot that I added.
3:00:35
drmeister
I can't seem to find the point where the lambda-list is defined and the generic-function is initialized for the first time.
3:04:56
drmeister
The lambda-list doesn't appear to be defined in some cases - although I may have done something wrong.
5:00:51
lexicall
hi, I wonder is there an elegant way to call a method of super class? In order to do that I have to use CHANGE-CLASS but I think it's quite ugly.
5:20:18
jasom
I'm seeing 44MB uncompressed for a fairly simple image on x86_64, and I rememberd that number being higher...
5:51:40
scottj
iqubic: fwiw when it happened I think they said a 24 hour cooling off period so maybe message the op that banned you.
8:15:02
TMA
GF abbreviation is very context dependent... it means girlfriend outside of lisp related chat
8:36:58
JuanDaugherty
the Irish name Daugherty doesn't actually come from daughter, just sounds like it does
9:52:07
Posterdati
please, is there a way to trigget a call to the io-handler in the iolib multiplexer?
10:01:05
pjb
I don't see the relationship between "you do not need an echo server!" and "trigger a call to the io-handler".
10:02:20
Posterdati
pjb: because a I need a server capable to get some commands over a socket and then answer back
10:02:21
pjb
(iomux:set-io-handler eb socket :read (setf *saved-handler* (make-whatever-handler-you-want socket id etc))) (funcall *saved-handler* fd event exception)
10:02:43
pjb
Again, I don't know why you would want to do (funcall *saved-handler* fd event exception)
10:03:06
pjb
If there's no I/O why would you want to call it? If there is I/O then it's already called by iolib!
10:37:54
hajovonta
guys are you aware of a CL library that can do asynchronous ICMP echoes? I need to ping a host periodically and I couldn't find one. Is it a thing that is practically done via FFI?
10:45:38
fe[nl]ix
but you most likely don't want to do that because creating raw sockets requires basically root privileges
10:52:31
hajovonta
I'm just a little worried that different linux ping versions may print different output
10:52:41
fe[nl]ix
a more sophisticated approach would be to make a small C binary that creates a raw socket and sends it to the main process via a Unix socket
10:54:15
fe[nl]ix
iolib already has code for receiving file descriptors via a Unix socket, but you'd have to write the C to create and send the file descriptor
10:56:29
fe[nl]ix
hajovonta: the output of /bin/ping can vary between OSes but it should be pretty stable on the same OS
10:58:50
fe[nl]ix
on weird distros it could be a symlink to Busybox, but I doubt you care about those
10:59:31
fe[nl]ix
shrdlu68: sbcl re-executes itself on start and I don't think that setuid carries along
10:59:37
hajovonta
or maybe I can write a python lib that uses raw icmp and uses standardized output and just call that. ;)
11:05:44
shrdlu68
If the problem here is that one can't effectively use setuid with sbcl, there are other implementations that hopefully don't have this limitation.
13:17:23
francogrex
hi is it possible to reconnect to a running thread: debugger invoked on a SB-INT:SIMPLE-READER-PACKAGE-ERROR in thread #<THREAD "main thread" RUNNING {23EE7E89}> sbcl hangs and i would like to open another sbcl and "attach" it to that hanging running thread
14:15:41
hjudt
can anyone help me with cl-json? i want to generate json output like this: { headers: ["h1", "h2", "H3"], data: ["d1", "d2", "d3"] }. i have headers and data as lists. what do i need to do?
14:16:33
Bike
according to the manual, you can get a js object if you feed it an alist or a hash table.
14:18:17
hjudt
(cl-json:encode-json-to-string (list (cons 'headers '(h1 h2 h3)) (cons 'data '(d1 d2 d3)))) => "[[\"headers\",\"h1\",\"h2\",\"h3\"],[\"data\",\"d1\",\"d2\",\"d3\"]]"
14:21:35
scymtym
(json:encode-json-alist '(("headers" . ("h1" "h2")) ("data" . ("d1" "d1")))) should also work