r/Android • • May 11 '16

Sun’s Jonathan Schwartz at trial: Java was free, Android had no licensing problem

http://arstechnica.com/tech-policy/2016/05/suns-jonathan-schwartz-at-trial-java-was-free-android-had-no-licensing-problem/
2.5k Upvotes

273 comments sorted by

611

u/elementsofevan Nexus 6p|Moto 360|Nexus 7 2012|Google Glass|Chromecastv2 May 11 '16 edited May 11 '16

Not really surprising as he said basically the same things during the first trial.

I just want a judge to rule that APIs aren't patentable copyrightable so that we can all move on. I have been hearing about this BS since the 90s

155

u/Natanael_L Xperia 1 III (main), Samsung S9, TabPro 8.4 May 11 '16

This is about copyright on APIs, not patents.

47

u/elementsofevan Nexus 6p|Moto 360|Nexus 7 2012|Google Glass|Chromecastv2 May 11 '16 edited May 11 '16

I think you are correct. I wasn't thinking fully and confused the two. n

3

u/macschmayonaise May 12 '16

I agree. But I mean if you are gonna say your API is free and then sue people for using it that is just a shitty business practice though.

0

u/[deleted] May 11 '16

[deleted]

287

u/rdk70 May 12 '16

2

u/[deleted] May 13 '16

That’s amazing.

20

u/[deleted] May 12 '16

I quite like Solaris. I realise that it's just IP from the Sun acquisition so it pretty much just proves your point but I've had Solaris boxes run until the hardware has broken. Literally years of consecutive uptime.

7

u/Drost90 May 12 '16

My Solaris experience is limited to what I worked on in the Navy, we had only hours of up time on our gear, if it was actually being used.

3

u/crashdoc May 12 '16

hours of uptime? From Solaris? Can it be story time? This sounds like it could be really interesting or really sad.

2

u/[deleted] May 12 '16

Oracle can go back to ripping off their customers

meh. if you're foolish enough to be an oracle customer, you can get ripped off. As long as they can't shoehorn their licensing fees into products they didn't make, i'm happy.

4

u/[deleted] May 12 '16

May i ask (out of curiosity) - is Oracle on the way out? Is it being replaced by specializing small startup?

13

u/Narcolepzzzzzzzzzzzz May 12 '16

Oracle, like IBM, has many non tech centric clients who don't have strong engineering departments and aren't likely to switch to anything else simply because of the real or perceived risk that doing so will affect the operation of their business.

It's more likely that customers of Oracle/IBM will be replaced in their market by new competitors that do things more efficiently and cheaply without Oracle, but that's still going to be pretty rare.

2

u/longfalcon S7 Edge May 12 '16

there arent any real competitors to Oracle DB at the high end, unless you could SQL Server and/or DB2. as long as they have that gravy train, they will still be around.

1

u/dylan522p OG Droid, iP5, M7, Project Shield, S6 Edge, HTC 10, Pixel XL 2 May 13 '16

Salesforce databases configured by third parties are pretty legit.

6

u/souldrone Mi 11i May 12 '16

They are far too big to fail bigtime at this time. They do like money, they love money actually.

3

u/[deleted] May 12 '16

companies like oracle, ibm and sap wont go away for some time... too big and enterprise rely on them, imo...

0

u/[deleted] May 12 '16

[deleted]

27

u/formerfatboys Samsung Galaxy Note 20U 512gb May 12 '16

Hahahahaha Fatwire.

What a fucking shitshow that was. That used to run Playboy.com when I was there. We could publish only ONCE a day because it took so long to do. If we had to update something it had to happen the best day because once we pulled the lever...who knew what would happen.

-2

u/9gxa05s8fa8sh S10 May 12 '16

username checks out

0

u/[deleted] May 12 '16

[deleted]

10

u/fistacorpse S7 Edge (SM-G935F) May 12 '16

Hyper-V is built into recent versions of Windows (8 and 10?) and it's pretty solid for most things. It's not as feature rich in some areas - for example, I had problems with USB passthrough to a Linux VM in Hyper-V, but was able to get it working with Virtualbox.

3

u/Lampwick May 12 '16

I had problems with USB passthrough to a Linux VM in Hyper-V, but was able to get it working with Virtualbox.

I think USB passthrough is a particular weakness of Hyper-V. We had nothing but problems using it to interface with some legacy gear whose controlling software only ran on XP. Moved the virtual XP installs to VMware and they've worked fine since.

3

u/Fairuse May 12 '16

For desktop user, Hyper-V doesn't have graphic acceleration. Thus desktop GUI's are super laggy.

0

u/iamdelf May 12 '16

One thing I can think of that Hyper-V does that the others don't handle well on Windows is direct drive pass through. It lets you run a VM with ZFS directly on the drives where VMware only lets you pass the entire controller to the VM.

1

u/KingOfTek i7-3770k, 16 GB RAM, Evga GTX 760, 2x256 GB SSDs, 10 TB of HDDs May 12 '16

But why would anyone EVER want to run ZFS on top of Windows? Even if it's Windows Server, say goodbye to your uptime.

4

u/goobervision May 12 '16

KVM is pretty good, the XEN based hypervisors are good but not as quick. VMWare has a nice GUI and everything but once you scrape away the features you don't need then there's not much between them.

Graphics is a biggie for a number of people, I'll admit I'm lazy and use VMWare for it's integration but I really don't need to.

1

u/[deleted] May 12 '16

VMware player is free for personal use

1

