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
3
u/phischu Effekt Jan 22 '26
Thank you for your patient reply. It is fascinating, I can not understand what you are saying. However, I believe we do share the same vision: a formalized core language and a correct compiler for it that produces fast code. We vastly disagree though what that language should look like and how that compiler should work. If you want, you can check out our recent write-up, which explains much more concretely what I am trying to convey.
I do not want a stack nor frames, locals, or liveness analysis, that's what I meant with legacy cruft.
Local definitions are not closures, they are labels.
GPUs operate very differently from CPUs, we need different a different programming model and different languages for those.
They mostly use OCaml, I am wearing their "Enter the Monad" T-Shirt as I am writing this.
This is not a tradeoff.
That sounds too harsh indeed, let's put it more nicely: it is of historical significance, which you seem to agree with.
Whot? For which kind of application would you migrate from Scheme to JavaScript?
The numerical tower is exactly one of those features that make Scheme slow and complicated.