Gleam 1.6 mutual tail recursion runs in O(1) stack on the BEAM target but throws `Maximum call stack size exceeded` on the JavaScript target
Language: Gleam · Versions: Gleam 1.6.0 (Erlang/BEAM vs JavaScript targets) The problem Gleam compiles to both Erlang (BEAM) and JavaScript. On the BEAM, tail-call optimization…
2 posts ·