Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.42!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!198.186.194.247.MISMATCH!news-out.readnews.com!transit3.readnews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: Java 8 Lambda binary snapshot Date: Fri, 11 Nov 2011 16:20:03 -0800 (PST) Organization: http://groups.google.com Lines: 33 Message-ID: <2244638.2045.1321057203472.JavaMail.geo-discussion-forums@prep8> References: Reply-To: comp.lang.java.programmer@googlegroups.com NNTP-Posting-Host: 2620:0:1000:2404:224:d7ff:fe69:5838 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1321057204 4836 127.0.0.1 (12 Nov 2011 00:20:04 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 12 Nov 2011 00:20:04 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2620:0:1000:2404:224:d7ff:fe69:5838; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T User-Agent: G2/1.0 X-Google-Web-Client: true Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9862 markspace wrote: > Lambda dev and the compiler group (and possibly others) published a > binary snapshot of the current state of lambdas and closures for Java. > > http://jdk8.java.net/lambda/ > > My advice is that all Java developers should be watching this very > closely. It's pretty much the future of Java development. > > I'm also looking for tutorials and other information on programing > lambdas and closures, so if anyone wants to help with that I'd > appreciate it. > > Here's a couple I found: > > > > > > I also found this book at the library and it seems to be excellent: > > I look at Java closures as just syntactic sugar for anonymous interface implementations, and conversely, as anonymous interface implementations as a poor-man's closure. This has two advantages. It keeps me out of the purist's dilemma, meaning I don't care that these aren't "real" closures. It provides a simple mental model for how to use them. That said, it helps to be at least somewhat aware of lambda calculus and the theory and practice of "real" closures to provide a motivating mental model. The Java perspective that closures boil down to SAM (single-abstract method) interface implementations makes it easy to reason about what they do. -- Lew