Poll Result: Expected Impact of Lambda Expressions (Closures) on Programming with Java 8
Brian Goetz recently provided new details on the status of JSR 335 in his OpenJDK document State of the Lambda: Libraries Edition. Project Lambda is a fundamentally important enhancement to Java 8. And, based on the response of developers in our recent poll asking how Lambda Expressions in Java 8 will affect their programming, the Java community is excited by the prospect of being able to implement closures in their applications.
A total of 437 votes were cast, along with a single comment. The exact question and results were:
To what extent do you expect Lambda Expressions (closures) in Java 8 to affect your programming?
- 34% (148 votes) - They'll have a huge effect
- 20% (88 votes) - They'll make some difference
- 16% (68 votes) - No immediate effect (who knows when I'll finally be using Java 8?)
- 9% (38 votes) - No effect, since closures aren't pertinent to the programming I do
- 15% (64 votes) - I don't know
- 7% (31 votes) - Other
These results (which, we recognize, are non-scientific) suggest that a great many Java developers consider the addition of Lambda Expressions to Java a very significant milestone.
Indeed, Java developers have been waiting for the inclusion of closures in Java for a very long time. Most of the long delay between Java 6 and Java 7 was filled with anticipation/hope that closures would be included in Java 7. However, as the years passed, and the uncertainty increased, the decision was ultimately made to split off some aspects of what was originally to be included in Java 7 into the next major release (i.e., Java 8), in order to facilitate getting key functionality out to the community sooner. I think most Java developers would agree this was a good decision (hmm.. this gives me an idea for a future poll!)...
But, getting back to this poll's results: a third of voters say Lambda Expressions will have a huge effect on their programming once Java 8 arrives; and more than half of the voters say closures will make at least some difference in their programming. We can assume that some of the 16% who selected "No immediate effect" will probably find Lambda Expressions useful once their platform reaches Java 8 (though that may be a long time from now).
rdohnawonders if there might be a bit too much enthusiasm for closures in Java, commenting:
They will be used even in cases where it only makes things more complicated than required.
Undoubtedly, that will happen in some cases. All the more reason to have experienced architects carefully communicating the design to the more junior developers...
In any case, it's been a long wait for closures / Lambda Expressions in Java. The wait isn't over yet, but it will be over soon; and developers are eagerly anticipating their arrival.
Current poll: Java Magazine
Our current Java.net poll asks Do you read Java Magazine?. Voting will be open until Friday, May 11.
Here are the stories we've recently featured in our Java news section:
- Roger Brinkley presents Java Spotlight Episode 81: Henrik Ståhl on Java 7 update 4;
- Arun Gupta demonstrates Java EE 6 Sample Application on WebLogic 12c: Conference Planner (TOTD #176);
- Ludovic Poitou speaks About OpenDJ and Hotspot JVM G1;
- Tori Wieldt presents Videos: Meet the Java Experts;
- Geertjan Wielenga updates Fighting Hunger & Poverty via Java with the NetBeans Platform (Part 2);
- Dustin Marx describes Specifying Appropriate NetBeans JDK Source Release;
- Henrik Stahl announces Oracle JDK and JavaFX SDK now GA on Mac OS X;
- Heather Van Cura announces JCP.org site improvements released this week;
- Jean-Francois Arcand demonstrates Transparently adding WebSockets to your application using SwaggerSocket;
- Eclipse invites you to Provide Your Input to the Eclipse Community Survey;
- Geertjan Wielenga discovers Images in Navigator in Upcoming NetBeans IDE 7.2; and
- Terrence Barr hopes to See You Next Week in India: JavaOne in Hyderabad + JUG Events.
This is an informal overview of the major proposed library enhancements to take advantage of new language features, primarily lambda expressions and extension methods, specified by JSR 335 and implemented in the OpenJDK Lambda Project. This document describes the design approach taken in the rough prototype that has been implemented in the Lambda Project repository...
Subscriptions and Archives: You can subscribe to this blog using the java.net Editor's Blog Feed. You can also subscribe to the Java Today RSS feed and the java.net blogs feed. You can find historical archives of what has appeared the front page of Java.net in the java.net home page archive.