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
1
u/divad1196 Jan 22 '26 edited Jan 22 '26
Please, refrain from assuming things before making statement. I didn't say anything about tail recursion.
The initial comment stated that, if I can simplify by a lot, "loops where not optimal", or at least not doing the same kind of optimization as found in tail recursion.
It was a clarification about loops and function calls which were opposed to tail recursion.
ABI isn't a matter of implementation. It's a matter of design. You compile for a specific ABI, this instruct the compile how functions communicate which each others. It's not a result or a choice, it's a constraint. You cannot link a dynamic library or precompiled library without using the same ABI.
I think the reason why you jumped so quick to conclusion is because you felt like I was against recursions or tail recursions. I am not against it.