u/haloguysm1th May 12 '16

I believe vmware has a free vm for home use.

0

u/[deleted] May 12 '16

[deleted]

5

u/namedtuple May 12 '16

Why? Genuinely asking.

0

u/[deleted] May 12 '16

[deleted]

8

u/elitexero May 12 '16

On the other hand, I've had nothing but issues with the USB passthrough with VirtualBox in the past. Have never had an issue with VMWare.

If VMWare is causing blue screens and other similar issues, it sounds like a hardware issue being aggravated by virtualization, not a problem with VMWare.

3

u/sashir May 12 '16

We use VMWare enterprise wide, its fairly smooth and trouble free.

2

u/Wartz Epic 4g Touch Kitkat 4.4.4 May 12 '16

VMware / esxi are industry standards though, it's foolish not to learn how to use them

0

u/[deleted] May 12 '16

[deleted]

→ More replies (6)

2

u/youstolemyname May 12 '16

3D acceleration works much better in VMWare

1

u/FlaveC Pixel 8 Pro May 12 '16

VMware somehow managed to corrupt my Windows 7 installation -- every time I tried to do an update it would BSOD. It would even BSOD when I tried to uninstall the fricking thing. And when I looked for fixes I found many other people with similar problems but no fixes.

When I moved to W10 I swore to never let VMware anywhere near my installation and switched to VirtualBox. Absolutely no problems.

1

u/barjam May 12 '16

This isn't true. VMware is the superior product of the two. VMware (the company) is responsible for esxi which is the gold standard for VM technology where virtualbox is a hobby product.

I use both. VMware for real work and on servers and virtualbox for just messing around.

0

u/[deleted] May 12 '16

[deleted]

15

u/elementsofevan Nexus 6p|Moto 360|Nexus 7 2012|Google Glass|Chromecastv2 May 12 '16

Which is why I said I want a judge, not this judge.

4

u/danhakimi Pixel 3aXL May 12 '16

The supreme court denied cert. This is binding precedent in the circuit. This shut is set, get used to it.

0

u/[deleted] May 12 '16

[deleted]

156

u/bunkoRtist May 12 '16

Yes creating good APIs is hard, but the API isn't a product: it's the specification for how to talk to a product. That something is hard to do well doesn't inherently make it copyrightable. In the case of an API, given a particular task to be performed by the underlying code, doing it "well" is likely going to result in convergent solutions to the API. If the API is simply the "solution" to a well-known problem (how to open a file, for instance) then it isn't a creative work. An extension of the same idea is that mathematicians don't get to copyright (or patent) the solutions to problems they solve, regardless of the difficulty.

Because of the natural convergence of APIs, it is absolutely not in the public interest to allow APIs to be copyrightable. If there's real innovation, then it will be protected by a patent, which would describe how those APIs come together in a unique and non-obvious way to solve a valuable problem.

1

u/iceardor May 12 '16 edited May 13 '16

I wonder if their request for copyright will fall back onto the purpose of copyright "in the public interest", or if interpretation of intent of the law isn't allowed, only the interpretation of the written law.

1

u/bunkoRtist May 13 '16

IANAL but I believe at the district court level they won't wade too deeply into that kind of stuff. That's more circuit court/supreme court.

-3

u/[deleted] May 12 '16

Good argument...not sure i agree but am unable to articulate why.

→ More replies (3)

22

u/WiglyWorm LG G2 - stock May 12 '16

Making an API copyrightable is one thing.

Opensourcing an API and then retroactively enforcing copyright is completely a different thing. And that's what Oracle did in this case.

→ More replies (6)

12

u/HaydenSikh May 12 '16 edited May 12 '16

Copyright is meant to cover works which are creative rather than functional, and functional works are meant to be covered by parents. But parents have a limitations in terms or restricting usage for interoperability, if I recall correctly, which is why things like reverse engineering are allowed.

From what I can remember of the first round, the major copyright claim -- that the implementation was copied -- was determined to not hold up since Google mostly did a clean room implementation. The exceptions were don't JUnit tests, which a subcontractor firm copied from Sun, and TimSort, the creator of which thought he was donating his code to a more permissive license. In both cases the offending code was removed in what the court deemed a timely manner.

Since the functional aspects of the API aren't covered by copyright, and indeed the spec itself is open source, the only thing left was the "structure and organization" of the API implementation.

From what I was able to gather, that was then essentially saying the generated Javadocs for five classes looked similar. Almost all of those similarities are dictated by either the API or Java idioms, such as putting what methods in what class or defining getters next to setters. I doubt any Java developer is willing to active much creativity to that level of API authorship, let alone $6 billion worth.

Edit: found some articles from the time. The actual phrase was "sequence, structure, and organization" (SSO) and the contention was for 37 packages rather than just 5 classes. Here is one article from that time on groklaw, which also covers the briefings submitted to the court about how Oracle was trying to assert copyright on utilitarian works which perhaps could have been patented but weren't.

9

u/elementsofevan Nexus 6p|Moto 360|Nexus 7 2012|Google Glass|Chromecastv2 May 12 '16

http://patentlyo.com/patent/2014/05/copyright-subject-matter.html

I have read a quite a few pieces from both sides but this cemented my opinion on the subject, atleast until someone else can persuade me otherwise.

→ More replies (2)

12

u/aquarain May 12 '16

Much of the API is, in fact, cribbed from C and other languages.

6

u/dccorona iPhone X | Nexus 5 May 12 '16

