This is the mail archive of the guile@sourceware.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]

Re: Rational numbers?



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


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