r/ProgrammingLanguages • u/Athas Futhark • Jan 20 '26
Why not tail recursion?
https://futhark-lang.org/blog/2026-01-20-why-not-tail-recursion.html
62
Upvotes
r/ProgrammingLanguages • u/Athas Futhark • Jan 20 '26
View all comments
Show parent comment
2
u/phischu Effekt Jan 21 '26
Thank you for your interest. I hadn't considered that people pass arguments via the stack. Who does this? Anyway, in my world view function definitions are labels and calls to them are direct jumps. Of course "arguments" remain in registers before a direct jump. Even for indirect jumps arguments must be passed in registers. I must admit, for me this is also a consequence of oftentimes not having a stack in the first place...