[Aldor-l] Using GMP and extending the biging protocol

Ralf Hemmecke ralf at hemmecke.de
Sat Aug 16 07:12:08 EDT 2008


On 08/16/2008 03:52 AM, pip88nl at gmail.com wrote:
> By the way, it is not possible to replace the bigint entirely, because it
> would break all bytecode. BInts are stored directly in bytecode in the
> representation of BInt. gmp would only go into the runtime.

I don't see, why BInt must be in the bytecode.

First, the aldor interpreter working on bytecode is slow anyway (and 
even more buggy than the compiler) (so basically unusable).

Why wouldn't it make sense, that any bytecode interpreter has to provide 
an implementation of BInt that is consistent with the Aldor BigInt 
specification? So if the interpreter calls gmp code that would be fine.
Where is the problem?

Couldn't an optimizer still optimize biginteger code form .as programs 
based on specification?

Isn't it the case already now that the BInt implementation lives in the 
interpreter/compiler and only "pointers" to BInt implementations live in 
the foam code?

Ralf




More information about the Aldor-l mailing list