The syntax is. I don't know if the APIs are original or not, but the majority of them certainly don't come from C.

2

u/aquarain May 12 '16

Oh please. You think max() and min() sprung into existence with Java?

2

u/dccorona iPhone X | Nexus 5 May 12 '16

You think the Math package constitutes anywhere near a majority of the Java API? Collections, threading, concurrency, IO...the list of major Java APIs that are nothing like C or C++ goes on and on and on.

0

u/[deleted] May 12 '16

[deleted]

4

u/aquarain May 12 '16

I've been a programmer over 30 years. I know what an API is.

3

u/[deleted] May 12 '16

This comment adds to the discussion..place is full of cunts sometimes

1

u/Asmor s10+ May 12 '16

If codes are copyrightable, I fail to see why APIs aren't.

Code shouldn't be copyrightable, either.

367

u/impracticable iPhone Xs Max May 11 '16

Ars Technica has been killing it with the coverage - super happy and proud of them.

116

u/[deleted] May 11 '16

It really is a great website

139

u/[deleted] May 11 '16

[removed] — view removed comment

48

u/SanguinePar Pixel 6 Pro May 12 '16

4

u/seanhead May 12 '16

Their actual tech stuff is quite good (basically the only reasons I still visit them). The articles they put out that are sort of kind of tech-ish, but are really social/political commentary can be mind mindbogglingly dumb though.

3

u/TannAlbinno May 12 '16 edited May 12 '16

I had to unfollow them on Facebook because the constant editorializing about police grew old.

5

u/elementsofevan Nexus 6p|Moto 360|Nexus 7 2012|Google Glass|Chromecastv2 May 11 '16

If anyone needs an easy to follow guide on setting up their own web/email server Ars has a great series called Web Served.

3

u/bmt626 May 11 '16

Agreed Ars is one of the few sites I have white listed ads on just to show support for them

4

u/LongUsername May 12 '16

Days like this make me miss Groklaw.

0

u/smalls1652 Google Pixel 128 GB (But I switched to iOS after 7 years 🤫) May 12 '16

Not gonna lie, the last time I thought that kind of thought was when The Verge covered the first trial.

-1

u/[deleted] May 12 '16

Proud? That seems remarkably patronizing. Is it run by your children?

4

u/impracticable iPhone Xs Max May 12 '16

I work for their parent company.

1

u/[deleted] May 12 '16

Fair enough and that makes sense.

145

u/pure_x01 May 12 '16

So this the way oracle kills java. Microsoft is going the opposite direction with .net .

103

u/the_omega99 Sony Xperia Z2 May 12 '16

Quite refreshening on MS's part. They used to have a pretty terrible reputation, but they've been doing a ton to repair that. Great strides on the open source front. Open sourcing Xamarin was especially ballsy. What's next, I wonder?

34

u/kofteburger May 12 '16

Perhaps Android can switch to J# /s

8

u/theFBofI May 12 '16

android rewrite in k when?

2

u/zirzo May 12 '16

or swift

1

u/[deleted] May 13 '16

To D :P

45

u/elementsofevan Nexus 6p|Moto 360|Nexus 7 2012|Google Glass|Chromecastv2 May 12 '16

Well, if you follow what used to be Microsoft's internal gameplay of embrace, extend, then extinguish; the next step is making their products invaluable to open source, then crushing everyone and forcing them under their boot.

9

u/ElGuaco May 12 '16

It's clear to everyone that this is no longer their strategy. Ballmer's idiocy is gone. If they wanted to crush something like Xamarin, they wouldn't have made it FREE and open source. That move encourages developers to stick with their platform. The only thing they are crushing is Java's market share in the long run.

0

u/elementsofevan Nexus 6p|Moto 360|Nexus 7 2012|Google Glass|Chromecastv2 May 12 '16

what used to be

0

u/[deleted] May 13 '16

Fuck off ballmer, you can't spin wool forever. M$ needs to fucking die.

-1

u/schwar2ss So many devices, so many ROMs. May 12 '16

Do you need a pitchfork or a tinfoil hat? I have both in stock.

-1

u/rdf- OnePlus 6T (VZW) May 12 '16

Not sure if sarcasm but if so, you might need to post this to /r/conspiratard

1

u/Moleculor LG V35 May 12 '16

0

u/rdf- OnePlus 6T (VZW) May 12 '16

Microsoft vice president Paul Maritz used the phrase in a 1995 meeting with Intel to describe Microsoft's strategy toward Netscape, Java, and the Internet.

Sigh. It's been 20 damn years. Get over it.

1

u/Moleculor LG V35 May 12 '16

The point was that yes, it was a real thing that actually was a philosophy of Microsoft, not a half-baked conspiracy.

1

u/1stonepwn Moto G Power May 12 '16

r/conspiratard is dead, r/topmindsofreddit is the place now

0

u/[deleted] May 12 '16

[deleted]

5

u/ihavetenfingers May 12 '16

Mah. Depending on the license they could still C&D a lot of forked projects as long as they're willing to spend resources on it.

9

u/Sephr Developer - OFTN Inc May 12 '16

They used the MIT license. This means they literally can't do anything harmful to forks (as long as the forks properly attribute the license), and I greatly respect this choice. It truly does repair their reputation.

7

u/gildedkitten Asus Zenfone 2 Laser (Removable battery FTW!) May 12 '16

False. They can still give a C&D and force the devs to argue about it in court. The devs will win, but it'll cost them a ton in legal fees.

Aka good, old-fashioned patent trolling.

