News for hackers. Stuff that matters.
Re:Native Clojure with GraalVM by bgorman on Saturday April 28, 2018 @04:14PM (#16949227)
What concerns you over the JVM versus say, GCC? Both are GPL licensed. Oracle has committed to openJDK being the reference implementation.
Re:Native Clojure with GraalVM by shakna on Saturday April 28, 2018 @05:03PM (#16949402)
Oracle vs Google over Android having the same interfaces comes to mind. [0]

[0] https://www.techdirt.com/articles/20180327/10431439512/insan...

Re:Native Clojure with GraalVM by pjmlp on Sunday April 29, 2018 @04:18AM (#16951167)
Neither Sun, nor Oracle ever had any issue with Java vendors that play by the rules and there are plenty of them.
Re:Native Clojure with GraalVM by shakna on Sunday April 29, 2018 @05:13AM (#16951284)
... And Google isn't a vendor here.

The API was made the same, but with Google's own implementation. Several juries and courts have heard the case and said that an API isn't copyrightable. CAFC dismissed the juries' findings without reasoning. It's been punted back to a new jury and court for a final hearing.

Re:Native Clojure with GraalVM by pjmlp on Sunday April 29, 2018 @05:39AM (#16951357)
Google admited several times that they haven't done a clean room reverse engineering and their emails prove they were consciously trying to work around Java licensing issues.

If Google cared so much, they could have bought Sun, but they were expecting it would just crash and burn, while the company would get away with it.

Sadly for them Sun actually got a buyer.

Re:Native Clojure with GraalVM by shakna on Sunday April 29, 2018 @06:51AM (#16951488)
> Google admited several times that they haven't done a clean room reverse engineering

> It is undisputed that Google copied verbatim the declaring code of the 37 Java API packages—11,500 lines of Oracle’s copyrighted code. It also copied the SSO of the Java API packages. Google then wrote its own implementing code.

The only problem with Google's implementation is the copying of the API.

---

> If Google cared so much, they could have bought Sun, but they were expecting it would just crash and burn, while the company would get away with it.

> The parties were unable to reach an agreement, in part because Google wanted device manufacturers to be able to use Oracle’s APIs in Android for free with no limits on modifying the code, which would jeopardize the “write once, run anywhere” philosophy.

> in any event that the jury must have found that Google did not act in bad faith

Google tried to get a reasonable license.

---

Even CAFC has said that if Google had not received advertising revenue from Android, their use of the APIs would have fallen under fair use. They are not a Java vendor.

Re:Native Clojure with GraalVM by pjmlp on Sunday April 29, 2018 @07:50AM (#16951640)
> They are not a Java vendor.

Last time I checked https://developer.android.com/ and https://developer.android.com/guide/platform/ has the word Java written all over the place.

So apparently they license an operating system, that makes use of Java, the language, and a subset of its standard library, to the point that it affects the sales of other Java vendors.

On my naivety it makes them a Java vendor to me.

Re:Native Clojure with GraalVM by shakna on Sunday April 29, 2018 @08:08AM (#16951687)
Strangely I can only find 'Java API'.

> The entire feature-set of the Android OS is available to you through APIs written in the Java language.

> Build toolchains, such as Jack, compile Java sources into DEX bytecode, which can run on the Android platform.

Seems they make no use of the JVM... Which would be required to vend it, no?

Re:Native Clojure with GraalVM by pjmlp on Sunday April 29, 2018 @10:11AM (#16952055)
A JVM is only one possible implementation of the Java language.

A few Java vendors on the embedded space also provide their own implementations, where .class files are converted either into their special VM format or straight into native code, before generating the firmware image for deployment.

Android uses Java the language, alongside a partial implementation of Java the standard library. The way it is implemented, is like any other programming language, a detail.

The fact that I can pick any Java library that compiles under that subset and use it on Android is expected by any Java developer.

Likewise embedded vendors that sell C compilers, even if they aren't fully ANSI C compliant, still acknowledge they are selling C compilers.

Re:Native Clojure with GraalVM by shakna on Sunday April 29, 2018 @05:23PM (#16953986)
You seem to be confused on a few points.

The court case is that Android infringes on Java SE, not the Java language. The question is if it infringes on the platform, not the language.

> Android uses Java the language, alongside a partial implementation of Java the standard library

That's not what is being disputed. They use an API written in Java, afterall.

> Likewise embedded vendors that sell C compilers, even if they aren't fully ANSI C compliant, still acknowledge they are selling C compilers.

And Android has a compiler for Dalvik and AR. That's not up for dispute either. That doesn't make them a vendor for Java SE. No more than the compiler in GCC makes the GNU project a vendor.

> A few Java vendors on the embedded space also provide their own implementations, where .class files are converted either into their special VM format or straight into native code, before generating the firmware image for deployment.

Usage of the Java brand requires any platform you ensure compatibility between your implementation and all other implementations [0]. The Android SDK is not compatible to the letter of that trademark license, as the Android SDK is both a subset, and also extends the Java API, so Google followed their license by not claiming it.

---

The only thing being disputed, is if their Java-written API is allowed to reflect Java SE's API.

Google is a library vendor for a library that reflects a subset of the host language. They also have their own compiler for a subset of the language.

> Likewise embedded vendors that sell C compilers, even if they aren't fully ANSI C compliant, still acknowledge they are selling C compilers.

This is more akin to claiming that a C++ compiler is infringing on a C compiler by both being compatible with a subset of the C language.

[0] > This resulted in a legal dispute with Microsoft after Sun claimed that the Microsoft implementation did not support RMI or JNI and had added platform-specific features of their own. Sun sued in 1997, and, in 2001, won a settlement of US$20 million, as well as a court order enforcing the terms of the license from Sun. As a result, Microsoft no longer ships Java with Windows.

Re:Native Clojure with GraalVM by pjmlp on Monday April 30, 2018 @03:14AM (#16956448)
Fact, Google ships an operating system with the userspace written in Java the language, making use of a subset of Java standard library.

Fact, Google created a schism on the Java compatibility story by only providing a subset, thus forcing Java developers to write Android specific libraries.

Fact, if Google actually cared about Java they would have bought the Java assets from Sun, after helping driving them to the ground, as they were aware Sun was short on cash and would never sue them.

Now we can all enjoy a broken compatibility story up to Java 8, while Java 10 is out there and the distance will only increase.

Android is just as bad for Java portability as J++ was.

But hey, it is the nice "do no evil" corporation against the big bad lawyer corporation.

Re:Native Clojure with GraalVM by shakna on Monday April 30, 2018 @04:24AM (#16956759)
I don't know what your problem is, and I don't know why you believe certain 'facts' that have never been presented at trial, but would clinch the case against Google.

I'm tired of reading legal documents to answer your complaints. You can read yourself, or continue ignoring the court case. Adios.

Re:Native Clojure with GraalVM by pjmlp on Monday April 30, 2018 @06:36AM (#16957395)
My problem is that Google just played a Microsoft, forked the Java eco-system, but because it is the beloved "Do no Evil " company of SV, it gets love support like yours instead of the hate Microsoft did exactly for the same result, while we Java developers have to workaround the fragmentation issues Google has brought into the Java world.

My problem is that I cannot pick any random Java library out of Maven and be 100% assured that it will run at all on Android.

My problem is that Android most likely will never move beyond its partial implementation of Java 8, as per Android P.

If it was for Google's wishes, Sun would have closed doors, hopefully no one would have bought the Java assets, they would get away with it, and we could all enjoy a Java language stuck at what was Java 6's subset.

Re:Native Clojure with GraalVM by shakna on Monday April 30, 2018 @07:30AM (#16957661)
> My problem is that I cannot pick any random Java library out of Maven and be 100% assured that it will run at all on Android.

You need to stop thinking of the Android SDK as Java, because it isn't. It has Objective-C to C similarities.

It doesn't have API compatibility, or bytecode compatibility or even the same class constructors.

Thinking they're pretending to be the same is going to cause nothing but frustration, and hurt you. It'll irritate and chafe more every time you have to touch that god-awful ecosystem.

> it gets love support like yours instead of the hate Microsoft

No Google does not get my love, I have ranted against their practices for years. This conversation has been about legalities, not ethics.

They suck as a company - but we have ecosystems built around compatible APIs, a legal precedent here would be awful for everyone. (Firefox's new extension API, the entire JS ecosystem, etc.)

Re:Native Clojure with GraalVM by pjmlp on Monday April 30, 2018 @10:17AM (#16958717)
> You need to stop thinking of the Android SDK as Java, because it isn't.

That is exactly my point, Google has broken Java's compatibility story, regardless if they have found a legal loophole to get away with it or not.

Objective-C and C are two completely different programming languages, where Objective-C is a superset of C. Any C compliant code is compilable by an Objective-C compiler.

It is not the same as what Google has done to Java.

Re:Native Clojure with GraalVM by nine_k on Sunday April 29, 2018 @09:42AM (#16951950)
This happened before Java went open-source.

(This is why it's so uncomfortable to make a closed-source thing a centerpiece of your product, unless you already own it.)

Re:Native Clojure with GraalVM by shakna on Sunday April 29, 2018 @07:24PM (#16954501)
Sun released the GNU Compiler for Java in 1998 [0], so I'll need a source for that.

[0] https://en.m.wikipedia.org/wiki/GNU_Compiler_for_Java

Re:Native Clojure with GraalVM by nine_k on Sunday April 29, 2018 @08:25PM (#16954800)
The compiler was never the problem; the API was.

> The Java language was released to the public in 1995, under the Sun Community Source License, making the source freely available but requiring that products using the code were maintained to the Java standard, and that any commercial derivative works were licensed by Sun.

> Over 2006 and 2007, due to pressure from developers, Sun changed the license of the various Java packages to use the GNU General Public License with a "classpath exception", allowing developers the needed access to make derivative works and with the ability to release applications with a different license. This led to the OpenJDK (Open Java Development Kit), first released in 2007.

> Android, Inc. was founded in 2003 by Andy Rubin, Rich Miner, Nick Sears, and Chris White to develop a mobile phone platform.[7][8] Google purchased Android in 2005 and continued developing the Android operating system.[8] During development of Android, Google wanted to incorporate the Java Standard Edition libraries. Google's executive chairman Eric Schmidt had approached Sun's president Jonathan I. Schwartz about licensing the Java libraries for use in Android. Sun offered a licensing deal of between US$30 and 50 million.

From https://en.wikipedia.org/wiki/Oracle_America,_Inc._v._Google...

In other words, API were not exactly free (for an outwardly noble purpose), and Google reused them before they were GPL-ed.

So that everybody now knows: don't do that. Either use truly free code, or properly license it.

Re:Native Clojure with GraalVM by shakna on Sunday April 29, 2018 @09:09PM (#16954989)
> The compiler was never the problem; the API was.

I'm aware, that's the crux of the case. I was asking you to prove the statement:

> This happened before Java went open-source.

Which you have disproved now. We have no argument there - Java was open source at the time.

> Sun offered a licensing deal of between US$30 and 50 million.

> The parties were unable to reach an agreement, in part because Google wanted device manufacturers to be able to use Oracle’s APIs in Android for free with no limits on modifying the code, which would jeopardize the “write once, run anywhere” philosophy.

They also required Google not extend the API, which is where the deal failed.

> In other words, API were not exactly free (for an outwardly noble purpose), and Google reused them before they were GPL-ed.

So far, all juries and all but one court case has found that an API is not copyright-able. We'll see, but a compatible interface doesn't appear to be something you can license.

Re:Native Clojure with GraalVM by nine_k on Sunday April 29, 2018 @11:01PM (#16955368)
I was not precise enough.

The problem stays: the licensing terms were not clear at the time, so while the source was available for looking ("open source"), it was not free enough (required licensing). Such was the understanding of both sides, because they talked about obtaining a license.

I should have said "before Java the platform had a permissive enough license".

Re:Native Clojure with GraalVM by blunte on Saturday April 28, 2018 @04:54PM (#16949370)
If I say how nasty Oracle and Ellison have been in general, people will require me to provide references. I don't feel like researching it. But you can, if you want to answer your own question.
Re:Native Clojure with GraalVM by Twirrim on Saturday April 28, 2018 @07:27PM (#16949966)
GraalVM (and OpenJDK on which it's based) are 100% open source, on a GPLv2 license. It doesn't matter much what Oracle and/or Ellison do, the sources are all out there.
Re:Native Clojure with GraalVM by DannyBee on Saturday April 28, 2018 @11:31PM (#16950575)
This is a super bad assumption. Given what we've already seen around GPL trolling (Mchardy et al), that may not mean a whole lot.

I would bet you a large amount of money Oracle would come after you anyway. It's just how they operate.

Re:Native Clojure with GraalVM by TJSomething on Saturday April 28, 2018 @08:07PM (#16950085)
My biggest concern is that there's an Enterprise Edition of GraalVM. I'm a little suspicious that the Community Edition will end up crippled and EE will cost more money than I'll ever want to spend.
Re:Native Clojure with GraalVM by Volt on Saturday April 28, 2018 @08:22PM (#16950128)
As long as the community can contribute to "uncripple" it relative to the enterprise version then there's no problem, no?
Re:Native Clojure with GraalVM by DannyBee on Saturday April 28, 2018 @09:10PM (#16950259)
Let's play your fantasy out for a minute. Imagine I hire a large and good enough team of engineers to duplicate any feature in the enterprise edition and contribute it within a day of being released, to the community edition.

Do you believe Oracle or anyone will accept that?

Because if not, that's a clear problem.

(FWIW I strongly doubt they would be okay with this)

Re:Native Clojure with GraalVM by Twirrim on Saturday April 28, 2018 @10:27PM (#16950447)
You still gain the benefit from having a nice faster GraalVM, and given it's open source, you could create a fork and encourage the community to use it as an alternative.

I'm sure if you were producing a much faster GraalVM, you'd soon get people to move away from Oracle's one to yours (MariaDB vs MySQL springs to mind as a comparison)

Re:Native Clojure with GraalVM by dig1 on Sunday April 29, 2018 @12:33AM (#16950710)
The problem here is what loophole a big company like Oracle can find, if they don't like you. They can't prevent you from doing a fork, but can easily sue you for not keeping copyright visible enough in project page README file.

Taking into account amount of resources they have, this will be enough to shut you down ;)

Re:Native Clojure with GraalVM by Twirrim on Sunday April 29, 2018 @11:25AM (#16952378)
So what you're saying is that despite decades of existence, and repeated legal cases attempting to destroy and invalidate it... you can't trust GPLv2?
Re:Native Clojure with GraalVM by DannyBee on Wednesday May 02, 2018 @04:55PM (#16981082)
Err, you clearly did not see what happened in europe
Re:Native Clojure with GraalVM by pjmlp on Sunday April 29, 2018 @05:41AM (#16951362)
In a perfect world we would be seeing all those nice improvements Google has brought to Java after rescuing Sun assets.