Dr. Dobb's is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


Welcome Guest | Log In | Register | Benefits
Channels ▼
RSS

JVM Languages

Java 8 Adoption Poll Results



Related Reading


More Insights




Deirdre Blake

You inspired a new feature on the subject! http://www.drdobbs.com/jvm/...

eric_j_bruno

Thanks for the question. It's a good one. The short answer is that this hasn't been addressed in Java SE 8. However, the thing to remember is that this isn't a bug with the JVM that requires a fix, per se. Many functional languages have as a compiler or runtime feature a transformation from O(n)-stack-consuming tail recursion to flat goto-based tail recursion. This is called "tail call optimization". The JVM doesn't have it, but it's on the list of future JVM enhancements.

Deirdre Blake

Good question. I've asked Eric Bruno about this and he's looking into it. I'll post more info here when he gets back to me.

JDEGE000

I've not seen it mentioned, yet. Does the Java 8 JVM include a fix for the tail recursion optimization problem, that's been plaguing the functional languages like Groovy?