libera/commonlisp - IRC Chatlog
Search
23:32:57
whereiseveryone
For anyone interested this Sunday, Demo: Live Loading Common Lisp Systems with Guix https://mail.gnu.org/archive/html/guix-devel/2023-03/msg00363.html
2:19:28
bitblit1
I wanted to clarify (as I forgot) if creating generic functions with arguments of a specific class is a good idea if you know you aren't going to subclass the original class. Basically, if organizing functions by class by making them a method is a good idea
2:20:12
bitblit1
<whereiseveryone> "For anyone interested this..." <- Woaaah thats super cool! I am thinking of switching to guix. Thanks a bunch.
2:28:12
edwlan[m]
bitblit: the typical rule for generic functions is that you should either define the function or at least one of the classes you’re specializing on
2:28:40
edwlan[m]
But there’s nothing wrong with defining your own generic function that only has methods for pre-existing classes
3:10:21
bitblit1
whereiseveryone: Will the meeting be recorded? If so, where would I be able to watch it later if I couldn't attend the meeting?
5:40:51
splittist
https://snipboard.io/mCKR6c.jpg On the right a simple pdf displayed with Adobe Acrobat Reader. On the left the same pdf rendered to a png with common lisp.
5:42:21
splittist
edwlan[m]: pdfreader (which exists only on my laptop for the moment) with a vecto output device.
5:46:45
splittist
edwlan[m]: up to a point. It turns out to be tricky. https://snipboard.io/NoH4Eh.jpg
5:47:29
edwlan[m]
I thought of writing a library to parse PDFs myself, but gave up when I looked at the spec
5:54:24
splittist
slightly more lispy, and you can see where I'm cutting corners for the moment: https://snipboard.io/bVATOa.jpg
5:56:23
edwlan[m]
It looks like you have some sort of protocol for handling the stream of pdf objects?
8:44:28
|3b|
is it possible in cffi to define extra names for a foreign struct type? (defctype new old) complains about needing (:struct old), and (:struct new) doesn't work in either case
9:00:19
|3b|
sounds easier to just generate a copy of struct with new name then, since i'm generating the original definition already :/