unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: "Jason R. Green" <jg525@cam.ac.uk>
Cc: guile-devel@gnu.org
Subject: Re: Guile and GSL
Date: Sun, 07 Mar 2010 18:16:01 +0100	[thread overview]
Message-ID: <87ocj0qcha.fsf@gnu.org> (raw)
In-Reply-To: <debdc5451003070438p74af9f3bh769fa5da49a5be38@mail.gmail.com> (Jason R. Green's message of "Sun, 7 Mar 2010 12:38:21 +0000")

Hello,

"Jason R. Green" <jg525@cam.ac.uk> writes:

> Guile and GSL are two great GNU packages for building scientific
> computing software. In my own work I need support for GSL data types
> (e.g., vectors, matrices) and my own types built from them. I know
> this has come up in the past:
>
> (1) http://www.gnu.org/software/guile/manual/html_node/Starting-and-controlling-the-interpreter.html
> (2) http://sources.redhat.com/ml/guile/1998-10/msg00332.html
> (3) http://sources.redhat.com/ml/guile/1998-10/msg00431.html
>
> I also read about a similar project
> (http://community.schemewiki.org/?GEE-Guile-GSL) being withdrawn from
> Gna! but I can't find the thread now. What is the current consensus in
> the guile-devel community? Is there interest in this line of
> development?

I think having Guile bindings to GSL would be great.  Which line of
development are you referring to?

FWIW, I think it would be great if these bindings were eventually
integrated in the GSL package proper.  To that end, you should make sure
to follow the GNU Coding Standards, to provide good test coverage and
documentation, and to make sure copyright can be assigned to the FSF.

[...]

> I have gsl_matrix and gsl_vector smobs, their make, mark, free, and
> print functions, as well as wrapper functions that zero each. I also
> have functions for converting between GSL and SCM vectors.
> Unfortunately, as discussed in the threads at (2) above, defining new
> smobs may not be the best approach.

I suppose SRFI-4 homogeneous numeric vectors[*] would be a good fit for
GSL vectors and matrices, and you wouldn’t need to create any new SMOB
type.  That said, I’m sure you know GSL much better than me.  :-)

Thanks,
Ludo’.

[*] Note that in 1.9 the ‘(srfi srfi-4 gnu)’ module provides vectors of
    complex numbers in addition to those defined by SRFI-4.




  reply	other threads:[~2010-03-07 17:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-07 12:38 Guile and GSL Jason R. Green
2010-03-07 17:16 ` Ludovic Courtès [this message]
2010-03-07 18:50   ` Jason R. Green
2010-03-07 19:41 ` Mike Gran
2010-03-07 20:05   ` Jason R. Green
2010-03-10 15:21 ` Jason R. Green
2010-03-10 16:25   ` Ludovic Courtès

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=87ocj0qcha.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guile-devel@gnu.org \
    --cc=jg525@cam.ac.uk \
    /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).