Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scala lambdas implementation vs. Java 8 [closed]

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.

like image 697
user2335262 Avatar asked Nov 02 '22 05:11

user2335262


1 Answers

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.

like image 168
yǝsʞǝla Avatar answered Nov 09 '22 15:11

yǝsʞǝla