freenode/#lisp - IRC Chatlog
Search
17:07:44
makomo
stuff like querying the plist (:hello (:there 123 :world 456)) with a "nested indicator" '(:hello :world), or merging the nested plist with another nested plist, adding a key if it doesn't exist (recursively, just like mkdir -p creates directories), etc. etc.
17:08:17
makomo
seems like quite useful functionality for macros that have non-trivial syntax based on nested plists
18:11:39
pjb
Actually, sbcl compiler is one of the fastest CL compiler there is, since it's compiled using sbcl compiler itself, which produces one of the fastest CL native code.
18:33:30
oni-on-ion
this is all i can find about it, but does not say much about the compiler itself: http://www.ffconsultancy.com/languages/ray_tracer/conclusions.html -- in my experience sbcl, gcc, ocaml are equally awesome
19:31:06
asdf_asdf_asdf
Hi. How define body of routine? After defined routine I must defined body this routine? How it do? Thanks.
19:32:22
Xach
asdf_asdf_asdf: there is no body. it is declaring an interface to an existing foreign function, so it is for specifying the arguments and return type.
19:36:06
Xach
asdf_asdf_asdf: scratch that - no matter what the answer is, i cannot help - but maybe someone else can.
20:11:15
aeth
asdf_asdf_asdf: Usually you want to find a JSON version of the API that you can parse rather than doing it manually yourself... afaik.
20:11:56
aeth
If it's a common "I have to interface with this" library, then JSON (or XML) versions exist for exactly this purpose, sometimes officially.
20:14:32
borodust
claw is quite beta yet and only docs is me (apart from ones that can be borrowed from cl-autowrap)
20:16:35
borodust
if structs-by-value are not tossed around by the api in question, that should be a piece of a cake
20:17:27
borodust
lemme know what header you need a wrapper for and i can arrange it in 15 min or smth
20:17:33
aeth
Bike: In case I was unclear, I don't mean the API is literally XML or JSON, I mean an API is often described in XML or JOSN, e.g. for Vulkan. https://github.com/KhronosGroup/Vulkan-Docs/blob/1.0/src/spec/vk.xml
20:20:30
aeth
It would be incredibly amusing (and not *entirely* surprising, since Microsoft has tried like 20 different APIs) if you could interact with Windows directly via XML.
20:28:59
defunkydrummer
minion: memo to asdf_asdf_asdf: there are already Win32 API bindings out there, see https://github.com/Zulu-Inuoe/win32 for an example.
20:31:30
defunkydrummer
minion: memo to asdf_asdf_asdf: also this guy has several bindings to various Win32 APIs: https://github.com/fjames86
0:38:02
eschulte
does anyone know of a way to write bytes to a process in CCL? The following doesn't work (although the SBCL analog works fine) http://sprunge.us/3eQrKO
0:38:53
eschulte
this would be handy to allow for using cl-store to compress stored objects through xz on their way to disk (and then restore them back from the output stream of an xzcat process)
0:44:35
mfiano
does this help? https://gist.github.com/mfiano/8d21591372abbb63e93abc994f1a52dc You can then use `alexandria:copy-stream` for another input layer which looks like it buffers 4k
0:49:22
eschulte
I think I'm missing something, I'm trying to write bytes to STDIN but the function you posted takes STDIN from a string
0:49:46
eschulte
do you mean create a CCL process and then use copy-stream to create a buffered copy of the :input stream?
0:55:05
aeth
uiop:launch-program is the better version in UIOP... a bit harder to get started with, though
0:59:58
eschulte
aeth: thanks! I can at least write-bytes to the input stream of a process started that way.
1:16:36
eschulte
Yeah, launch-program works well. The only downside being that (as opposed to SBCL) I have to decide when creating the process if I want to write characters or bytes