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
I had an inner helper function (for factorial) that allocates, even in tail position. I'm not sure why, since the code worked function when moved out to no longer be nested.
Is it a bug in Julia? I fail to see the need for allocation (except on the stack, and even not needed then with TCO macro). Is it maybe needed when not in tail position?
Fixing this might help against Mojo... though I think it's winning there because it has TCO my default.
The text was updated successfully, but these errors were encountered:
I had an inner helper function (for factorial) that allocates, even in tail position. I'm not sure why, since the code worked function when moved out to no longer be nested.
Is it a bug in Julia? I fail to see the need for allocation (except on the stack, and even not needed then with TCO macro). Is it maybe needed when not in tail position?
Fixing this might help against Mojo... though I think it's winning there because it has TCO my default.
The text was updated successfully, but these errors were encountered: