freenode/#lisp - IRC Chatlog
Search
1:55:40
Xach
it seems like a real challenge to implement, so i look forward to any interesting implementation ideas you may have
9:51:28
ralt
_death: I've started playing with adding support for FD passing in dbus, do you think the way to do this is acceptable? It's not finished yet, but the rough idea should be pretty clear https://github.com/ralt/dbus/commit/bf1ff352042b317595ee03f61cb57af072e9d11e
9:56:43
ralt
what's essentially left is cleaning up and editing `(define-dbus-type :unix-fd)` to have an unpacker that uses this function
13:38:36
_death
ralt: it looks acceptable, but perhaps there should be a new defgeneric for the connection protocol, receive-file-descriptors, and the method should be in transport-unix.lisp.. the C function's name should be qualified by a dbus library-specific name, like dbus_lisp_receive_fds.. this post https://blog.cloudflare.com/know-your-scm_rights/ seems to put the buffer into a union to ensure alignment
13:46:55
ikrabbe
Good morning: I'm searching for a little example for specifying types: (let's assume I want to define a type workspace, that is a list containing a name, a list of files and an address of a machine, which again is a list, not speicified yet.
13:47:36
ikrabbe
So how do I write (deftype workspace (list string (list pathnames*) (list)))? in a correct way?
13:52:53
jdz
Lists in Common List consist of CONS cells. Fields of CONS cells can be specified, but the n you have to also specify exact number of cells.
13:53:42
ikrabbe
jdz: that is no problem, to specify the number of cells, so cons might be my friend, and yes :CL
13:53:54
jdz
ikrabbe: You might also consider using a class (or structure) for your top-level container (instead of a list).