4

u/Sephr Developer - OFTN Inc May 12 '16

Ah, you got me there.

Although it still wouldn't cost the devs anything because the EFF would immediately jump to defend them with their lawyers for free (this is the kind of case the EFF lives for).

You could even argue that this is a positive for the EFF. The publicity from defending the dev from a frivolous lawsuit would only spur more people to donate. :)

2

u/piexil Pixel 4 XL | Huawei M5 8.4' | Shield Tv 2015 May 12 '16

IE how Sony shut down bleem!

1

u/[deleted] May 12 '16

[removed] — view removed comment

1

u/elementsofevan Nexus 6p|Moto 360|Nexus 7 2012|Google Glass|Chromecastv2 May 12 '16

Apple

2

u/[deleted] May 12 '16

[removed] — view removed comment

2

u/elementsofevan Nexus 6p|Moto 360|Nexus 7 2012|Google Glass|Chromecastv2 May 12 '16

They open sourced a language which is to be expected nowadays. None of their software runs on open source systems except for the ones they bought that had it already. They have no interest in supporting their software on open source systems and actively oppose the development of a project that makes OSX programs able to run on Linux and BSD (like wine dies for Windows).

9

u/adrianmonk May 12 '16

but they've been doing a ton to repair that

You mean like taking Oracle's side on this matter?

"Oracle had support from Microsoft Corp., NetApp Inc. and EMC Corp. at the appeals court level."

9

u/Iron_Maiden_666 Galaxy SII RIP. We S6 now. May 12 '16

They really haven't, they still do the bs litigations against oss projects. They just got better pr.

1

u/Skyy8 Galaxy S9+, Snapdragon May 12 '16

Xamarin was ballsy but absolutely genius IMO. It's exactly what they needed.

14

u/[deleted] May 12 '16 edited May 12 '16

https://www.reddit.com/r/AZURE/comments/4hhhfa/azure_to_stop_supporting_licenseincluded_oracle/

Other nastiness is going on too. Colleagues have sent me the same e-mail you will see linked to in this thread. There is no information available on the Internet as far as I have found. The Microsoft and Oracle websites have not been updated regarding this licensing disagreement.

ORCL is just fucking evil. They routinely try to weasel out any money they can from you. They make it extremely difficult to run Oracle software in a visualized fashion and be within their license compliance that doesn't address visualization at all. (only these "educational" documents that are not legal documents address it) I think ORCL thinks it can bully people into using Oracle Cloud and Oracle Exadata because people just have to have Oracle software. Well, at the price they sell it, they're wrong. Companies will find ways to get rid of it. Oracle can't die soon enough. Larry does not need another yacht.

I fully expect a similar announcement from AWS any day now; but that is just me speculating.

27

u/le_f May 12 '16

Time for Android.net. Gross, but lambdas are delishus, and also linq. I hear Java has lambdas too now, but not sure if that version works on Android.

10

u/jiberius Nexus 5 32GB | Moto 360 (Silver) | Nexus 7 2013 32GB May 12 '16

The new Jack toolchain supports lambdas and method references on existing versions of Android. Most of the other Java 8 features are only available from Android N forward though.

7

u/FrezoreR Pixel XL May 12 '16

Lambdas will work on all versions of java. It's not a tone of change in itself. But we can have change without needing to change platform. Kotlin is a good example of that.

9

u/yawkat May 12 '16

The java 8 implementation of lambdas is not compatible with vms below 7 on a bytecode level (android is 6).

2

u/XdrummerXboy Nexus 5X 7.1.1 | Moto 360 May 12 '16

I thought Android was 7 now (but somehow a custom implementation of it or something). Lambdas are definitely 8 though

2

u/yawkat May 12 '16

I believe ART still does not support invokedynamic which is required for a java 7 vm

2

u/b1ackcat Developer - Checkbook Plus May 12 '16

Thank God for retrolambda, which lets you write lambdas then hooks into the build chain to "unroll" it back to compatible bytecode for Android.

1

u/FrezoreR Pixel XL May 12 '16

Oracle's implementation isn't but Androids is. Because it's just an anonymous interface on older devices. A lambda is nothing more than syntactic sugar.

→ More replies (6)

5

u/greven White May 12 '16

Since Google just ported Oracle Java to Android it does now if I'm not mistaken. Think the API is now 8 at least. But don't quote me on that.

2

u/Jimbob0i0 May 12 '16

Eh where'd you get that from?

OpenJDK7 was imported to the android code base for N (7.0) but of course that's not a released product yet, and it'll be interesting to see what the knock on of effect of licencing will be once it is released.

1

u/greven White May 12 '16

1

u/Jimbob0i0 May 12 '16

Not quite ... it says OpenJDK can support java8, not that java8 was imported.

Look at the actual commit from when it happened:

https://android.googlesource.com/platform/libcore.git/+/51b1b6997fd3f980076b8081f7f1165ccc2a4008

So far as I recall there was speculation it'd be java8 and then turned out to be java7 disappointing a lot of people ;)

1

u/greven White May 12 '16

