istewart has quit [Read error: Connection reset by peer]
les_ is now known as les
istewart has joined #commonlisp
shawnw_ is now known as shawnw
bpanthi977 has joined #commonlisp
bpanthi977 has quit [Ping timeout: 256 seconds]
bpanthi977 has joined #commonlisp
spdegabrielle has quit [Quit: Connection closed for inactivity]
Pixel_Outlaw has joined #commonlisp
BurntWater has joined #commonlisp
jonatack has quit [Ping timeout: 248 seconds]
samedi has joined #commonlisp
dutchie has quit [Remote host closed the connection]
dutchie has joined #commonlisp
mwnaylor has quit [Ping timeout: 256 seconds]
mwnaylor has joined #commonlisp
samedi has quit [Remote host closed the connection]
mwnaylor has quit [Ping timeout: 256 seconds]
weeks has joined #commonlisp
kchanqvq22 has joined #commonlisp
mwnaylor has joined #commonlisp
kchanqvq61 has quit [Ping timeout: 250 seconds]
admich1 has joined #commonlisp
kchanqvq37 has joined #commonlisp
kchanqvq22 has quit [Ping timeout: 250 seconds]
gorignak has quit [Quit: quit]
kchanqvq79 has joined #commonlisp
admich1 has quit [Read error: Connection reset by peer]
kchanqvq37 has quit [Ping timeout: 250 seconds]
kchanqvq54 has joined #commonlisp
kchanqvq34 has joined #commonlisp
kchanqvq79 has quit [Ping timeout: 250 seconds]
kchanqvq64 has joined #commonlisp
kchanqvq54 has quit [Ping timeout: 250 seconds]
kchanqvq34 has quit [Ping timeout: 250 seconds]
edgar-rft` has joined #commonlisp
edgar-rft has quit [Ping timeout: 265 seconds]
kchanqvq90 has joined #commonlisp
younder has quit [Ping timeout: 265 seconds]
kchanqvq64 has quit [Ping timeout: 250 seconds]
admich1 has joined #commonlisp
mwnaylor has quit [Read error: Connection reset by peer]
mwnaylor has joined #commonlisp
corvvs has quit [Ping timeout: 250 seconds]
kchanqvq46 has joined #commonlisp
decweb has quit [Quit: Konversation terminated!]
corvvs has joined #commonlisp
decweb has joined #commonlisp
kchanqvq79 has joined #commonlisp
kchanqvq90 has quit [Ping timeout: 250 seconds]
kchanqvq59 has joined #commonlisp
Oladon has quit [Quit: Leaving.]
kchanqvq46 has quit [Ping timeout: 250 seconds]
kchanqvq79 has quit [Ping timeout: 250 seconds]
pve has joined #commonlisp
chomwitt has joined #commonlisp
weeks has quit [Remote host closed the connection]
mwnaylor` has joined #commonlisp
mwnaylor has quit [Ping timeout: 256 seconds]
Pixel_Outlaw has quit [Quit: Leaving]
bpanthi977 has quit [Ping timeout: 256 seconds]
apac has quit [Ping timeout: 252 seconds]
veqq has quit [Remote host closed the connection]
kchanqvq59 has quit [Quit: Client closed]
kchanqvq59 has joined #commonlisp
veqq has joined #commonlisp
istewart has quit [Quit: Konversation terminated!]
veqq has quit [Quit: veqq]
veqq has joined #commonlisp
dra has joined #commonlisp
bpanthi977 has joined #commonlisp
mwnaylor` has quit [Ping timeout: 256 seconds]
bpanthi977 has quit [Ping timeout: 256 seconds]
mwnaylor` has joined #commonlisp
King_julian has quit [Ping timeout: 256 seconds]
varjag has joined #commonlisp
equwal has joined #commonlisp
admich1 has quit [Remote host closed the connection]
admich1 has joined #commonlisp
mwnaylor` has quit [Ping timeout: 256 seconds]
mwnaylor` has joined #commonlisp
equwal has quit [Ping timeout: 256 seconds]
corvvs has quit [Ping timeout: 248 seconds]
corvvs has joined #commonlisp
rgherdt has joined #commonlisp
mwnaylor` has quit [Ping timeout: 256 seconds]
mwnaylor` has joined #commonlisp
shka has quit [Quit: Konversation terminated!]
shka has joined #commonlisp
bpanthi977 has joined #commonlisp
vidak has joined #commonlisp
shka has quit [Quit: Konversation terminated!]
shka has joined #commonlisp
decweb has quit [Quit: Konversation terminated!]
decweb has joined #commonlisp
bpanthi977 has quit [Ping timeout: 256 seconds]
mwnaylor` has quit [Ping timeout: 256 seconds]
vidak has quit [Client Quit]
mwnaylor` has joined #commonlisp
mwnaylor` has quit [Ping timeout: 256 seconds]
X-Scale has quit [Ping timeout: 248 seconds]
mwnaylor` has joined #commonlisp
corvvs has quit [Ping timeout: 256 seconds]
apac has joined #commonlisp
mwnaylor` has quit [Ping timeout: 256 seconds]
mwnaylor` has joined #commonlisp
apa_c has joined #commonlisp
apac has quit [Ping timeout: 265 seconds]
admich1 has quit [Ping timeout: 258 seconds]
mwnaylor` has quit [Ping timeout: 256 seconds]
mwnaylor` has joined #commonlisp
kchanqvq59 has quit [Ping timeout: 250 seconds]
random-nick has joined #commonlisp
bpanthi977 has joined #commonlisp
kchanqvq59 has joined #commonlisp
admich1 has joined #commonlisp
bpanthi977 has quit [Ping timeout: 256 seconds]
kchanqvq59 has quit [Ping timeout: 250 seconds]
shawnw has quit [Ping timeout: 248 seconds]
shawnw has joined #commonlisp
LainIwakura has joined #commonlisp
apac has joined #commonlisp
decweb has quit [Quit: Konversation terminated!]
decweb has joined #commonlisp
apa_c has quit [Ping timeout: 265 seconds]
<pl>
jackdaniel: btw, do you know of any code that dynamically exposes a C-callable function from ECL *as a dynamic symbol*, but not in "embedded" code? As in, I want normal ECL startup and load few shared libraries with FFI, but they depend on resolving few dynamic symbols in the binary that loads them
<jackdaniel>
I don't understand the question
<jackdaniel>
maybe you want CFFI?
<jackdaniel>
ECL implements UFFI, and CFFI works from there
<jackdaniel>
that is CFFI is implemented on top of ECL's UFFI
kchanqvq59 has joined #commonlisp
LainIwakura has quit [Ping timeout: 250 seconds]
<jackdaniel>
or do you want a callback to call it from C?
<jackdaniel>
verify the resulting fasl source with (compile-file "/tmp/foobar.lisp" :c-file "/tmp/cfoobar.c")
<jackdaniel>
that will also work with defcallback, but that's under assumption that you compile the file with C compiler
<jackdaniel>
(if you bytecompile it, then the callback is created by means of using libffi)
<pl>
thanks. I do have options to use embedding approach in worst case, but it would reduce ability to use SLIME et al as nicely
<pl>
I am trying to wrap a C library that is written more as framework wrapping few user-provided functions in something that can expose it as HTTP JSON API, and that aspect would be nicer if I can run SLIME :)
<pl>
(also LDB/DPB beats C for bit fiddling)
LainIwakura has joined #commonlisp
<jackdaniel>
or won't. it won't work with defcallback :)
<jackdaniel>
so the only option you have is to export a normal function name and call it per ecl conventions (that is the prototype is cl_object fun(int narg, cl_object arg1, ...)
<pl>
hmm, I guess I can build a minimal shared library of sorts that does some extra wrapping
<pl>
ultimately what I need is to move between the C world and CL world a 210 byte blob to be bit fiddled with
treflip has joined #commonlisp
olivial has quit [Ping timeout: 265 seconds]
olivial has joined #commonlisp
<TMA>
bit fiddling with ldb/dpb and friends is not enough?
<jackdaniel>
technically making callbacks respect exported fname would be easy
<TMA>
oh, the other way around
<pl>
TMA: I have a 210 byte blob which technically 105 16bit "registers" some of which are concatenated into larger values and some are bitfields
<pl>
so like at some point there's a 5 register (10 byte) block containing weirdly-encoded "job number", and in a different 16bit register I have 10 different signals represented by single bits
<jackdaniel>
because defcallback defines in fact two functions: lisp function and a trampoline with a C-friendly signature
<jackdaniel>
the declaration is usually used to name global lisp functions in c world, so it should be used for the former
mwnaylor` has quit [Ping timeout: 256 seconds]
mwnaylor` has joined #commonlisp
<jackdaniel>
a better way to do it would be to allow for the third argument as the callback name -- right now it is (lisp-name &optional call-convention) -- to (lisp-name &optional call-convention c-name) ;; the name may be of coure an atom too
<jackdaniel>
if you feel that it is important then please fill the ticket, then when I have some time I'll think more about it
<jackdaniel>
and if not, then carry on
divlamir has quit [Remote host closed the connection]
divlamir has joined #commonlisp
<pl>
this is urgent enough I might "cheat" by making an extra shared object in C that has a function to set function pointers from CL side
kchanqvq59 has quit [Ping timeout: 250 seconds]
<pl>
might make it easier to set it so that ECL for deployment, SBCL for development, cause I might need to use that library/framework in the future for other weirder tools :V
<pl>
that said, pretty much everything on cheap raspi is faster than PLC
<pl>
but hopefully this will mean I will finally get CL into this project area, yay!
Lord_of_Life_ has joined #commonlisp
yitzi has joined #commonlisp
donleo has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 256 seconds]
Lord_of_Life_ is now known as Lord_of_Life
tasty_ has quit [Read error: Connection reset by peer]