News for hackers. Stuff that matters.
Re:Google Launches Android Studio 2.0 by needusername on Monday November 23, 2015 @02:48PM (#10616813)
Not implementing the JVM spec means it's not a JVM. It's that simple.
Re:Google Launches Android Studio 2.0 by Rotten194 on Monday November 23, 2015 @02:56PM (#10616868)
OK but you're straying into pedantry. They have their own VM which runs bytecode generated by a translation layer. The only language supported by that translation layer is JVM bytecode. Therefore, they effectively have an implementation of the JVM.
Re:Google Launches Android Studio 2.0 by needusername on Monday November 23, 2015 @04:29PM (#10617434)
> OK but you're straying into pedantry.

You are stripping words of their meaning. There is a precise definition of what JVM means. ART isn't close to that and doesn't try to do that. There's nothing wrong with that, just don't call it a JVM.

You can translate Java into JavaScript and run it on a JavaScript VM. This doesn't make that JavaScript VM a JVM.

Pointing out that a language isn't Java simply because it has curly braces isn't straying into pedantry. Pointing out that something isn't ice simply because it is solid isn't straying into pedantry.

Re:Google Launches Android Studio 2.0 by s73v3r on Monday November 23, 2015 @04:42PM (#10617521)
They're not stripping anything of it's meaning; they're taking things to their logical conclusion. And there's really no way that you can claim the language used for Android development is not Java.
Re:Google Launches Android Studio 2.0 by needusername on Tuesday November 24, 2015 @01:52AM (#10619495)
> And there's really no way that you can claim the language used for Android development is not Java.

Even if the language used for Android development is were Java that wouldn't make ART a JVM. JVM is a VM specification that is not tied to the source but the byte code. In several cases (eg. method lookup) there a significant differences between Java and JVM semantics.

The language used for Android development is not Java. Again, there is a precise definition of what Java means (the language specification) and a test to verify what you have is Java (the TCK). ART/Android does not pass that test (it's not even close) and has no intention of doing so. For example Java semantics allow on the fly code generation. AFAIK ART/Android does not support this.

Re:Google Launches Android Studio 2.0 by bitmapbrother on Monday November 23, 2015 @05:02PM (#10617653)
It's clear you don't understand how the ART VM works so why not research it instead of trying to argue how you think it works.
Re:Google Launches Android Studio 2.0 by s73v3r on Monday November 23, 2015 @06:42PM (#10618155)
I know how it works. Claiming that someone who disagrees with you must not know how something works doesn't exactly prove your point.
Re:Google Launches Android Studio 2.0 by kuhn on Monday November 23, 2015 @03:41PM (#10617163)
Actually ART runs DEX bytecode not JVM bytecode so I'd argue it's not a JVM at all. By your definition anything that can translate Java to an intermediate representation is a JVM. Does that make LLVM a JVM?

https://llvm.org/svn/llvm-project/java/trunk/docs/java-front...

Re:Google Launches Android Studio 2.0 by AlphaSite on Monday November 23, 2015 @06:08PM (#10618012)
No, but ART's sole purpose is to run JVM translated programs. If you had another fm that run Java and other languages, you could argue that it is A JVM, but it is also a fm for what ever the language it runs.
Re:Google Launches Android Studio 2.0 by wstrange on Monday November 23, 2015 @09:32PM (#10618819)
I am guessing Oracle's lawyers will argue that is indeed the case. Let's hope they do not prevail
Re:Google Launches Android Studio 2.0 by gsnedders on Tuesday November 24, 2015 @10:49AM (#10621374)
They lost that argument against Google already.
Re:Google Launches Android Studio 2.0 by bitmapbrother on Monday November 23, 2015 @04:59PM (#10617634)
I would argue who is being pedantic. They have a Java SDK so of course they're going to have a JVM bytecode->DEX bytecode translator, but that doesn't mean their VM is even remotely close to a JVM as they don't even share the same architecture.
Re:Google Launches Android Studio 2.0 by s73v3r on Monday November 23, 2015 @04:41PM (#10617514)
They're using the Java language. Therefore, something which interprets bytecode coming from it is a java virtual machine. It's that simple.
Re:Google Launches Android Studio 2.0 by bitmapbrother on Monday November 23, 2015 @05:04PM (#10617664)
You couldn't be more wrong. The ART VM processes DEX bytecode and it is not compatible with JVM bytecode. They also use different architectures.
Re:Google Launches Android Studio 2.0 by s73v3r on Monday November 23, 2015 @06:42PM (#10618159)
Are you trying to say that the Java language isn't being used to write Android apps?
Re:Google Launches Android Studio 2.0 by bitmapbrother on Monday November 23, 2015 @09:03PM (#10618707)
No, I'm saying the relevance of Java ends at the source level. When the app is converted to DEX bytecode and then compiled to native code there is no dependency on the language or JVM as you seem to think.
Re:Google Launches Android Studio 2.0 by s73v3r on Tuesday November 24, 2015 @01:05PM (#10622339)
There clearly is, otherwise Google would have been able to update to Java 8 on Android by now.
Re:Google Launches Android Studio 2.0 by bitmapbrother on Tuesday November 24, 2015 @05:46PM (#10624118)
No, the reason Google isn't going to update to Java 8 is due to the litigation from Oracle. Google will likely transition to a new language so why invest time and money upgrading to a language they're going to abandon soon.