Search
Friday, 18th of January 2019, 19:40:29 UTC
19:40:49
sjl_
https://common-lisp.net/project/cffi/manual/cffi-manual.html#Design-Philosophy
19:41:10
sjl_
> Pointers do not carry around type information. Instead, type information is supplied when pointers are dereferenced.
19:41:12
sjl_
> A type safe pointer interface can be developed on top of an untyped one. It is difficult to do the opposite.
19:43:47
shka_
anamorphic: i like your code
19:46:34
LiamH
cffi-libffi, which allows for struct by value call/return, required the type of the struct be specified in order to do the conversion. As a convenience, the ability to specify the type of pointer was added to facilitate similar conversion for call-by-reference, though I don't think that is implemented.
20:04:37
karlosz
is there a quick way in cl to interpret an unsigned 32 as a signed 32?
20:05:17
karlosz
so like f(2^32 - 1) = -1
20:05:21
sjl_
no, you have to write the conversion function
20:06:04
sjl_
e.g. https://github.com/sjl/fern/blob/master/src/utils.lisp#L21-L30
20:07:06
phoe
I just thought of the most sick way possible
20:07:30
phoe
karlosz: get yourself a fresh int pointer, write a uint32 to it, read a sint32 from it
23:25:21
Lord_of_Life_
** NICK Lord_of_Life
4:35:38
beach
Good morning everyone!
4:36:32
beach
p_l: Did they move you to a different time zone again?
4:36:45
p_l
no, illness is making me wake up ~0400
4:36:52
beach
Oh, sorry to hear that.
4:37:37
p_l
ACTION is currently on job-hunting spree, which is definitely complicated by being ill
4:38:18
beach
Did you quite your old job already?
4:38:51
p_l
beach: didn't work out between us :|
4:39:56
p_l
and some of the issues might have came from sleep apnea, something I'm going to have tested
4:40:32
beach
Oh, yes, so! My (admittedly small) family has those, and got a machine for breathing at night.
4:42:48
p_l
it's definitely better explanation than "unexplained narcolepsy" :)
4:42:57
beach
But I don't see how apnea could impact the relation with your employer.
4:43:20
p_l
beach: lack of good sleep impacting performance/readiness/etc.
4:43:36
p_l
while not as much of a problem in that specific job, it was definitely a pattern over last year
Saturday, 19th of January 2019, 7:40:29 UTC