cl-cookbook icon indicating copy to clipboard operation
cl-cookbook copied to clipboard

First Draft: Add FFI subsection on math.h

Open jgarte opened this issue 3 years ago • 2 comments

jgarte avatar Aug 21 '22 17:08 jgarte

note to self:

char says to

(coerce 12.34 'double-float) I would include that in the c-* functions

jgarte avatar Aug 22 '22 01:08 jgarte

Nice. First draft, so not ready to merge?

vindarel avatar Sep 01 '22 15:09 vindarel

@vindarel I pushed an update to remove the Guix specific instructions.

jgarte avatar Nov 20 '22 20:11 jgarte

Suggestions: show the function signature of C ceil, what it accepts as input and what it outputs, so when you show

(cffi:defcfun ("ceil" c-ceil) :double (number :double))

you can also explain that this is the input, this is the output and what is the overall syntax of defcfun.

vindarel avatar Nov 23 '22 12:11 vindarel

@vindarel @Bike

Thanks for the suggestions! They are much appreciated. Give me a few days (maybe sooner) and I'll push some more updates. I'm just busy at the moment finishing out work before Thanksgiving break :)

jgarte avatar Nov 23 '22 14:11 jgarte

hey @jgarte it would be really great to finish this.

vindarel avatar Nov 22 '23 00:11 vindarel