On 12/18/2009 12:22 PM, [email protected] wrote:
> While ensuring that the optimization is actually performed is very important,
> it seems to be a novelty in the JVM: to the best of my knowledge, there is no
> other way to guarantee that any optimization will actually occur.
> Is this correct ?

Tail-call optimization is not a pure optimization, as it changes the
semantics in a fundamental way:  It removes stack traces, which are
part of both observable behaviour (stack traces) and the Java security
architecture.  Conversely, the lack of tail-call optimization when it
is expected (or demanded by some [non-Java] language specification)
means that a program that should run in finite memory will run out of
stack.
-- 
        --Per Bothner
[email protected]   http://per.bothner.com/

--

You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en.


Reply via email to