Hello, rjf.

You wrote 4 мая 2010 г., 19:21:42:

> Note that converting (in applications of these Lisp programs) to gmp
> integers  and back is not something you do very often.

It depends on problems you solve. It may be one of the "short operands
and   long   accumulator"   kind.   Or   it   just  may  involve  many
multiplications  by  short integers (by 2, for example - very frequent
pattern).

> Writing  the  conversion code in lisp is not difficult. I don't know
> why  it  should  be  difficult  in  Python,  unless  you  have  only
> fixed-precision integers.

That's because Python integers are arbitrary precision integers. So it
is takes some time to determine whether it fits into int32/int64.


-- 
With best regards,
 Sergey                          mailto:sergey.bochka...@alglib.net

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to