On 12/21/2013 05:12 PM, Jochen Theodorou wrote: > Am 21.12.2013 16:17, schrieb Jochen Theodorou: > [...] >> If I first call fib(44) and then fib(45) without memoization, then it >> takes much to long to calculate all those BigIntegers. > > > just for the record... fib(45) indeed works then. I did not test a > higher number, because unlike with int, using BigInteger those > operations take their sweet time.
yes, usually when you use a language like Ruby, Python or Dart that let 32bits/64bits to overflow to big ints, and you have an application that actually have ints that overflow, you end up with a performance problem. Throwing an exception if an overflow occurs (like if there is a division by zero) is in my opinion a better semantics. > > bye Jochen > cheers, Rémi _______________________________________________ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev