libera/#commonlisp - IRC Chatlog
Search
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.
1:01:34
nij-
Before that I'd like to try a dirty trick - modifying the serialized document directly with regex.
1:01:51
nij-
; Evaluation aborted on #<CL-PPCRE:PPCRE-SYNTAX-ERROR "Opening paren has no matching closing paren." {703AA4C5B3}>
2:24:30
jeosol
ober: thanks for your message. It's a corporate laptop I think brew install is disabled, it seems, from what they said.
2:25:31
jeosol
pjb: ok, so just like we do on a fresh linux, get an old binary, and then use that to build a more recent SBCL version
2:40:07
pjb
jeosol: right. You can also get a new binary, on the sbcl download page, there are recent binaries for the main OSes.
2:41:19
jeosol
pjb: thanks, that's my suggested so far, I'll see if I get their laptop I can do it for. I have done the old binary, then new sbcl on my fresh linux boxes in the past
2:42:28
jeosol
pjb: btw, I was commenting on your beautiful CL array code you shared other day - nice code, not sure you saw my comment. Learnt a thing or two from it.
3:21:44
cpli
okay, i could write a c wrapper which simply `malloc`s a pointer and returns it with ownership that i then wrap again in common lisp
3:23:00
cpli
but i would really want to do something akin to https://github.com/TeMPOraL/cl-sqlite/blob/master/sqlite.lisp#L91-L98 in https://git.sr.ht/~cpli/clayboard/tree/dev/item/src/evdev.lisp#L112