-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stack overflow in Fibonacci tail recursion #28
Comments
I tried my self with this version:
I can go as far as 1020, on 1021, it returned a negative number I don't know why ,and beyond that is stack overflow... It might be because the bytecode version interpreter right now hetu use doesn't support BigInt like Dart does. Or it is because there are some other limit this recursion touched... |
And the result is wrong when the nth is higher, I'm still testing. |
after fib(92), the result reached the limit of int64(which is the limit of the current bytecode interpreter). however why the stack overflowed after 1020 is still unclear |
It's quite near 1024. |
@rockingdice let's be close to the topic: |
@mabDc Sure, so this could be a bug. |
Stack Overflow
when calc Fibonacci tail recursionThe text was updated successfully, but these errors were encountered: