Re:My favorite things that are coming with Julia 1.0
by StefanKarpinski on Friday June 01, 2018 @04:48PM
(#17210098)
You're talking about different types of promotion. `Int32 + Int32` did once upon a time give an `Int64` on 64-bit systems. However, that was true regardless of the values of those integers—it was entirely predictable from their types alone. The type of promotion that's being talked about here is promoting `Int + Int` to `BigInt` but only when the
values being added are too big to be stored in an `Int`. Julia has never done that.
[ Parent
| on HN ]
Re:My favorite things that are coming with Julia 1.0
by vanderZwan on Friday June 01, 2018 @06:13PM
(#17210919)
Ah, ok. I can imagine that that is more JIT-friendly.