11:40:57beachSo, how exactly did you create this code? How did you start emacs, SLIME, and how did you create the buffer?
11:41:55ecmI opened the file as normal, I've added a slime-company hook for the file, I then started slime, loaded croatoan, compiled the file and did a C-M-q expecting to indent properly
14:23:52puchaczhi, to play with ecl (I am interested in android), I need to sudo apt get ecl first, to get any version, then compile the newest one and follow some tutorials?
14:24:14puchaczthe manual says ecl should be compiled with ecl
14:29:07spoeplauI'm trying to do (defctype foo :pointer) with several types '(foo bar baz), and I'm looking for a way to do something like (dolist (name '(foo bar baz)) (defctype name :pointer)). It doesn't quite work like this because "name" isn't evaluated, and the best I've been able to come up with so far is to define my own macro and then call it just once. Is there a better way?
14:34:51_deaththe macro is a way.. but if it's just that simple form it's overkill in my opinion
14:37:38spoeplau_death: I have some more complex cases too, that one was just to illustrate what I'm trying to do
14:37:48raltspoeplau: defctype is a macro I assume
14:38:18raltYou can macroexpand it to see if something else could be done
14:39:17spoeplauralt: yep, it's from cffi. I'll have a look...
14:39:51_deathspoeplau: you can define a META macro, something like (defmacro meta (form) (let ((generate (gensym))) `(macrolet ((,generate () ,form)) (,generate))))
14:42:47_deathsome years ago discussion here resulted in a METALIST operator as well, https://github.com/death/gnusdumps/blob/master/driver/main.lisp#L121
14:47:30_deathwith METALIST it would be (metalist (name) "Define a foreign pointer type alias for NAME." `(defctype ,name :pointer) ((foo) (bar) (baz)))
14:47:52ralt_death: I didn't realize you were the author of the dbus CL library
14:52:02_deathralt: I remember you had some pull requests.. nice to hear that it worked for you, I wrote it for a thing that became irrelevant t me a year or two later.. the publish part is still broken design
16:43:02flip214Is there a library that can translate a SVG to an CL-PDF form, like a macro? translating a SVG to a PDF via eg. inkscape is relatively costly (in CPU terms), so directly writing a PDF would be much better
16:44:28frodefIs there any kind ov SVG renderer in CL? Seems to me a substantial undertaking.
16:46:28flip214frodef: I can read a PDF in inkscape, and save as SVG. SVG is text-only and very similar to PS and PDF, so the typical 99% should be an easy AST => AST translation.
16:47:09flip214If I can get the SVG => CL-PDF transformation, I can "easily" get a PDF and write "compatible" data from CL.
16:48:37frodefflip214: To my knowledge, SVG is a substantial vector-graphics DOM, and "translating" to PDF I suspect is infeasible, beyond rendering to a raster image. Except perhaps a carefully selected subset of SVG.
16:49:21frodef(I could be wrong, but this is my understanding.)
16:50:55frodefIf you have Inkscape save a PDF into SVG, do you get a raster image, or actual SVG?