James Gosling language's 10th birthday features celebration, reflection.
The Java programming language turned 10 this year, and at the JavaOne conference in San Francisco last month, Sun Microsystems Inc. threw a big bash for its innovative technology, replete with a huge cake as well as a New Orleans-style ragtime band.
Meanwhile, James Gosling, the creator of Java as well as a Sun fellow and chief technology officer of the Santa Clara, Calif., companys Developer Products group, sat down with eWEEK Senior Editor Darryl K. Taft at the conference to discuss the ongoing adventure of Javawhere its been and where its going.
At some point a while back, you indicated that there might be a follow-up to Java from a language perspective. Is that still the case?
Weve got a variety of projects working on a variety of things. Weve been doing a bunch of work to make the Java VM [virtual machine] a lot friendlier to some of the stranger dynamic languages. A lot of that will show up in the next version. Weve done a lot of work with different languages as targets. We have one rather strange language project going on in Sun Labs. Its centered around the combination of numerical computing and extreme multithreading.
That ones been going on a while, though, hasnt it?
Well, yeah. That ones a really hard science project. Its got a ways to go before it produces anything real. There are a lot of other hard problems in building something that scales to hundreds of thousands of threads and does the kind of concurrency that people need in numeric computing. Its been an area of research for, literally, decades.
Javas pretty far along on the scale in terms of its effectiveness at doing multithreading. And for the kinds of applications that most people write, it works extremely well. But when you get to numerical applications where there are a lot of cross-thread data dependencies, life gets very difficult. And its generally an unsolved problem.
Is anybody close to solving it, other than what you guys are doing?
I dont know about close. There are a lot of people trying a lot of different things. Were sort of going down this road because its very clear that serious multithreading with a large number of chords is the future. And the stuff that we do now works really well for the enterprise-class apps. And we know this will scale to a few thousand processors.
You cant buy machines that big yet, but you will be able to at some point. But that depends on the interesting properties of enterprise apps that are different from scientific apps. So its a really interesting research topic.
I saw [Sun Vice President] Graham Hamiltons talk ... and he listed some tentative things that might go into "Dolphin" [the code name for Java SE 7]. Which of those do you think must go in?
Boy, I dont know that I have anything that "must" go in.
What would you like in?
Oh, there are all kinds of things Id like in. Small-object support, thats been on my list for a long time.
Hamilton mentioned things such as direct XML support, something about cross-package references and method references.
Well, we do have ways to do cross-package references in different languages at different things. They all have their problems.
Method pointers? That ones been a long discussion for years. Id actually be surprised if we ended up doing anything like that, if only because using classes properly does method pointers pretty well. And the things that people do with proxy objects now deal with method pointer situations pretty well.
I guess I wouldnt put those on my list. My list would contain things more along the lines of yet-more-interesting stuff in Swing. Theres a lot of stuff we could do in rendering still, even though our 2-D rendering has gotten pretty good.
Direct language support for XML has been a debate for some time. All these things, at an abstract level, sound like the thing to do. When it comes down to the details, one of the problems ends up being that, using Java today, you actually get pretty good access to XML. And what it would end up being is sort of syntactic sugar that makes certain constructions simpler, but can you come up with something that actually makes peoples life better by enough that its worth adding that baggage?
I was at OOPSLA [the Object-Oriented Programming, Systems, Languages and Applications conference] in October, and when asked whether C# was an homage to, or owed its heritage to, Java, Anders Hejlsberg [the Microsoft Corp. architect who designed C#] said: "Ive seen further when standing on the shoulders of giants." And Im curious to know what shoulders were you standing on when you came up with Java?
Oh, hundreds of them. Niklaus Wirth with Pascal, [Ole-Johan] Dahl and [Kristen] Nygaard with Simula, Alan Kay and company with Smalltalk, Ken Thompson and Dennis Ritchie and the whole crowd in the C world, all the folks at DEC [Digital Equipment Corp.] that worked on Modula. There are a lot of ideas from LISP in there, too. Its from all over the place.
Why do you think Suns development tools never commanded a greater share of the market?
Well, were on our track to getting there. You look at the adoption curves, and were doing pretty well.
Suns earlier history with developer tools is filled with a lot of stupid stuff. One of the things that was kind of crippling for us early on is that we really wanted to depend as much as possible on things the community was doing. So there were a few companies like Symantec [Corp.] and Borland [Software Corp.] that were doing interesting tools, and if they were doing a good job, we were happy.
But the dynamics of the tool market are that, ever since Microsoft introduced Visual Studio and dropped the price to essentially zero, its pretty much impossible for any company to sell tools for any price that comes close to covering their costs. And that turned the tools world into one where the only people who could produce tools had sort of an indirect business model. Microsofts business model around tools is all about developer lock-in to their platform.
I know this has been bandied about, but do you think there will ever be any cooperation between Eclipse and NetBeans at some level?
At some level, maybe. Its really hard to tell. The architectures at the core of both of them are different enough that its really, really hard to line things up. Were certainly achieving a fair amount of interoperability. Weve got pretty good import filters; we both handle similar kinds of data objects, like Ant scripts and such. Weve put a [lot] more effort into the specialized development areas, like J2EE [Java 2 Platform, Enterprise Edition] and J2ME [Java 2 Platform, Micro Edition], and a lot of interesting stuff in the cell phone world.
Will we see a fully conformant open-source implementation of Java SE from Sun?
Well, there are lots of different answers. One is "beats the hell out of me." You never know what the future will bring.
If you look at the way that we interact with the communitythe way that we have all of our sources out therewe have a lot of people from the community that contribute the way any open-source projects do.
Really, the major thing thats an obstacle to truly being open source is the nits in our license about testing. And having our license require testing disqualifies us from the religious blessing of the open-source community.
And when we talk to Java developers and big sites that use Java, interoperability and reliability of these systems is really, really important to them.
Right. But do you think that theres a possibility someone else could do it?
Oh, theres certainly a possibility.
Well, what kind of disadvantage would that put Sun in?
I dont think it would make a whole lot of difference. When you look at the J2ME world, there are dozens and dozens of compatible, interoperable JVMs [Java virtual machines] out there. But of course they all do the testing. We have a test suite, and they all run that.
And, like the Harmony folks at Apache [The Apache Software Foundation], they say theyre going to run through the tests. If they do that, thats OK.
So the nice thing about AJAX is it encapsulates the nightmare and it makes that easy to use.
Do you think weve achieved the overall promise of software reuse that was expected when object-oriented programming was invented?
You look at the number of components that people are reusing, and you look at all the different JSRs [Java Specification Requests], and most of them are producing libraries of components. And if you look at many commercial shops out there, their jobs are producing components.
Whether theyre user-interface components or enterprise bean components or components from private APIs, the Java world is just filled with components. And its really been pretty spectacular to see that.