libera/#commonlisp - IRC Chatlog
Search
12:42:22
cpli
buffet, ElKowar and i are writing a cffi wrapper for libinput but this definition: https://0x0.st/H-ab.txt is causing us trouble, https://github.com/TeMPOraL/cl-sqlite/blob/master/sqlite.lisp#L91-L98 identically uses `cffi:with-foreign-object`... for me it currently bitshifts the evdev pointer by 12 to the right???
12:43:28
beach
bitblit1: contrapunctus has been working on Closos applications and you might want to check what has been accomplished and what is planned for in case you want to work on that.
12:45:51
jackdaniel
then you call alloc on (quote (:pointer (p-uinput)) -- again shadowing the binding p-uinput
12:46:50
cpli
jackdaniel: oh, yes we've been debugging this since yesterday, let me clean the definition up some more first
12:49:11
cpli
jackdaniel: evdev is a class with a slot `foreign-object` containing a cpointer to the libevdev cstruct
12:50:17
contrapunctus
bitblit1: the suggested projects are tracked here - https://codeberg.org/CLOSOS/projects/issues
12:57:43
contrapunctus
bitblit1: I'll have a look at it when I get home. I think it should be https://codeberg.org/contrapunctus/anathema
12:59:44
bitblit1
Oh that's perfect. However, the link in the [CLOSOS-PROJECTS](https://codeberg.org/CLOSOS/projects/) repo in codeberg is broken, and also the [CLIM-APP-BASE](https://codeberg.org/contrapunctus/clim-app-base)
16:01:29
pjb
cpli: well, it may be a C problem or a FFI problem. You could first write a C program to make sure you understand how to use the C library, and then reproduce it in lisp. That's how I did it when I worked with pkcs11 libraries.
21:23:37
jeosol
I wanted to ask for any one using Mac Book Pro, I normally only use Linux so installing sbcl (building from source) is what I normally follow. What is the procedure to install on a Mac Book Pro. I wanted to help someone install SBCL. I see MacOS(Darwin) on the download page, not sure. Thanks
21:48:17
pjb
jeosol: note: macports downloads an old (validated) version of sbcl, and compiles more recent sources with it.
0:01:07
cpli
i understand how to use the C library. in their code TeMPOraL does the same with an identical out-argument and using similar code does not work on any of our three laptops: https://github.com/TeMPOraL/cl-sqlite/blob/master/sqlite.lisp#L91-L98
0:21:02
nij-
While serializing my data to READably printably format, I need to hack #'print-object for vectors for the result to be more portable. Currently, wihtout any change sbcl prints vectors into #(a b c). However, that doesn't work for all lisp implementations. Instead, I want it to be printed as (vector a b c). However, my attempt makes the repl hangs.. as I think vectors printing is so fundamental for the repl.
0:22:43
hayley
I believe specialising a method for a generic function in the CL package, and on a class in the CL package like that is undefined behaviour.
0:32:44
yitzi
nij-: You could make a custom pprint-dispatch table that has a dispatch entry for vector and only bind it to *pprint-dispatch* when you need it.