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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With