Silent numerical overflow has to be one of the most costly "features" introduced in prog langs – rivaling the horrible null.
@dcsobral @viktorklang Check out SafeLong in Spire. I've also heard that IBM's JVM does optimize BigInteger for small values. /cc @d6
-
-
.
@tixxit@viktorklang@d6 Yeah, but the most important thing would be calling it int or number, and use signed32BitsInteger for the other. -
@dcsobral@tixxit@viktorklang There's just no pleasing you is there??? We have spire.math.Number though it's not just overflow safe int ;) - 4 more replies
New conversation -
-
-
@tixxit@dcsobral@viktorklang Actually SafeLong is something that already works and does what you want. I just have Natural on the brain...Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.