freenode/#lisp - IRC Chatlog
Search
17:21:46
contrapunctus
scymtym: that's true...but in this case, I really don't know what's going on or what's the right way to make a parser emit CommonDoc IR. I guessed there might be something like a "plist-to-commondoc" procedure, but didn't find anything like that either.
17:22:36
contrapunctus
Which leaves the 'use constructors' path, and the unresolved mystery of why Scriba emits those plists.
19:53:08
AeroNotix
I'm struggling to find docs on how to use .a files with cffi. Can someone point me to the right place, please?
19:58:31
mseddon
AeroNotix: Letting people know which operating system you are running under will help here.
21:52:11
phoe
AeroNotix: I don't know if you can use these; CFFI is capable of linking against shared libraries only, not static ones
21:52:22
phoe
so stuff like https://stackoverflow.com/questions/655163/convert-a-static-library-to-a-shared-library would be the proper thingâ„¢ to do
21:53:31
AeroNotix
Well, I was kinda hoping you could link in the static library through some tool which would wrap it all, very hand-wavey but wondered if possible
21:53:51
AeroNotix
sounds like not, so I will work on getting a dynamic library from this static one instead then
21:54:29
AeroNotix
well yeah but then I'd have to write a bunch of stuff,.. I was kinda hoping there'd be a tool that existed already which handled this for CL
21:56:19
phoe
https://stackoverflow.com/questions/2649735/how-to-link-static-library-into-dynamic-library-in-gcc
21:56:56
AeroNotix
phoe: not sure if you've actually ran those steps and are just googling :) Not to be rude but I have been looking around since I asked as well :)
21:57:38
AeroNotix
The library is a bit wonky, there's quite a few libraries it depends on linking with too, it's not just a quick gcc invocation away. Which is why I kept asking about potential other avenues
21:57:58
AeroNotix
But I will continue down the path of getting a shared lib for it, since that's the only one which appears to be available
21:58:21
phoe
in particular I think that some debian package only provided an .a version of some library and not a .so
22:05:38
Bike
as far as i know implementations use dlopen etc under the hood, which isn't going to work with a static library
22:05:55
AeroNotix
yeah that makes sense how it would use a shared library as that's pretty much the only way
22:06:17
AeroNotix
but I was kinda asking/hoping if there was some interesting project which could take a static library, wrap it, and present it as a shared library
22:06:42
AeroNotix
you _can_ convert most stuff with just gcc, but this lib seems to be pretty finicky
22:07:45
Bike
you'd basically have to turn non relocatable code into relocatable code, right? seems uh... difficult
22:11:16
AeroNotix
the whole reason I am using CL for this is (apart from it obviously being better). Is the library I am wrapping uses a tonne of callbacks, most other languages are such a pain when the C lib uses callbacks heavily.
1:38:57
AeroNotix
I am sure at some point I used swig to do cffi bindings, must be before they removed it
1:40:40
AeroNotix
Verrazano looks well complicated for what's needed, maybe just finding crap examples of how to use it
1:43:33
no-defun-allowed
CFFI has a "groveller" which sounds useful, but I haven't had to generate FFI bindings before.