News for hackers. Stuff that matters.
Re:Rust will likely not support tail call optimization by kragen on Wednesday April 10, 2013 @08:13PM (#5529093)
If you write your loops with the Y-combinator, you need tail-call elimination to keep them from overflowing the stack when they run for enough iterations, because the way your function f goes on to the next iteration of itself is by calling the (Y f) that was passed as its first argument.
Re:Rust will likely not support tail call optimization by qznc on Thursday April 11, 2013 @09:57AM (#5531963)
You can write a lambda calculus interpreter which does beta-reduction. In this case, there is no stack which could overflow. Just a lambda expression, which is reduced to another expression.
Re:Rust will likely not support tail call optimization by kragen on Thursday April 11, 2013 @03:30PM (#5534208)
Yes, as I mentioned in another comment in this thread, TCE falls out automatically from combinator-graph reduction.