InfoQ

Interview

Neal Gafter Discusses Closures, Language Features and Optional Typing

Interview with Neal Gafter by Ryan Slobojan on Aug 11, 2008 10:00 PM

Community
Java
Topics
Language ,
Language Design
Tags
QCon ,
Languages ,
Language Features ,
JSR 308 ,
QCon London 2008 ,
Optional Typing ,
Closures
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

Bindings, Platforms, and Innovation

This presentation focuses on the Internet and separating myth from fact, history from the future, and the mundane from the imaginative. Bob Frankston presents a vision of what could and should be.

Orchestrating Long Running Activities with JBoss / JBPM

This article explores the use of JBoss and jBPM to implement design solutions that effectively address the issue of orchestrating long running activities.

Neo4j - The Benefits of Graph Databases

This presentation covers the use of graph databases as an optimal solution for data that is difficult to fit in static tables, rapidly evolving data or data that has a lot of optional attributes.

Realistic about Risk: Software development with Real Options

This session introduces Real Options and shows how it can help in running your project. Real Options is a decision-making process that can be used to manage risk.

Communication Flexibility Using Bindings

This article discusses the use of bindings on services and references (including the instance of non-configured bindings) as the means to implement SCA communications in a Web and SOA environment.

Writing DSLs in Groovy

After a short introduction to DSLs, Scott Davis plays with the keyboard showing how to approach the creation of a DSL by typing working snippets of Groovy code that get executed.

Scaling Agile with C/ALM (Collaborative Application Lifecycle Management)

IBM Rational and InfoQ present, Scaling Agile with C/ALM, an eBook showing organizations how to become “finely tuned software delivery machines” by enabling team integration and scaling.

Concurrent Programming with Microsoft F#

Amanda Laucher presents a real life enterprise application written in F#. She shows actual code snippets, explaining design decisions and suggesting how to use some of the F# constructs.