Scala lambdas implementation vs. Java 8
function, java, java-8, lambda, scala
Solution
You can learn more about it here: http://www.takipioncode.com/2014/01/16/compiling-lambda-expressions-scala-vs-java-8/ or from Martin Odersky interview: http://www.infoq.com/articles/odersky-scala-interview/. I understood that it's not easy or maybe even possible at the moment due to Scala nature.
Problem
The soon to be introduced function literals in Java 8 use invokedynamic rather than being statically compiled. This seems to give the benefits of less compiled 'noise' in the emitted bytecode, which I'm assuming means comparably less compilation time (ignoring all of the other reasons that Scala compilation is slower), as well as less classes to load. Does anyone now if there are any plans to move Scala in this direction? If not, could someone elucidate on the reasons the Scala team aren't going to? This is kind of a follow on from question / point 9 in this question.