From: Mike Gran <spk121@yahoo.com>
To: Matt Wette <matt.wette@gmail.com>
Cc: guile-user@gnu.org
Subject: Re: Matrix or array operations library
Date: Thu, 27 Dec 2018 06:38:45 -0800 [thread overview]
Message-ID: <20181227143844.GA21970@joshua.dnsalias.com> (raw)
In-Reply-To: <f4651550-93a1-38e1-c22b-323914038a0b@gmail.com>
On Thu, Dec 27, 2018 at 06:20:10AM -0800, Matt Wette wrote:
> > (Q1) Can you explain what the advantage of the method you linked to is,
> > in comparison to doing something like
> > https://www.gnu.org/software/guile/manual/html_node/Dynamic-FFI.html ?
>
> The advantage of the FFI Helper is time. It takes minutes to generate
> a ffi-module and seconds to compile to Guile Scheme. It takes
> significantly more time to code by hand. While coding by hand gets you
> something that is probably more palatable, using the FH can cover more
> ground.
As someone who has spent a lot of time coding bindings by hand, I can
suggest that one should always start with a tool like ffi-helper or
SWIG and then patch over any rough spots in scheme. Unfortunately, some
C libraries are very uncooperative and do require C bindings, but I think
for most, ffi-helper and then a scheme library that cleans up the bindings
is the way to begin.
-Mike
next prev parent reply other threads:[~2018-12-27 14:38 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.73.1545757221.8862.guile-user@gnu.org>
2018-12-26 11:38 ` Re: Matrix or array operations library Zelphir Kaltstahl
2018-12-27 14:20 ` Matt Wette
2018-12-27 14:38 ` Mike Gran [this message]
2018-12-26 11:43 ` guile-user Digest, Vol 193, Issue 29 Zelphir Kaltstahl
2018-12-26 19:51 ` Tk
2018-12-28 14:17 ` Zelphir Kaltstahl
[not found] <mailman.32929.1546007691.1283.guile-user@gnu.org>
2018-12-28 20:23 ` Matrix or array operations library Daniel Llorens
2018-12-28 23:16 ` John Cowan
2018-12-29 0:17 ` Daniel Llorens
2019-01-27 18:41 ` Matt Wette
2018-12-28 23:24 ` Matt Wette
[not found] <mailman.108.1545930019.12294.guile-user@gnu.org>
2018-12-27 18:43 ` Daniel Llorens
2018-12-27 21:24 ` John Cowan
2018-12-27 22:24 ` Matt Wette
[not found] <c2172031-a0a6-9dd3-6ceb-7b6d94648475@gmail.com>
2018-12-24 22:01 ` Zelphir Kaltstahl
2018-12-24 23:06 ` Tk
2018-12-25 0:21 ` Matt Wette
2018-12-25 17:12 ` David Pirotte
2019-06-02 21:44 ` Linas Vepstas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181227143844.GA21970@joshua.dnsalias.com \
--to=spk121@yahoo.com \
--cc=guile-user@gnu.org \
--cc=matt.wette@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).