Sujet : Re: The joy of FORTRAN
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : alt.folklore.computers comp.os.linux.miscDate : 05. Mar 2025, 22:30:40
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vqafq0$2jbji$6@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Pan/0.162 (Pokrosvk)
On Wed, 05 Mar 2025 08:46:30 +0000, Richard Kettlewell wrote:
Incidentally, in C, when dealing with large integers, each arithmetic
operations is a function call; “Y=X+((R-X)%(2*r1*r2))” gets a lot
wordier when all the variables can be hundreds or thousands of bits
long.
Out of curiosity, is it still worth using C when doing large-magnitude
integer arithmetic? At that point, so much of the CPU time is being spent
in the arithmetic operations, would it be easier (and not much slower) to
use a language like Python, which has large-magnitude integers built-in?