goops method defined only in derived classes fails to become generic?

2011-02-02 Thread Jan Nieuwenhuizen
[sorry moderator, sent from non-subscribed address] Hi, This worked with guile 1.8. Bug or feature? Greetings, Jan -- Jan Nieuwenhuizen jann...@gnu.org | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl class.tar.gz Description:

implicitly using existing function as generic fails in 1.9

2011-02-02 Thread Jan Nieuwenhuizen
Hi, See attached code, run using ./run.scm 1.8 says: 14:58:59 janneke@vuurvlieg:~/vc/schikkers-list/remove $ ./run.scm WARNING: (use): `remove!' imported from both (srfi srfi-1) and (remove) class: remove! 1.9.14 says: 14:58:36 janneke@vuurvlieg:~/vc/schikkers-list/remove

goops method defined only in derived classes fails to become generic?

2011-02-02 Thread Jan Nieuwenhuizen
Hi, This worked with guile 1.8. Bug or feature? Greetings, Jan -- Jan Nieuwenhuizen jann...@gnu.org | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl class.tar.gz Description: application/compressed-tar

Re: RFC: Arbitrary-precision floats for Guile

2011-02-02 Thread Hans Aberg
On 1 Feb 2011, at 21:37, Andy Wingo wrote: In (* inum flonum bigflonum), with what precision would the first multiplication be performed? Note that currently the compiler compiles it as (* (* inum flonum) bigflownum). An idea that comes to my mind is to set a minimum float precision,

[PATCH] Complex numbers with inexact zero imaginary part, etc

2011-02-02 Thread Mark H Weaver
Here's another batch of numerics fixes and changes. Most notably, the final patch allows Guile to represent non-real complex numbers with inexact zero imaginary part. The first two patches fix bugs and improve handling of signed zeroes. Note that the patches are meant to be applied after my

Re: Guile news for the GNU Status Report

2011-02-02 Thread Ludovic Courtès
Hello, Neil Jerram n...@ossau.uklinux.net writes: l...@gnu.org (Ludovic Courtès) writes: Guile 2.0 is a breakthrough in Guile's history. First and foremost, it is based on a compiler and a virtual machine. The compiler compiles Scheme code to bytecode, applying well-known optimizations.

Re: RFC: Arbitrary-precision floats for Guile

2011-02-02 Thread Pierpaolo Bernardi
On Wed, Feb 2, 2011 at 02:53, Nelson H. F. Beebe be...@math.utah.edu wrote: Another recent book addresses arithmetic and the computation of elementary functions in software arbitrary-precision arithmetic: @String{pub-CAMBRIDGE           = Cambridge University Press} @String{pub-CAMBRIDGE:adr

Re: [PATCH] Possible Documentation Fix

2011-02-02 Thread Noah Lavine
Hi, Looks great to me!  Would you mind submitting an updated patch? It's attached. Also, if you like, please add yourself to the Guile group on savannah. Let Ludo and I know when/if you've done this and we'll be happy to add you there.  Let's keep up the great discussion on the list, but

Re: [PATCH] Possible Documentation Fix

2011-02-02 Thread Andy Wingo
On Wed 02 Feb 2011 15:53, Noah Lavine noah.b.lav...@gmail.com writes: Looks great to me!  Would you mind submitting an updated patch? It's attached. Thanks. I added a summary line and committed it. I've added you to the Guile group. If you don't mind, please continue to post patches to the

Re: Equality predicates, signed zeroes, R5RS and R6RS

2011-02-02 Thread Andy Wingo
On Mon 31 Jan 2011 20:53, Mark H Weaver m...@netris.org writes: Given that everyone agrees that `eqv?' must distinguish 0 from 0.0, it is already not useful as a numerical `='. Any program that uses it this way is asking for trouble. Therefore, I don't have qualms about keeping our existing

Re: [PATCH] Possible Documentation Fix

