This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: guile bugs
- To: Jim Blandy <jimb AT red-bean dot com>
- Subject: Re: guile bugs
- From: Greg Harvey <Greg.Harvey AT thezone dot net>
- Date: 16 Sep 1999 14:34:08 -0230
- Cc: Jay Belanger <jay AT vh213601.truman dot edu>, scwm-discuss AT scwm.mit dot edu, guile AT sourceware.cygnus dot com
- References: <qrru2oyxtr7.fsf@elwha.cs.washington.edu> <199909141442.JAA17962@vh213601.truman.edu> <qrraeqpy0pl.fsf@elwha.cs.washington.edu> <199909141624.LAA19039@vh213601.truman.edu> <qrrlna9w5az.fsf@elwha.cs.washington.edu> <199909142309.SAA01374@vh213601.truman.edu> <qrrvh9bu8rp.fsf@elwha.cs.washington.edu> <m34sgvcttc.fsf@savonarola.red-bean.com> <qrrvh9bl8ix.fsf_-_@elwha.cs.washington.edu> <m3puzic311.fsf@savonarola.red-bean.com>
Jim Blandy <jimb@red-bean.com> writes:
> > 1) SCM_BOOL_F should be 0 so it is false in C
>
> If someone were to make this change and show me before and after
> benchmark results (see guile-modules/benchmarks), then that would help
> persuade me.
I don't think this would necessarily cause much of a performance drop
(it just makes SCM_IMP(x) == (!x || x&(whatever)); as other people
have pointed out, though, this might not be the greatest of ideas.
> > 2) SCM should not be a long, but instead be a pointer to undefined
> > struct as we discussed before. This would prevent misuse of an integer
> > as a Scheme value.
>
> I'd love to see this change happen.
I actually did do some work towards this a few months ago, but it
quickly ran into problems with the numbers implementation (which not
only relies on, but totally abuses the fact that SCM == long). I've
worked off and on with a numbers reimplementation (using gmp as well
as cleaning things up), but it still really isn't ready to be used yet
(though it is slowly getting closer ;). Older code is on my website,
and I do have some more advanced code that is much closer to working,
which I could put up if anyone's interested in looking at it.
--
Greg