Ah ok. I have read only the speculation part. Meh. I really thought it was JDK 8. That is a let down, since 8 has lambdas. :(

2

u/Jimbob0i0 May 12 '16

yes that's why people felt let down

there's probably compatibility reasons they limited themselves to the jdk7 codebase I expect ... eg make for minimal change from the oracle based compiler and build environment to minimise the possibility of what could go wrong and need to be fixed

1

u/nourez OnePlus 7 Pro + Galaxy Watch May 12 '16

Xamarin is now in visual studio, letting you build Android apps in .net

0

u/[deleted] May 13 '16

Fuck anything microsoft . die motherfucker.

10

u/FrezoreR Pixel XL May 12 '16

Well, M$ sided with oracle on this issue, so I'm not too sure about that, so don't get to fooled by M$.

Link: http://www.eweek.com/developer/microsoft-emc-netapp-support-oracle-against-google-in-java-appeal

0

u/[deleted] May 12 '16

[deleted]

1

u/FrezoreR Pixel XL May 12 '16

I read somewhere else, but I don't remember which newspaper it was, about this still being valid. Might have been sfgate.

45

u/nosayso Nexus 6 May 12 '16

Google was doing the thing that's been standard practice for decades: writing their own implementation of an API.

Oracle saw Google making money and said "hey, how can we sue to get a piece of something we didn't earn?" My hope is that the guys with no leg to stand on but an army of lawyers don't win the day.

23

u/dizzi800 Pixel 9 Pro May 12 '16

turns out - google was using this stuff before Oracle bought Java - and the old owners (sun) were very supportive and allowed this to happen with open source licenses etc.

It would be like the guy from incomptech suddenly saying "Nope! No longer released under Creative commons! I was 5$ for every play and I'm going to go sue everyone that used my tracks before!"

0

u/[deleted] May 12 '16

[deleted]

12

u/dizzi800 Pixel 9 Pro May 12 '16

Both companies are massive to the point where it's hard to fathom - because of that they both have the best lawyers money can buy, really. So it also 'only' take a lawyer to prove the other wrong and explain simply how the stuff works

13

u/elder65 May 12 '16

Our corporate unix-based ran, mostly, on Sun hardware with Solaris/SunOS. Any other unix platform vendor was used because of some proprietary software the required it. While we used Oracle databases, they were limited to a few major projects. We had to have massive backups of the Oracle DB's as they were constantly locking or failing.

When Oracle bought Sun, there was major concerns for the future of the Sun base. Through many conversations with the new Oracle management of Sun products, the direction of Oracle's main support policies rapidly became evident. Sun hardware barely got lip service. Solaris would get support if there was an Oracle DB involved. As our business critical systems required Platinum (24X7X365) support, we felt that Oracles definition of that support left us with little confidence we would get what was needed in the immediate time frames we enjoyed with Sun.

Consequently, as support contracts ran out and sometimes based on new projects, we moved our unix base to Intel-based linux for small projects, and the other major unix (spell unix with three letters) vendor. When I retired, about 18 months later, our unix base was only around 10% Oracle nee Sun.

So if Oracle wants to bitch about losing money because of companies moving away after the Sun procurement, they need to look at their own support policies. It became obvious that if you were not a major Oracle customer, you were not their primary recipient of expedient support.

Of special note, we used Java extensively through out our Sun environment. I never had any licensing costs or limitations with implementation or use of the language. Java support was rolled up in our Sun support contracts, but it wasn't one of the high-cost elements in the contracts. When we moved to other platforms we did not experience any major cost with our java use or implementations. I'm not aware of how much Oracle was charging for Java support after I left the company.

4

u/the_sysop May 12 '16

I have also worked for big sun shops that rapidly transitioned as much as possible to Linux on Intel as soon as it became evident that Oracle was buying sun. The first year we had Oracle support our costs doubled for OS and hardware. Oracle doesn't have customers they have hostages.

25

u/chiiild Oneplus X | Nexus 7 May 12 '16

This article reads like a chapter in a novel. Keen to follow more now.

26

u/Lokifent May 12 '16

This is a retrial, so you can look up all the spoilers, except for the alternate ending decided by the jury

2

u/racket_surgeon May 12 '16

https://www.youtube.com/watch?v=3vI_7os2V_o

You can watch the 'movie' version here. :)

6

u/[deleted] May 12 '16

How is the API copywriteable? I could see the code used to create the API as copywriteable but if Google didn't copy the code then it didn't break copywrite.

5

u/RockSalad Device, Software !! [score hidden] May 12 '16

It's not. These old fucks in the judicial system simply don't understand technology. Which is why this has gotten as far as it has.

2

u/adines May 14 '16

They are, and it has already been ruled that they are. This case is now about whether Google's use of Java was fair use of the copyright.

37

u/mph1204 LG V10 (VZW) May 11 '16

can someone ELI5 or link to a good explanation of what Java is in this context? I always thought it was just an annoying plug in that I had to update constantly. This makes it sound like an open operating system like Linux?

159

u/enum5345 May 11 '16

ELI5:

Java is a programming language. Programmers type stuff into a text file that will eventually tell a computer what to do.

Java is different from traditional programming languages in that you need to install an extra program called a 'Java Runtime', or just 'Java' again for short, in order to work.

For example, to tell a computer to print words, you type System.out.println("Hello"); and the Java you install will make it happen.

On Android, you type the same thing. System.out.println("Hello"); and Android will make it happen.

Oracle is saying, "Hey! The way you tell your system to print words is the same way we do it. Stop!"

0

u/[deleted] May 12 '16

[deleted]

102

u/donnysaysvacuum I just want a small phone May 12 '16

Well what you might be missing is that Sun created Java and allowed android to do this. Sun was very supportive of open source, and did not seem to have a problem with Google doing this. Oracle bought sun, acquiring Java and all their parents and copyrights, then decided to sue Google.

