freenode/#lisp - IRC Chatlog
Search
14:05:29
Nilby
You're welcome, I've probably done too much with CFFI for my own good. The problems with with-pointer-to-vector-data is probably why it isn't mentioned in the manual.
14:16:46
Nilby
Lisp by itself is usually pretty safe, but With proper application of CFFI and other CL things I've managed to make Lisp crash itself, the window it's in, the window system, the OS, and even make the hardware overheat and break.
14:22:41
Nilby
It should usually convert automaticlly, but if it doesn't you can use cffi:translate-from-foreign
14:29:59
Josh_2
well the C function takes an argument of type uint32_t *, so I (foreign-alloc :uint32) as pass that, but it isn't being converted back to a nice integer
14:32:30
francogrex
heisig: ok I suppose it was more trial and error (because I haven't seen any sort of comprehensive manual) yet
14:43:39
Josh_2
Now I just have to figure out why when I encrypt "test" and then decrypt it i get "test ... " followed by a bunch of random characters like #\Return
14:47:10
Nilby
Josh_2: Maybe there's a uint8 zero before those which C thinks should stop you, but Lisp is like whatever.
19:03:01
dbotton
Is there a way to execute a command from asdf? So that so when someone does a quicklisp load of my project it runs a git command to git clone a JS component?
19:10:15
_death
dbotton: see https://www.common-lisp.net/project/asdf/asdf.html#The-object-model-of-ASDF
19:11:13
pfdietz
I see some LZW compression algorithms in QL, but is there one by itself intended for general use?
19:11:47
pfdietz
Xach: you wrote on in skippy, but it doesn't appear to be part of the exported interface of that system.
19:12:53
Alfr_
dbotton, could you declare a dependency on that component in the readme instead of trying to retrieve it on every load-system?
19:17:35
Xach
The simplest thing (on a certain axis) is to include all the things you need up front.
19:25:38
Xach
pfdietz: are you interested in a standalone library for lzw for something in particular?
19:32:17
dbotton
So maybe I just describe in demo how if the CDN version fails (or your country can't use) what to do
19:33:17
dbotton
I don't think I want to add into my git tree and don't really want it as a dependency
19:51:16
White_Flame
dbotton: btw, uoip is a part of asdf, so if you're loading via asdf, you shouldn't have to check if it's there
19:53:29
Xach
having uiop does not mean the things you may want to run will be present and run, though.
19:54:24
White_Flame
oh, I thought the implication was testing if uiop was present, might have misread
23:01:40
didi
People, people. Hear me: use `with-standard-io-syntax' when printing sexps to a file and save yourself from the pain.
1:26:15
nij
Reading let over lambda, which refers to assembly code every now and then. Any suggestion on getting started with the minimal amount of assembly, so i can enjoy LOL more? :-) thanks!
1:27:20
pfdietz
Xach: yes, a standalone library for LZW. The use case is compressive similarity of strings.
1:28:23
pfdietz
That is, you can estimate how similar two strings are by knowing how much compressing one helps you compress the other.