That is not relevant if we are bootstrapping on Tachyon which has wider integers (if we want to).
I'd prefer to implement most of the compiler in standard JS, as much as possible. Otherwise, we might as well say the bignum code is pointless to begin with... We could have made wrappers for the int32 and int64 types directly.
Ha! I hadn't thought of that! Indeed if fixnums are artificially limited to only have 52 significant bits as you are doing, then the radix must be <= 2^26.
That would probably be sufficient for the case I'm dealing with, but for the sake of future-proofing, would it really be that difficult to port your existing bignum division implementation?
- Maxime