r/Android • u/speckz • 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/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
May 11 '16
It really is a great website
8
139
May 11 '16
[removed] — view removed comment
48
u/SanguinePar Pixel 6 Pro May 12 '16
For those who don't get the reference
Also, I think this is the original although OP is deleted
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
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
May 12 '16
Proud? That seems remarkably patronizing. Is it run by your children?
4
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
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
5
-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
0
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
1
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
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).
1
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
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
It says on Ars Technica that it is based on JDK 8.
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
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
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
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
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
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
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
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
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
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
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
10
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
5
u/bartturner May 12 '16
Actually Dalvik has been replaced with ART which is another 'cleanroom' implementation.
1
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
0
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
1
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
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
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
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
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
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
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
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
12
10
May 12 '16
There's a constant stream of them in courtrooms. Lawyers love puns. Almost as much as overuse of idiomatic language .
4
3
1
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
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.
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
patentablecopyrightable so that we can all move on. I have been hearing about this BS since the 90s