[pypy-dev] Re: [pypy-svn] r20092 - pypy/dist/pypy/rpython
tismer at stackless.com
Mon Nov 21 11:04:01 CET 2005
Laura Creighton wrote:
> Correct me if I am wrong, but if we allow float keys, then we make
> code that is not portable between machines that have different
> float representations?
CPython does allow float keys and doesn't have portability
problems. The only concern here is compatability with equally
values integer keys. But that does not apply to RPython, since
we there dfon't allow mixing types at all.
> Also, given that your new American friends are dealing with money,
> what is wrong with using the decimal type as keys for them, or
> possibly better still Facundo's money module?
I needed something that is supported by RPython and that is very
fast. I'm not aware of a C implementation of the money type,
yet, but maybe I'm missing something.
64 bit long would be perfect, because they use it at a fixed decimal
scale and convert into float only for display purposes.
So float is ATM a surrogate which is ok, because 53 bits fill the
needed range, too.
And my primary goal is to show them what PyPy can do, and to
convince them that it makes sense to invest into this.
Btw. it is not the Salomon Bros/group but an individual, with his
roots in Hungary.
all the best - chris
Christian Tismer :^) <mailto:tismer at stackless.com>
tismerysoft GmbH : Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9A : *Starship* http://starship.python.net/
14109 Berlin : PGP key -> http://wwwkeys.pgp.net/
work +49 30 802 86 56 mobile +49 173 24 18 776 fax +49 30 80 90 57 05
PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04
whom do you want to sponsor today? http://www.stackless.com/
More information about the Pypy-dev