[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About Guile crypto support
From: |
Ludovic Courtès |
Subject: |
Re: About Guile crypto support |
Date: |
Sat, 09 Feb 2013 16:12:08 +0100 |
User-agent: |
Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) |
Hi,
Daniel Hartwig <address@hidden> skribis:
> By the way, I very much like the conventions used in the GnuTLS
> bindings. The enums in particular make a lot of sense for a security
> library, with the extreme type safety they provide. I will pursue a
> similar approach.
Yeah, I think it’s helpful.
> One question. With the current state of FFI, do you think it matters
> much whether the bulk of the bindings are done in C or FFI?
I think it depends on the amount of public C structs, enums, inlines,
and constants, and how often they are changed. When there are too many
of them and they are subject to change, it might be easier to use C
(though that can be worked around from the FFI by calling the C
compiler, as in [0].)
My impression is that libgcrypt uses mostly opaque pointer types and has
a stable API, so the using FFI should be just fine.
An issue with the FFI is distros where .la and .so files are only
available in the -dev package, because then ‘dynamic-link’ won’t work
unless that -dev package is installed (as recently discussed on
guile-user.)
Thanks,
Ludo’.
[0] http://git.sv.gnu.org/cgit/libchop.git/tree/guile2/chop/internal.scm#n130
- Re: About Guile crypto support, (continued)
- Re: About Guile crypto support, Ludovic Courtès, 2013/02/04
- Re: About Guile crypto support, Nala Ginrut, 2013/02/04
- Re: About Guile crypto support, Ludovic Courtès, 2013/02/05
- Re: About Guile crypto support, Daniel Hartwig, 2013/02/05
- Re: About Guile crypto support, Daniel Hartwig, 2013/02/05
- Re: About Guile crypto support, Ludovic Courtès, 2013/02/08
- Re: About Guile crypto support, Daniel Hartwig, 2013/02/08
- Re: About Guile crypto support,
Ludovic Courtès <=
- Re: About Guile crypto support, Andy Wingo, 2013/02/09
- Re: About Guile crypto support, Mark H Weaver, 2013/02/09
- Re: About Guile crypto support, Noah Lavine, 2013/02/09
- Re: About Guile crypto support, Ludovic Courtès, 2013/02/09
- Re: About Guile crypto support, Andy Wingo, 2013/02/11
- Re: About Guile crypto support, Thien-Thi Nguyen, 2013/02/11
- Re: About Guile crypto support, Mike Gran, 2013/02/11
- Re: About Guile crypto support, Ludovic Courtès, 2013/02/11
- Re: About Guile crypto support, Nala Ginrut, 2013/02/11
- Re: About Guile crypto support, Greg Troxel, 2013/02/11