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: guile bugs


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

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