This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: Rational numbers?
- To: Greg Harvey <Greg dot Harvey at thezone dot net>
- Subject: Re: Rational numbers?
- From: "Harvey J. Stein" <hjstein at bfr dot co dot il>
- Date: Fri, 12 Nov 1999 18:54:07 +0200
- Cc: guile at sourceware dot cygnus dot com
Greg Harvey <Greg.Harvey@thezone.net> writes:
> Mikael Djurfeldt <mdj@mdj.nada.kth.se> writes:
>
> > Han-Wen Nienhuys <hanwen@cs.uu.nl> writes:
> >
> > > I can't find rational number support in GUILE. Are there any
> > > plans to support those?
> >
> > There are definite plans of integrating GOOPS into libguile. The
> > only things which is missing is the straightening out of the
> > copyright issues.
> >
> > When GOOPS has been integrated, it is possible to implement a
> > very good idea which Jim has proposed: splitting the numerics
> > into separate modules which are integrated through GOOPS. We
> > would create a subtype of generic operators which first treat
> > integers specially for optimal performance and do ordinary GOOPS
> > method dispatch for other argument types.
>
> Weird; that's almost exactly what I was doing with my numbers
> rewrite ('cept I was using a much simpler kind of object system,
> since I didn't feel like figuring out goops at the time ;).
Unless goops has impossibly good function dispatch I'd expect you'll
get a substantial performance hit on general arithemtic by doing this.
--
Harvey Stein
Bloomberg LP
hjstein@bfr.co.il