2011-02-02 Thread Noah Lavine
I've added you to the Guile group.  If you don't mind, please continue to post patches to the list for a little while.  Try to rebase before pushing patches to the Guile repo; merge commits are OK sometimes, but we like having a nice linear history. I guess in short the thing is to keep up

Re: Raising negative numbers to an inexact integer

2011-02-02 Thread Andy Wingo
On Mon 31 Jan 2011 21:26, Mark H Weaver m...@netris.org writes: For example, although (expt -1.0 2) yields 1.0, (expt -1 2.0) yields 1.0+0.0i, which is not `real?' according to the R6RS. The R6RS requires that `real?' return #t only if the imaginary part is an _exact_ 0. Note that

Re: [PATCH] Complex numbers with inexact zero imaginary part, etc

2011-02-02 Thread Andy Wingo
On Wed 02 Feb 2011 12:25, Mark H Weaver m...@netris.org writes: * libguile/numbers.c (scm_abs): (abs -0.0) now returns 0.0. Previously it returned -0.0. I applied this, but is it right? I can convince myself both ways. Andy -- http://wingolog.org/

Re: [PATCH] Complex numbers with inexact zero imaginary part, etc

2011-02-02 Thread Andy Wingo
Hi, I just sent a mail I didn't mean to send, I said: On Wed 02 Feb 2011 12:25, Mark H Weaver m...@netris.org writes: * libguile/numbers.c (scm_abs): (abs -0.0) now returns 0.0. Previously it returned -0.0. I questioned this, but I think it's pretty fine, obviously; I meant to ask about:

Re: [PATCH] Complex numbers with inexact zero imaginary part, etc

2011-02-02 Thread Andy Wingo
On Wed 02 Feb 2011 12:25, Mark H Weaver m...@netris.org writes: Here's another batch of numerics fixes and changes. Applied, thanks! There are two more patches coming soon: one to improve expt, and one to add many test cases to numbers.test. Hopefully these can make it into the imminent

Re: [PATCH] Complex numbers with inexact zero imaginary part, etc

2011-02-02 Thread Mark H Weaver
Andy Wingo wi...@pobox.com writes: (scm_difference): (- 0 0.0) now returns -0.0. Previously it returned 0.0. Also make sure that (- 0 0.0+0.0i) will return -0.0-0.0i. Is this right? I can convince myself both ways. I'm not 100% confident, but I'm pretty sure it's the right thing. As

GNU Guile 1.9.15 released — last call before 2.0!

2011-02-02 Thread Ludovic Courtès
We are pleased to announce GNU Guile release 1.9.15. This is the last pre-release before the 2.0 release, due on Feb. 16th! It provides many new noteworthy features, most notably the addition of a compiler and virtual machine. We encourage you to test them and provide feedback to

Re: [PATCH] Complex numbers with inexact zero imaginary part, etc

2011-02-02 Thread Andy Wingo
On Wed 02 Feb 2011 22:36, Mark H Weaver m...@netris.org writes: http://people.csail.mit.edu/jaffer/III/RAWI Fascinating link, thanks. I'm OK with the way things are. BTW: did you see the failures on darwin? http://hydra.nixos.org/build/882506/nixlog/1 Seems there were errors in:

Re: GNU Guile 1.9.15 released — last call before 2.0!

2011-02-02 Thread Neil Jerram
l...@gnu.org (Ludovic Courtès) writes: We are pleased to announce GNU Guile release 1.9.15. This is the last pre-release before the 2.0 release, due on Feb. 16th! Wow, excellent job, and exciting times. Well done to everyone involved! Neil

[PATCH] Fix non-portable usage of `isinf' in `max' and `min'

2011-02-02 Thread Mark H Weaver
Andy Wingo wi...@pobox.com writes: BTW: did you see the failures on darwin? http://hydra.nixos.org/build/882506/nixlog/1 Seems there were errors in: FAIL: numbers.test: max: infinities and NaNs: (real-nan? (max +nan.0 -inf.0)) FAIL: numbers.test: max: infinities and NaNs: