InfoQ

Interview

Neal Gafter Discusses Closures, Language Features and Optional Typing

Interview with Neal Gafter by Ryan Slobojan on Aug 11, 2008

Community
Java
Topics
Language ,
Language Design
Tags
Optional Typing ,
Languages ,
Closures ,
Language Features ,
JSR 308 ,
QCon ,
QCon London 2008
Summary
In this interview from QCon London 2008, Neal Gafter discusses upcoming language features in Java 7, superpackages, what closures are, the differences between the three major closures proposals (CICE, FCM and BGGA), optional typing systems for dynamic languages, and the next major language.

Bio
Neal Gafter is a software engineer and Java evangelist at Google. He was previously a senior staff engineer at Sun Microsystems, where he designed and implemented the Java language features in releases 1.4 through 5.0. Neal is coauthor of "Java Puzzlers: Traps, Pitfalls, and Corner Cases" (Addison Wesley, 2005).
Hi, my name is Ryan Slobojan and I am here with Neal Gafter. What's coming in Java 7?
For the sets of smaller language changes that you had mentioned, it sounds very similar to something which Joshua Bloch has mentioned in the past. Is it related to that?
And you had also mentioned super packages. Can you explain for us what super packages are?
The other major thing that you had mentioned is closures. Can you describe what closures are?
There has been some debate in the community around the assorted closures proposals that have been put forward. What are the differences between the different proposals?
One of the things that you have discussed in the past is the idea of optional typing. Can you describe that in more detail?
And are you able to make the same kinds of inferences that you can with a statically-typed language when you have the compiler doing optimization passes? It can make certain assumptions. Is it still possible to do such a thing with an optionally type language or are you restricted to doing that more at runtime, for instance?
What are your thoughts on what the next language will look like?
One of the comments was that a language can be successful so long as it resists the temptation to innovate. What are your thoughts on that?
show all  show all
JDK8 by Michael Neale Posted Aug 12, 2008 11:39 PM
Uhmm, that's called... by Tom Nichols Posted Aug 13, 2008 8:40 AM
Re: Uhmm, that's called... by Jesse Kuhnert Posted Aug 13, 2008 9:17 AM
One of the comments was that a language can be successful so long as it res by Ashwanth Fernando Posted Aug 14, 2008 12:32 PM
Re: One of the comments was that a language can be successful so long as it by Ryan Slobojan Posted Aug 15, 2008 6:47 PM
closures by serge boulay Posted Aug 14, 2008 3:43 PM
Fork Join framework? by Ashwanth Fernando Posted Aug 22, 2008 1:26 AM
  1. Back to top

    JDK8

    Aug 12, 2008 11:39 PM by Michael Neale

    Oh I will be an old man by then... come on - surely closures are more important then that?

  2. Back to top

    Uhmm, that's called...

    Aug 13, 2008 8:40 AM by Tom Nichols

    Scala. As much as I'm not used to Scala's syntax, they already do the optional typing, closures, and gobs of other things now. I admit the learning curve is very steep (I much prefer Groovy for its simplicity and near-zero learning curve if you're coming from Java.)


    But it sounds like Java (10-ish years from now :) ) is just going to turn into Scala. What's the point in that? You can write Scala now, and easily integrate it into your existing Java codebase since it all compiles down to the same bytecode.

  3. Back to top

    Re: Uhmm, that's called...

    Aug 13, 2008 9:17 AM by Jesse Kuhnert

    Did you watch the video? I think scala was addressed already.

    Whether or not you use or like scala though, both it and the java runtime would benefit from the vm enhancements required to fully implement the proposal.

  4. "One of the comments was that a language can be successful so long as it resists the temptation to innovate" - That statement was made by Josh Bloch in the future of java development discussion forum. Not Erik Meijers.

  5. Back to top

    closures

    Aug 14, 2008 3:43 PM by serge boulay

    I personally like BGGA but would be open to other proposals. I don't particularly like CICE because I just don't think it's enough to warrant a language change.

  6. "One of the comments was that a language can be successful so long as it resists the temptation to innovate" - That statement was made by Josh Bloch in the future of java development discussion forum. Not Erik Meijers.


    Whoops, my mistake - thanks for catching that!



    Ryan Slobojan

  7. Back to top

    Fork Join framework?

    Aug 22, 2008 1:26 AM by Ashwanth Fernando

    Neil, could you explain a little more about the fork join framework which was done by Doug Lea that is expected in Java 7? I think that was not discussed about in this interview.

Educational Content

Brian Marick on 4 Challenges and 5 Guiding Values of Agile Software Development

Brian Marick takes us through a quick tour of the most important values and challenges to adopting Agile successfully (they aren't the typical challenges and values we hear in the community).

Are You a Software Architect?

The line between development and architecture is tricky. Does it exist at all? Is an ivory tower actually needed? There's a balance in the middle, but how do you move from developer to architect?

Agile – A Way of Life and Pragmatic Use of Authority

The word 'authority' sometimes produces an allergic response in hard-line agilists. Freedom and authority – both are bad if misused and both are good if used in right spirit for a noble cause.

Getting Started with Grails, Second Edition

"Getting Started with Grails" brings you up to speed on this modern web framework. Companies as varied as LinkedIn, Wired, and Taco Bell are all using Grails. Are you ready to get started as well?

Using ITIL V3 as a Foundation for SOA Governance

Those familiar with only ITIL V2 often scoff at the thought that ITIL could serve as a governance framework for SOA. With ITIL V3, the focus of the framework shifted towards service-orientation.

Adrian Colyer on AspectJ, tc Server and dm Server

SpringSource CTO Adrian Colyer discusses AspectJ, SpringSource's dm Server and tc Server products, OSGi and Scrum.

Adam Wiggins on Heroku

Heroku's Adam Wiggins talks about Rails, Background Jobs, Add-Ons, Ruby, and how Heroku manages to work around Ruby's inefficiencies using Erlang and other languages.

SOA as an Architectural Pattern: Best Practices in Software Architecture

For Grady Booch the foundation of a good architecture is patterns, SOA being just one of many patterns. In this Second Life presentation, Booch attempts to bring more clarity on what architecture is.