62

u/rjbaj May 12 '16

Oracle (or more precisely "Larry") have always hated Google. I think they just dug out and dug very deep to find one reason to sue Google. Anyone else think so?Anything else?

74

u/BlackMartian Black May 12 '16

No doubt that Ellison did this. A reporter wrote a book about him called: The Difference Between God and Larry Ellison: God Doesn't Think He's Larry Ellison

In an interview with Charlie Rose he said that Google stole Oracle's tools--y'know the tools that Sun created before being bought by Oracle. He called Larry Page evil. The same guy that said the NSA has done no wrong. What a laugh.

I've heard he's a world-class dick, so I'll stick with the hearsay and just hate him because others do.

My favorite Ellison story from Inc:

In 2011, Ellison hired a "tree lawyer" (yes, those actually exist) and took his neighbors to court for blocking his views with three redwoods and an acacia tree. They eventually settled.

30

u/Lokifent May 12 '16

He also has a great bird lawyer from Philadelphia

8

u/XdrummerXboy Nexus 5X 7.1.1 | Moto 360 May 12 '16

I'll get my popcorn, do tell

1

u/blood_bender May 12 '16

y'know the tools that Sun created before being bought by Oracle.

This is really beside the point for me. If you buy another company, that company's property is your property. This is just a case where we don't like the outcome, but there are many more where we do.

7

u/Natanael_L Xperia 1 III (main), Samsung S9, TabPro 8.4 May 12 '16

And that property was given away under free licenses, so bohoo Oracle

2

u/blood_bender May 12 '16

Sorry, my point was more that Sun's tools are, for all intents and purposes, legitimately now Oracle's tools. To say "the tools Sun built before Oracle bought them" is derailing the discussion, Sun belongs to Oracle. does Google not own YouTube?

I still believe this lawsuit is wrong on Oracle's part, but associating Sun separately is a misrepresentation.

5

u/Natanael_L Xperia 1 III (main), Samsung S9, TabPro 8.4 May 12 '16

You're missing my point. It was already free, irrevocably. Even Sun couldn't have revoked it to charge money, and Oracle has no right to do it either. The transfer of ownership does not invalidate previous licenses, and they remain binding on Oracle's part.

→ More replies (0)

3

u/[deleted] May 12 '16

I don't think the terms of an existing license can be changed by the new owners.

2

u/blood_bender May 12 '16

No, I guess I didn't explain myself clearly. I still think they should lose the lawsuit, but making a point that it's "Sun's tools" instead of "Oracle's tools" is beside the point for me, they are absolutely Oracle's tools, doesn't matter who originally built them, Oracle owns them.

I think there's a lot of issues with this case, but adding that line distracts from the overall point.

→ More replies (1)

24

u/aquarain May 12 '16

Sun explicitly stated that doing this was OK in no uncertain terms and quite specifically Android and the way they did it, not some hypothetical possibly tangential case.

3

u/Lokifent May 12 '16

When did they say that? Did they publish that statement?

17

u/jiberius Nexus 5 32GB | Moto 360 (Silver) | Nexus 7 2013 32GB May 12 '16

Shortly after Google announced that Android would be using Java, Sun made a congratulatory blog post commending their choice of Java. Oracle deleted the post (because of course they did) but it should be easily findable.

7

u/aquarain May 12 '16

It was actually in one of their quarterly financial briefs. But here you have the actual CEO of the time saying it again. It was always OK until Ellison bought Sun and tried to revoke permission retroactively.

3

u/HonestSophist May 12 '16

There's a short story somewhere about a court case permitting corporations to modify their contracts retroactively leading to the breakdown of human rights.

Aha, here: http://www.lightspeedmagazine.com/fiction/new-provisions/

2

u/[deleted] May 12 '16

That's really the debate though. Is it "free"? Oracle says no, it's been copyrighted and Google owes money. Google says that programming interfaces aren't copyrightable.

1

u/Natanael_L Xperia 1 III (main), Samsung S9, TabPro 8.4 May 12 '16

If Sun gave it away for free under irrevocable licenses, what can Oracle do about it? The licenses remain valid despite the ownership change

→ More replies (7)

55

u/[deleted] May 11 '16 edited May 11 '16

Java is a programming language, and the JVM is an environment to execute code that is built from that language.

The browser plug-in for Java Applets just lets Java launch from a web browser. That is like .001% of Java usage in the world. Most of it is used for back-end server code; the stuff that makes complex website or game servers work, for example.

It's actually considered extremely bad practice to ever make a Java Applet, and this has been the case for several years now. The Java Applet browser plugin is actually considered a pretty big security risk too.

Now, for programming code to ever interoperate, something called an "API" defines what you have to put into a section of code, and what will come out of that section of code. As a simple example, say there is a bank website that makes a chunk of code that calculates monthly interest for each of their customers: put in the current balance and account type, and get back the amount of interest earned. The use of this API means that they can change how it is calculated without affecting the code that uses the calculations, for example if they ever change interest rates, etc.

Java itself has a huge library of built-in code that can do a lot of this. Google implemented a different back-end of code that performs the same API functions. Oracle is claiming that they own this... even though 1) use of Java is supposed to be free and open-source, and 2) the entire purpose of an API is to define interoperability and allow safe swapping of code behind the scenes

0

u/[deleted] May 12 '16

[deleted]

1

u/_sandwiches May 12 '16

