4 ms·
Umm, compilers? That's what the post was about. Compilers need to be able to represent integer literals up to machine precision.
by rbehrends 10y ago
Umm, compilers? That's what the post was about. Compilers need to be able to represent integer literals up to machine precision.
- naasking 10y agoCompilers for languages with full-width integers need to represent full-width integer literals while compiling, sure. I'm not sure that it's: a) all that common to need full width integers while compiling even these languages, and b) all that problematic to use boxed numbers in this context, or big_int.
- rbehrends 10y agoWhat you are saying here is that it isn't a huge problem in practice, and I agree with that. However, that's not what the original post was saying. It said that OCaml was especially suited for writing compilers because of its ints, which is the exact opposite claim.