@wim_v12e both would be best
10 comments
@wim_v12e you're using deep stacks to do this, it might overflow for more recursions: @neauoire I know, it is not a tail recursion. The fixedpoint function is elegant but not efficient. It is important that Funktal can handle it, and in fact it showed me a design flaw I still have to fix. But in practice I would not use it. @wim_v12e ah! okay :) The tool is this one, if you ever wanna step through a rom @neauoire Great! In the meanwhile, I've pushed the .tal, .rom and .rom.sys for a tail-recursive factorial, the files are fact.* https://codeberg.org/wimvanderbauwhede/funktal/src/branch/main/examples @wim_v12e Thanks! I'll take them for a spin. Let me know if you have issues with beetbug. @neauoire I will, thanks. But first I think I have some particularly hairy debugging to do. |
@neauoire OK, I did it, the files are fact-fix-2.*
https://codeberg.org/wimvanderbauwhede/funktal/src/branch/main/examples