It does though. If I call an API's sort method sort(), I don't have to care what it does. It's promising me that if I give it a set of numbers, it'll return them sorted. I don't have to care how, maybe it's a paid employee sorting them by hand and sending back the results, maybe it's quicksort or mergesort. The point is that sort() will always return the same thing, regardless of whether the API's provider updates their sort code later to be faster, more secure, whatever.

It ensures that the code I write is able to keep functioning without updating from me every time that they make changes, which allows them to change and update their code without pissing off all their users. It defines how other code interacts with it and what they are allowed to ask of the API.

1

u/gm4 May 12 '16

What I mean is "making sure code can be changed" isn't usually the first thing people are aiming for when they want/need an api. Many things you want to use might not have exposed functionality at all, for example, you want an API from Zillo.com to display their listings, or you want a Facebook API so you can log people in with their facebook account or make posts/send messages. That comes before just "making sure code can be changed". That is an added bonus (or detriment depending on how its changed) but your last sentence wasn't what people in general think when they want an API. Just higher level input I'm throwing in.

1

u/Jimbob0i0 May 12 '16

You may want to review my "brief" summary from the article yesterday:

/r/technology/comments/4im67s/z/d2zoblc

10

u/[deleted] May 12 '16

Does Java runs in virtual machine? A non-techy person asking.

23

u/RosemaryFocaccia Oneplus May 12 '16

Yes, and Google built their own 'cleanroom' version which is called Dalvik.

25

u/[deleted] May 12 '16

Isn't it ART now?

5

u/bartturner May 12 '16

Actually Dalvik has been replaced with ART which is another 'cleanroom' implementation.

1

u/[deleted] May 12 '16

again, as a non-tech person: does a VM inherently means it requires more resources? What I am trying to understand is if this is somewhat similar to running a VM on windows - which makes my pc crowl, and a noticeable lag appears within the VM. Basically - is a VM a bad thing in terms of performance?

22

u/talideon Nexus 9, Moto G3 May 12 '16 edited May 12 '16

It depends. To a certain degree, VMs sacrifice speed for portability. However many modern VMs will detect hotspots in the code they're running and translate those hotspots into optimised native code, and that way, you get the benefits of both speed and portability. This is called JIT (just-in-time) compilation. Sometimes, what happens is that the version you download is the portable version, and it's converted to a fast native form as it's installed, sacrificing install speed for faster apps. This is known was AOT (ahead-of-time) compilation. As of Android 2.2 (Froyo), Android did the former, and as of Android 5.0 (Lollipop), it began to do the latter.

Also, there are two different things called 'VMs': you have process virtual machines and system virtual machines. Android uses the former and something like VirtualBox or Qemu implements the latter. They're very different concepts, though in both cases, it refers of a kind of abstracted computer. The Wikipedia article on the topic explains the difference better than I could: https://en.wikipedia.org/wiki/Virtual_machine

1

u/[deleted] May 12 '16

So informative. Thanks so much!

0

u/[deleted] May 12 '16

[deleted]

→ More replies (4)

4

u/adrianmonk May 12 '16

It's a bit complicated, but it's not entirely a bad thing. It's similar, but not quite the same thing as running that VM on your Windows machine.

For one, when you run VMWare or VirtualBox, you are emulating a machine that was never built with that in mind. The Java Virtual Machine (JVM) was designed to be a virtual machine from the very beginning. When emulating a PC, you have to go through some gymnastics to keep up the illusion that you are running on real hardware. There's some amount of wasteful undoing and redoing work differently because the guest operating system thinks it is in control of certain things it is not in control of.

The JVM is also not running an entire operating system inside it. It is just running your one program. So it doesn't need a fixed amount of RAM, and it doesn't need a hard disk image file. In fact, it doesn't need any data files at all to run (though a Java program can of course access files like any other program).

Another difference is that with VMWare or VirtualBox, the program is actually written in the same type of instructions that the machine already knows how to execute: x86 or amd64 machine code. With the JVM, the program contains instructions for the Java machine. So the JVM must translate between the two, a task that VMWare or VirtualBox does not have to do. This translation is pretty fast (in fact, in some specific cases it can be faster than the traditional way), but there is definitely overhead required.

One of the most obvious places that overhead shows up is in starting the JVM. The first time it encounters a particular part of your program, it has to figure out how it is going to translate it, but the next time it will have already figured that out. So JVMs tend to be slow for a minute and then pretty fast thereafter.

By the way, this lawsuit is not about the JVM, and Android doesn't have and has never had a JVM on it. Instead, Android used to have Dalvik but that has been replaced with ART. Neither one of them is a re-implemented JVM. They are both something different, and another translation step is done when the software is being created, before it ever reaches an Android device.

2

u/[deleted] May 12 '16

Really appreciate this long informative response. Thank you!

1

u/[deleted] May 12 '16

The JVM is also not running an entire operating system inside it.

PS - If I may follow up on this. If i understand you correctly, you are saying that JVM is only running when I activate an app. It's not the OS itself?

I take it I might be a bit short on terms here. Hope my point is getting through.

2

u/Natanael_L Xperia 1 III (main), Samsung S9, TabPro 8.4 May 12 '16

On Windows, the JVM starts when you start Java software. On Android the runtime is always running, and new runtime processes duplicating parts of the runtime are created for every app you start (parts are system wide, parts are app specific).

1

u/[deleted] May 12 '16

Thank you. So JAVA is self-reliant? It is a complete OS?

1

u/Natanael_L Xperia 1 III (main), Samsung S9, TabPro 8.4 May 12 '16

