@wim_v12e you're using deep stacks to do this, it might overflow for more recursions:
Top-level
@wim_v12e you're using deep stacks to do this, it might overflow for more recursions: 7 comments
@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 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.
I'll send you a tail-recursive one for contrast later. Your tool is very cool!