<beach>
"If :use is not supplied, it defaults to the same implementation-dependent value..."
MajorBiscuit has joined #commonlisp
cage has joined #commonlisp
skeemer has joined #commonlisp
<NotThatRPG>
ugh.
<NotThatRPG>
So *purposely* making your code implementation dependent. :-(
<beach>
What?
<beach>
(:USE) makes sure that there are no used packages.
<beach>
And that's the only way to do that.
<beach>
... in an implementation-independent way.
<NotThatRPG>
oh! I see. I misread the quote. I thought it was invoking the i-d behavior, but it's the opposite! <blush/>
masinter has joined #commonlisp
robin has joined #commonlisp
cage has quit [Quit: rcirc on GNU Emacs 28.2]
kenran has quit [Remote host closed the connection]
Cymew has quit [Ping timeout: 248 seconds]
NotThatRPG has quit [Remote host closed the connection]
random-jellyfish has joined #commonlisp
morganw has joined #commonlisp
NotThatRPG has joined #commonlisp
NotThatRPG has quit [Ping timeout: 248 seconds]
Lycurgus has joined #commonlisp
eddof13 has joined #commonlisp
<buffet>
next question: i'm wrapping a c library using cl-autowrap, and i got some `thing_new(thing **thing);` and i'm not sure how i'm supposed to get a `thing *` and how to get its address. any hints?
notzmv has quit [Ping timeout: 248 seconds]
<Bike>
that's going to depend on the library, no?
<Bike>
or do you mean that you want to pass thing_new a thing** from lisp?
<buffet>
to construct a thing from c i would write `thing *x; thing_new(&x);`
<buffet>
the question is how i wrap that nicely in cl
<Bike>
you'd do it in cffi with with-foreign-object
<Bike>
wrapping it nicely is a broader question of how you want your api to look, though, i suppose
kevingal has joined #commonlisp
<buffet>
autowrap seems to only use cffi-sys, and provide its own higher level api, which seems to lack some sort of with-foreign-object
<Bike>
i guess you could use with-foreign-pointer and %foreign-type-size in cffi-sys, but that sounds like not the usual way to go about it
<Bike>
i have never used autowrap, so i'm not totally sure what you're supposed to do here
<buffet>
hm i see
<buffet>
thanks!
<Bike>
sorry i cannot be more helpful
<buffet>
no worries
<pjb>
buffet: you need to read the documentation. thing** thing may mean several things. It could be a out thing* parameter, it could be a input vector or array of thing* parameter; it could be something else.
<buffet>
it's an out param
<buffet>
takes any uninitialized pointer, intializes it with a proper instance of thing
<pjb>
Then it's allocated by the function. Yes.
<buffet>
yes, but how do i pass in a thing **
azimut has quit [Ping timeout: 255 seconds]
<pjb>
buffet: IIRC, that would be something like: (with-foreign-object (mything :pointer) (thing_new mything) (mem-ref mything :pointer))
<buffet>
hm alright
<buffet>
i'll just go with regular cffi maybe come back to this later
<buffet>
thanks!
X-Scale has joined #commonlisp
dcb has joined #commonlisp
X-Scale has quit [Client Quit]
MajorBiscuit has quit [Quit: WeeChat 3.6]
X-Scale has joined #commonlisp
karlosz has quit [Quit: karlosz]
random-jellyfish has quit [Quit: Client closed]
Lycurgus has quit [Quit: Exeunt: personae.ai-integration.biz]
tyson2 has quit [Remote host closed the connection]
tane has joined #commonlisp
tane has joined #commonlisp
tane has quit [Changing host]
masinter has quit [Ping timeout: 248 seconds]
minion has quit [Remote host closed the connection]
specbot has quit [Write error: Broken pipe]
specbot has joined #commonlisp
minion has joined #commonlisp
rgherdt has quit [Remote host closed the connection]
rgherdt_ has joined #commonlisp
kevingal has quit [Ping timeout: 265 seconds]
rogersm has joined #commonlisp
igemnace has quit [Remote host closed the connection]
X-Scale has quit [Quit: Client closed]
tyson2 has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
masinter has joined #commonlisp
attila_lendvai_ has joined #commonlisp
notzmv has joined #commonlisp
attila_lendvai has quit [Ping timeout: 248 seconds]
NotThatRPG has joined #commonlisp
waleee has joined #commonlisp
agm has joined #commonlisp
waleee has quit [Ping timeout: 260 seconds]
waleee has joined #commonlisp
<agm>
hello everyone. you may be interested in a common lisp interpreter that i'm writing. it's written in c89 and i'm making good progress. it's called alisp and it's hosted at https://savannah.nongnu.org/projects/alisp
<ixelp>
A lisp implementation - Summary [Savannah]
NotThatRPG_ has joined #commonlisp
NotThatRPG has quit [Ping timeout: 255 seconds]
agm has quit [Ping timeout: 276 seconds]
easye has quit [Remote host closed the connection]
avocadoist has quit [Quit: Konversation terminated!]
avocadoist has joined #commonlisp
<an_origamian[m]>
What features does it have that others don't? Just C89 for now?
<NotThatRPG>
I thought I remembered that FiveAM had expected failures. Am I misremembering?
<tane>
NotThatRPG, expected signal?
<NotThatRPG>
tane: No, just a test that I know will fail (because it's a test that replicates a known bug)
<NotThatRPG>
This is pretty normal in a testing system; I somehow thought that FiveAM had it.
avocadoist has quit [Quit: Konversation terminated!]
avocadoist has joined #commonlisp
<NotThatRPG>
s/pretty normal/essential/ !
<agm>
an_origamian[m]: well, i try to make it as clean and well designed as possible. also, i plan to add native compilation for x86_64 in the future. i think having a variety of free implementations is a good thing
<Catie>
agm: Just out of personal curiosity, why did you choose C89 over a newer revision of the standard?
agm has quit [Ping timeout: 276 seconds]
tibfulv has quit [Remote host closed the connection]
tibfulv has joined #commonlisp
agm has joined #commonlisp
jeosol has joined #commonlisp
<jeosol>
Good morning all!
attila_lendvai_ has quit [Ping timeout: 268 seconds]
<agm>
Catie: with C89 I have top portability, plus i like it best
jeosol has quit [Client Quit]
<Catie>
Makes sense!
LW has quit [Quit: WeeChat 3.6]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agm has quit [Ping timeout: 255 seconds]
morganw has quit [Remote host closed the connection]
skeemer__ has joined #commonlisp
skeemer has quit [Ping timeout: 255 seconds]
tane has quit [Quit: Leaving]
pve has quit [Quit: leaving]
rgherdt_ has quit [Remote host closed the connection]