No, it isn't, typically (there's the special case of certain custom CPUs whose instruction set is raw Java bytecode). The runtime is a piece of software that runs the Java bytecode on the system.

2

u/[deleted] May 12 '16

Wow this keeps getting better (: So what Android actually is? What code is it in?

→ More replies (1)

3

u/_pelya Dev - OpenTTD May 12 '16

Depends on a VM. Lua or even Python are slower than Java, they are interpreted languages, but do not 'bring PC to a crawl'.

3

u/redog May 12 '16

but do not 'bring PC to a crawl'.

You're not trying hard enough!

2

u/Mossy375 OP3 Granite May 12 '16

Yeah, it's not writing directly "to the machine". The runtime acts as a middle man, passing the code on to the machine. This allows the code to be used in a wide range of products, from PCs to fridges to toasters even, without having to change the code. However, having this middleman does lead to a performance hit. That's why an iPhone with equal components to an android phone will be faster and the battery will last longer. The code is "used" directly by the iPhone. On an android phone, the code is passed to the runtime environment and then on to the machine.

1

u/[deleted] May 12 '16

That's actually precisely what came to my mind after asking my question. Very informative. I guess this explains quite a lot when it comes to the performance differences. Thanks for your reply!

May I ask: is Windows built in the same manner? I assume not since to my understanding Windows is actually built in native code (?). If this is the case, how is it that Windows can also run on multiple devices and hardware?

Thanks again.

1

u/Natanael_L Xperia 1 III (main), Samsung S9, TabPro 8.4 May 12 '16

Windows always expects the same hardware architecture and processor instruction sets. That's why it works on different hardware, it is all x86. And that's why WinRT was so handicapped, it wasn't running on x86.

1

u/ShittyFrogMeme May 12 '16

If you're running a virtual machine in Windows, you are essentially running two computer systems. So yes, that obviously requires more resources. Your CPU now has to handle instructions for two operating systems.

If you don't have a good computer, this clearly will cause slowdowns. If you are running a CPU intensive task on your machine, your VM is going to be slow because it won't get a lot of CPU time, and vice versa.

Of course, VMs themselves are slightly slower because the code isn't running natively. This does add some overhead, but this is not something that would be the cause of making your PC crawl...that would more likely be the previous.

Anyway, if you have a strong system, there won't really be a slowdown. I run a VM on my desktop with a mid-range i5 and 16 GB of RAM with no noticeable slowdown in either my native OS or the VM. The only slowdown I see if from the performance overhead of the VM being virtualized.

3

u/[deleted] May 12 '16

Could somebody please explain this lawsuit to me? I must admit that I am lost, and have no idea who is suing who, and why.

Thanks

5

u/otakuman May 12 '16

int sum(int a, int b);

That's an API declaration. As ridiculous as it may seem, some idiot judge declared that if your software copied API declarations from other software, it was copyright infringement.

It's as ridiculous as nut and bolt designs requiring royalties if your house used them, but that's what the judge said.

And now oracle is out there to get their profits from their Java API.

3

u/[deleted] May 12 '16

So, Oracle is suing Google because Google is using these [formally] "open" APIs? That's crazy. Do they want everybody to jump ship to some other programming language?

I miss Sun. :-(

1

u/[deleted] May 13 '16

Oracle is doing exactly what Microsoft did for years and got fucking away with it. motherfucking cunts.

30

u/IllTryToReadComments May 12 '16

"You know, there’s a lot of stuff on Google I don’t control," said Schwartz. "It’s a pretty big Internet."

That led to some laughter in the gallery. The ten jurors watched silently, poker-faced.

Did I just read a pun, in a courtroom, about a $9 billion trial?

39

u/TheImmortalLS Nexus 5, Catacylsm 5.1 May 12 '16

Wait can you explain this pun? Is it intent?

Puns are just an extension of wordplay, and lawyers love wordplay.

12

u/IllTryToReadComments May 12 '16

I thought of it as being that Google has a lot of people in it, so it's a big internal network of people. He uses the term "internet" to describe this network and... actually maybe it's not a pun.

16

u/axehomeless Pixel 7 Pro / Tab S6 Lite 2022 / SHIELD TV / HP CB1 G1 May 12 '16

Probably read too much into it mate.

11

u/Mossy375 OP3 Granite May 12 '16

Errr....

12

u/[deleted] May 12 '16

Pun? Surely there is none.

10

u/[deleted] May 12 '16

There's a constant stream of them in courtrooms. Lawyers love puns. Almost as much as overuse of idiomatic language .

4

u/HonestSophist May 12 '16

Alright people, false alarm, go home. There's no pun here.

3

u/cutemusclehead I don't give a shit about Camera! May 12 '16

That's not a pun!

1

u/[deleted] May 12 '16

The backdoor settlement is done.

0

u/Toltarius May 12 '16

This is ridiculous. I'm not sure about it but aren't other companies using the Java API for their own capital gains? As a software developer myself this makes no sense when Oracle boasts about it being free and "open source" when they just file lawsuits against Google. Should'nt Oracle just be happy that billions of people are using Java because of Android. Without Android, Oracle would loose a huge usage base. These series of trials are ridiculous. Now Google is considering moving to another language. Rumor has it to be apples own Swift. I would hate to have to buy a Mac because of Oracle's shenanigans.

0

u/cisxuzuul May 12 '16

Anyone who takes Glassdoor seriously deserves to lose. Seriously, it's nothing but people bitching about their crappy jobs.