You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function is compiled to native code and runs fast
Actual
JitError
Details
Trying to run the following program in windows 11
def fib(n: int) -> int:
if n == 0 or n == 1:
return 1
return fib(n-1) + fib(n-2)
fib.__jit__()
print(fib(35))
Results in following
target\release\rustpython.exe fibs.py
Traceback (most recent call last):
File "fibs.py", line 6, in <module>
fib.__jit__()
JitError: function can't be jitted
I compiled from source on following commit
commit 3eda1cf3b4a29eb35c30f2a3ed272771c642c065 (HEAD -> main, origin/main, origin/HEAD)
Author: Alin-Ioan Alexandru <118962201+alinioan@users.noreply.github.com>
Date: Thu Jan 25 07:54:06 2024 +0200
Deprecation warning fix for __complex__ (#5152)
using following command
>cargo build --release --features jit
Is this expected?
The text was updated successfully, but these errors were encountered:
Summary
JitError: function can't be jitted (fibonacci)
Expected
The function is compiled to native code and runs fast
Actual
JitError
Details
Trying to run the following program in windows 11
Results in following
I compiled from source on following commit
using following command
Is this expected?
The text was updated successfully, but these errors were encountered: