Compiling Lambda Expressions: Scala vs. Java 8


News: Compiling Lambda Expressions: Scala vs. Java 8

  1. Compiling Lambda Expressions: Scala vs. Java 8 (5 messages)

    Lambda expressions have taken the programming world by storm in the last few years. Most modern languages have adopted them as a fundamental part of functional programming. JVM based languages such as Scala, Groovy and Clojure have integrated them as key part of the language. And now, Java 8 is (finally) joining in on the fun.

    What’s interesting about Lambda expressions is that from the JVM’s perspective they’re completely invisible. It has no notion of what an anonymous function or a Lambda expression is. It only knows bytecode which is a strict OO specification. It’s up to the makers of the language and its compiler to work within these constraints to create newer, more advanced language elements.

    To get things going I took a simple Lambda expression that converts a list of Strings to a list of their lengths.

    Don’t be tricked its simplicity – behind the scenes some complex stuff is going on.

    Read more about it here

    Threaded Messages (5)

  2. eternal loop[ Go to top ]

    sorry but the "More ..." link leads back to same page .

  3. Link doesn't work[ Go to top ]

    Would be nice if link actually linked to article instead back to serverside post. 

    Or is this some sort of example of a new HMTL recursive feature?

  4. Link target[ Go to top ]

    I guess the link goes here:

  5. Link doesn't work[ Go to top ]

    A quick search finds this article, I suppose this was the source article.

  6. You mean[ Go to top ]