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/Axman6 Jan 22 '26
Most functional languages do not use CDECL or similar conventions for function calls. In Haskell, function “calls” are always just jumps, there is no call stack, there is no return address pushed anywhere. There’s no need for the functions to be C compatible, because functions exposed to C are explicitly marked and wrappers which do match the host platform’s ABI added. OS ABIs only matter when interacting with code outside your language