This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Matrix support and guile signal handlers


I'm a bit of a guile newbie, I'm writing a matrix
handling library and I'd like to be able to use the
scheme interpreter to exaluate expressions, some
of which may involve matricies.

People who use Matlab or octave would know of the
usefulness of an interpretive language combined with
a matrix library.

Has guile got matrix support?

Has anyone else already started on this project?

I'm thinking that I should be able to make the
matrix data type an atomic type in guile by using
struct gscm_type and gscm_alloc_obj().

Then I can map new functions into scheme such as
(mat-+), (mat-*) and (mat-invert).

Is this a plausible direction?

Is there a better way?

The system of exceptions, error handling and
interrupts in guile seems a little beyond me.
I'm used to unix signals and the concept of
breaking my code at some random point and never
returning to that point just doesn't click with me.
Usually my signal handlers just change a few variables
and then return. Only the most critical stuff gets
done in the handlers.

I don't use C++ exceptions either :-)

However, if someone can point me in the direction
of some explanation of how the system is supposed to
work and why it's worth doing then I'll breathe
deeply and give it a go (I'm saying this beause I
have a feeling that if I want to get guile working
properly then I'll have to).

	- Tel