News for hackers. Stuff that matters.
Re:Oracle cooks up free and premium JVMs by sukuriant on Saturday November 06, 2010 @04:11PM (#1877657)
Would it be that impossible to keep a counter of what iteration of function X the user is on? Or, does tail recursion also count things like:

int A() { return 1 + B(); }

int B() { return 1 + A(); }

(with necessary ending conditions)

Re:Oracle cooks up free and premium JVMs by crux_ on Saturday November 06, 2010 @04:33PM (#1877699)
Yes, tail call optimizations include mutually recursive functions.

Note that your example was not of tail calls, however. (Tail call would be: return A(...); that is, a tail call is one whose result is immediately returned.)

Re:Oracle cooks up free and premium JVMs by sukuriant on Saturday November 06, 2010 @07:09PM (#1878005)
That does become harder to follow, then.

And, woops...