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 following fails with Stack Overflow on NET Core, but runs fine on Framework:
let recfib n = job {if n <2L thenreturn n
elselet!x= fib (n-2L)let!y= fib (n-1L)return x + y
}
fib 30L |> run
The call stack full of four functions repeated over again suggests a tail call problem:
Possibly related to #192 which I've just tested , similarly works fine on Framework but fails on Core. Which seems strange to me: if Core and Framework share the compiler to IL, and the JIT compiler (RyuJIT), shouldn't the tail call optimization succeed on both, or fail on both simultaneously?
Tested on Windows 10 x64, NET Core 3.0 Preview 2
The text was updated successfully, but these errors were encountered:
The following fails with Stack Overflow on NET Core, but runs fine on Framework:
The call stack full of four functions repeated over again suggests a tail call problem:
Possibly related to #192 which I've just tested , similarly works fine on Framework but fails on Core. Which seems strange to me: if Core and Framework share the compiler to IL, and the JIT compiler (RyuJIT), shouldn't the tail call optimization succeed on both, or fail on both simultaneously?
Tested on Windows 10 x64, NET Core 3.0 Preview 2
The text was updated successfully, but these errors were encountered: