News for hackers. Stuff that matters.
Re:No Java 7, The End Game by mcantelon on Monday October 11, 2010 @10:46PM (#1782115)
Seeing as Google has its own Java-like VM, what would stop Google from creating its own spec and Apache, and the rest of the Java community, following this spec? Can Oracle's patent arsenal stop the Java community from forking?
Re:No Java 7, The End Game by zmmmmm on Monday October 11, 2010 @11:36PM (#1782225)
Yes. I can't help thinking that if I was Google, I would be working on an alternative language that compiles directly to Dalvik bytecode as fast as I could. Heck, I'd probably just be grabbing something like Go and throwing 10 pHDs at it.

This would help them in many many ways. Firstly it would demonstrate to the courts that Dalvik is not specifically a Java VM. This clears them of several legal challenges (still leaving some).

Secondly and more importantly, it would up the stakes with Oracle tremendously. Having Google actually abandon Java on Android due to legal concerns would be a huge blow to Java. Especially if Google did so in a way that enabled existing Java applications to be ported easily (by adopting the Apache Harmony libraries, utilizing their existing dexer to enable people to run their existing Java code while picking up Google's replacement language for new code). They'd have to work around any patent violations in the VM which might have some performance impact but I'd still assume it is possible.

It would basically change the game to a lose-lose proposition for Oracle - win the court case, get some money, but lose Java. Lose the court case, effectively still lose control of Java.

Re:No Java 7, The End Game by mhw on Tuesday October 12, 2010 @04:54AM (#1782761)
> I can't help thinking that if I was Google, I would be working on an alternative language that compiles directly to Dalvik bytecode as fast as I could.

Swapping the language out is probably the smaller part of the problem. The dependency that every application has on the Java-based runtime libraries are the bigger problem.

> Heck, I'd probably just be grabbing something like Go and throwing 10 pHDs at it.

Go already has a working ARM code generator, so you could potentially skip the Dalvik step completely and ship native code. I think you'd still need to put some effort into building a set of Android libraries for Go though.

Re:No Java 7, The End Game by anonymous245 on Tuesday October 12, 2010 @11:41AM (#1783766)
Why do you think Google picked Java in the first place (and not a "really" open language like C++, Javascript, or Python)? To appeal to as many developers as possible on Day 1.

Further, Google as a company seems to have drunk the Java Kool-Aid (e.g., Closure compiler is written in Java, GWT uses Java as source language, and I hear Java is one of the three "blessed" languages (others being C++ and Python)). Personally, I think C++ would have been a better choice for the first project, and Python for the second one.

It's highly unlikely they're going to stop using Java on Android.

Re:No Java 7, The End Game by technomancy on Tuesday October 12, 2010 @12:11AM (#1782284)
> Firstly it would demonstrate to the courts that Dalvik is not specifically a Java VM.

This is already pretty clear; you can run Lua, Scala, Javascript, Scheme, Ruby, and many other languages on Dalvik.

Re:No Java 7, The End Game by zmmmmm on Tuesday October 12, 2010 @12:45AM (#1782344)
I'm not so sure.

A "JVM" is not a Java language interpreter anyway but a Java byte code interpreter. AFAIK all those other languages only run on Dalvik by first being compiled to Java byte code format, thus it is arguable that they are all "Java" as far as the VM goes.

What Google needs is something that compiles directly to Dalvik's own native format which has no "Java" at all in the pipeline.

Re:No Java 7, The End Game by technomancy on Tuesday October 12, 2010 @01:07PM (#1784075)
> AFAIK all those other languages only run on Dalvik by first being compiled to Java byte code format

You seem to think the JVM bytecode format is specific to the Java Programming Language™; why is this?

Admittedly Sun has muddled things up here by using the word "Java" to mean many separate things.

Re:No Java 7, The End Game by loewenskind on Tuesday October 12, 2010 @03:12AM (#1782590)
wtf? You apparently don't know much about the JVM because AFAIK it was the first VM people started targeting other languages at.
Re:No Java 7, The End Game by loewenskind on Tuesday October 12, 2010 @04:36AM (#1782726)
Anyone care to explain the downvotes? The poster I replied to claimed that Dalvik is different because people target different languages at it. Not only do people do this for the JVM, I think it was probably the first VM where people did this.
Re:No Java 7, The End Game by dchest on Tuesday October 12, 2010 @06:39AM (#1782904)
Easy: read the first 7 words of your post.
Re:No Java 7, The End Game by WalterBright on Tuesday October 12, 2010 @04:46AM (#1782744)
The UCSD P-system was a VM that ran several languages, and was at least a decade older than the JVM.
Re:No Java 7, The End Game by loewenskind on Tuesday October 12, 2010 @06:15AM (#1782862)
Ok, so that makes my "AFAIK" statement incorrect, but that doesn't affect the point nor explain the down votes.
Re:No Java 7, The End Game by corprew on Tuesday October 12, 2010 @11:49AM (#1783793)
things that will get you downvoted include statements like "wtf, you apparently don't know..."

1) impolite. 2) your comments should concentrate on what you can add to the convo, not what others haven't.

I mean, it also doesn't help that your statement was incorrect (P-system as mentioned), but being rude in what is ideally a civil forum dedicated to a stated purpose is not helpful.

Re:No Java 7, The End Game by technomancy on Tuesday October 12, 2010 @12:03PM (#1783847)
> The poster I replied to claimed that Dalvik is different because people target different languages at it

Reading comprehension, bro. Give it a try.

The Dalvik VM, like the Java Virtual Machine, is quite capable of running languages that aren't Java. There's nothing controversial or incorrect about that statement.

Re:No Java 7, The End Game by davisp on Monday October 11, 2010 @11:50PM (#1782251)
Let me preference this as I'm not a Java guy, but I've been reading a bit since Oracle filed suit because of the ASF angle.

From what I understand, the Apache Harmony project was doing a clean room implementation of the Java standard library. There was a clause somewhere (I haven't researched the exact text of this) that said something along the lines of "You must pass the TCK (Java's language test suite sort of like rubyspec http://rubyspec.org/) to be a 'compatible implmentation'," or some such.

Apache Harmony people started writing code and when it got time to say, "Ok, can we have the TCK to validate this?" Sun said, "Yes, as long as you promise no one will run your shit on mobile phones."

If you know the ASF, this sort of thing is wildly against their core mission: to make unencumbered software. So they gave Sun-Now-Oracle the finger.

Now, we need to cover a few bases here. Apache Harmony is not a VM, its an implementation of the standard library. The patent issues Oracle sued over were related to the Dalvik VM. The important point here is that the Dalvik VM is not Java. Its an interpreter for byte code. The byte code that runs on Dalvik will not run on any other VM. People think that Android Java is Java, but its not. Android Java is Java that's been compiled to JVM bytecode and then been translated to Dalvik bytecode (again, IIUC).

The basic point is that 'The Java Language' is not a JVM. It is not a standard library. But there's some weird ass 'Certified Java' thing that can't be obtained unless you give up rights, even though Java is open source.

My reading of this IBM/Oracle tryst is that IBM decided that it could get a "TCK certified" Java implementation by backing OpenJava.

Which is a long way of saying, no, Google/Apache probably can't just create a new Java spec. The JCP et al will prevent such things. Perhaps they could fork and make a RangerRick language that was source level compatible, but something tells me these people employ too many lawyers for that to go over well.

Re:No Java 7, The End Game by bad_user on Tuesday October 12, 2010 @02:07AM (#1782482)
> Apache Harmony is not a VM, its an implementation of the standard library.

It's both, and Harmony is an implementation of Java SE.

Also note the following quote from JSR 270:

"""Nothing in the licensing terms will prevent open source projects from creating and distributing their own compatible open source implementations of Java SE 6, using standard open source licenses."""

That's a broken promise, although I don't think it is legally binding because the term "open source license" they could argue it is something that comes with code (since the trademark for "open source" could not be obtained by OSI).

But for me as a Java user, a broken promise is a broken promise.

I never viewed Java as being a dangerous platform, not even when OpenJDK didn't exist. That changed.

Re:No Java 7, The End Game by points on Tuesday October 12, 2010 @04:16AM (#1782693)
How is it a dangerous platform? It's still installed everywhere, it still works, it's still useful. Nothing has really changed IMHO
Re:No Java 7, The End Game by hga on Tuesday October 12, 2010 @08:23AM (#1783074)
Well, it's got a new steward, Oracle, that's not exactly engendering trust in certain areas such as hemorrhaging key employees and suing Google's Dalvik using VM patents (and the company does not exactly have a nice reputation). Plus as the grandparent noted, Sun's broken promise is clearly going to stay broken and I'll note that various Oracle positions have completely changed now that they own Java(TM).

On the other hand, one might say that shedding some of these employees is OK or better and finally getting decisive on moving forward on Java 7 is good ... and the two might not be entirely unrelated.

I don't know the inside story and who's to blame, but it's patently obvious that Sun's stewardship of Java was serious failing at the time of the acquisition and for some time before then. Java 7 wasn't converging on getting finished in the foreseeable future and as I understand it the JCP process wasn't being used for it. Note that in a couple of months it will have 4 years since the release of Java SE 6 (prior to 7 the releases 3 through 6 each took 2 years (http://en.wikipedia.org/wiki/Java_version_history)).

Re:No Java 7, The End Game by davidw on Tuesday October 12, 2010 @01:59AM (#1782469)
> Apache Harmony is not a VM, its an implementation of the standard library.

Harmony is a full implementation, which means that there's a VM too. Google didn't use it in Android, though.

Re:No Java 7, The End Game by wmf on Tuesday October 12, 2010 @12:30AM (#1782307)
You're mostly right on, but IBM's proprietary J9 JVM has been TCK certified for years. Given that there are two open-source JVMs and one is clearly winning and the other is clearly losing (forever), IBM decided to switch to the winning team (even though open-source Java is kind of a "hobby" for IBM).
Re:No Java 7, The End Game by hga on Tuesday October 12, 2010 @08:35AM (#1783100)
Hobby or insurance?
Re:No Java 7, The End Game by jsankey on Monday October 11, 2010 @11:32PM (#1782217)
Google's Dalvik VM is specifically designed for mobiles. Presumably a lot of the engineering trade-offs made in light of that would make Dalvik relatively weak on servers. So I'm not sure Dalvik would be a great starting point for Google to fork Java.

Having said that, Google are heavily reliant on the Java platform, so they must have at least considered how they can protect the platform if necessary. Could they fork OpenJDK? Or at least support a fork? They certainly have the resources to do it, and Oracle's early moves don't bode well for a cooperative solution, so I wouldn't be surprised. Perhaps they will use the current litigation as a test re: the possible patent issues, although by the time that is resolved it may be too late to make a move...

Re:No Java 7, The End Game by bad_user on Tuesday October 12, 2010 @02:19AM (#1782498)
I don't think there's anything in Dalvik's bytecode that's specific to servers, and so they could have 2 versions of the VM: one for mobile phones, and one for the desktop/server.

If they'll release specs for Dalvik, make it a standard somehow, I'm pretty sure Apache will help.

Re:No Java 7, The End Game by wmf on Tuesday October 12, 2010 @12:32AM (#1782314)
Given that Dalvik is designed to run multiple Java processes with low memory overhead and fast startup, it might actually be pretty great for PaaS like, say, App Engine. That's just speculation, though.
Re:No Java 7, The End Game by cletus on Monday October 11, 2010 @11:29PM (#1782212)
Oracle's patents and trademarks.
Re:No Java 7, The End Game by rbanffy on Tuesday October 12, 2010 @11:56AM (#1783818)
And their army of lawyers.
Re:No Java 7, The End Game by tungwaiyip on Wednesday October 13, 2010 @12:38PM (#1787747)
Microsoft did that years ago. And that was widely decried as a move to fragment and subvert the Java community. What's the difference for Google to do this?