State of lambda forms stealing stack frames?
Remi Forax
forax at univ-mlv.fr
Sun Dec 22 11:05:22 PST 2013
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
More information about the mlvm-dev
mailing list