chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Problems with rationals


From: John Cowan
Subject: Re: [Chicken-users] Problems with rationals
Date: Mon, 9 Apr 2012 17:28:56 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

Peter Bex scripsit:

> The only way to truly fix this is to add numbers to core; the way it
> extends the reader is a bit of a hack and it doesn't truly replace
> the procedures from the Scheme module.  Even if it did, compiled code
> often calls C functions directly which "bypasses" any overwriting the
> numbers egg might do at the Scheme level; that's why it doesn't even
> try to do this at all.

I proposed an alternative to Felix several years ago, namely to do things
in the core via hooks which can be set at run-time when you load the
numbers egg.  That way everything behaves systematically except compiled
code that inlines procedures based on type information.  Felix said this
was too big and comprehensive a change.

But, blast it, if little Chibi can include a full numeric tower, why
should Chicken position itself with RScheme and VX, plus a bunch of
broken Schemes that always return a fixnum when multiplying fixnums,
even if it's the wrong one?

See http://trac.sacrideo.us/wg/wiki/NumericTower for a table of which
Schemes support which numeric tower features.

-- 
First known example of political correctness:   John Cowan
After Nurhachi had united all the other         http://www.ccil.org/~cowan
Jurchen tribes under the leadership of the      address@hidden
Manchus, his successor Abahai (1592-1643)
issued an order that the name Jurchen should       --S. Robert Ramsey,
be banned, and from then on, they were all           The Languages of China
to be called Manchus.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]