2 ms·
Self recursion is a special case that WASM backend targets can more or less efficiently resolve the same way a human can convert a recursive function into a non
by xenadu02 4y ago
Self recursion is a special case that WASM backend targets can more or less efficiently resolve the same way a human can convert a recursive function into a non-recursive one: explicitly put arguments onto your own simulation of a stack and perform the computation in a loop.
Unfortunately self recursion is only a subset of tail calling.