11 ms·
CEO Larry Page defends Google on the stand: “Declaring code is not code”
- ricksplat 11y agoPage testified for about a half-hour, answering a lightning-fast round of accusatory questions from Oracle attorney Peter Bicks It really irks me that some of these lawyers, aside from having to do their job feel they have to be dicks about it too.
- sotirisk 11y agoWell in the court a lot of theatrics are in play because of their effect on certain questions/answers
- ricksplat 11y agoYeah I guess - but for me it seems like the focus should be on the facts rather than theatrics. That said I have sat on a jury where the performance of the prosecuter played a pivotal role in papering over some of the mistakes in the investigation. But the guy was a perfect gentleman at all times. Innocent until proven guilty.
- mindcrime 11y agoThat said I have sat on a jury where the performance of the prosecuter played a pivotal role in papering over some of the mistakes in the investigation. I sat on a jury once where the behavior of the prosecutor really hurt his case, because he acted like a total dick and was demeaning and rude towards the defendant. In theory that should have nothing to do with the actual merits of the case, but people being people, it created a certain measure of sympathy for the defendant. In the end, we acquitted the guy for a number of reasons (mysteriously "missing" evidence, an incompetent investigator, perception that the investigator and victim may have lied, etc.) but the prosecutor's behavior was definitely something that all (or most) of the jurors picked up on and commented on. I believe that simple things like how the prosecutor (or the defendant) carry themselves, and how they act towards other participants in the trial, can absolutely affect the outcome of cases, at least sometimes.
- mamon 11y agoWhich is why I am against trials with jury. Professional judges are much less likely to fall for lawyer's "bullshiting skill".
- simonh 11y agoThen judges just become targets for corruption, leverage and political capture.
- sievebrain 11y agoThat seems like a stretch. Judges routinely make questionable rulings. Heck, in this case Alsup did a great job in the first (jury) trial .... and then Oracle appealed and the original decision, which I thought was right, was overturned by judges.
- Morgawr 11y agoHow are they "being dicks"? It's their job, they have to ask questions and find cracks within the legal system to prove their point. That's literally their job, no more, no less.
- ricksplat 11y agoI would contend that finding cracks doesn't lead to as many successful convictions as people think it does - and probably leads to a great many wrongful ones. Focus should be on the facts. It's also an approach that puts those who are better at concealing these cracks (think sociopaths; Bundy) at an advantage.
- oneloop 11y agoOooooo shit. Isn't this phrase horrible? Don't get me wrong, I think suing over checkRange is ludicrous... but doesn't saying "declaring code isn't code" terrible? He comes across as he's trying to avoid the issue by playing with words. Of course declaring code is code. The clue is in the name, "declaring CODE".
- ricksplat 11y ago"declaring code" means headers, or in the case of Java function specification/prototypes, right? As in "declarations". I think it's technical language twisted through legalese.
- Sharlin 11y agoYep. The argument is that API specifications are not code, and reimplementing an API based on specifications is not a copyright infringement. It should not matter whether the specs are written in a natural language or a more formal one. Specs are more like ideas, and ideas cannot be copyrighted (the specification document itself could constitute a copyrighted work, though!) The problem is that to reimplement the spec in this case, you do have to copy the formal declarations verbatim. Whether or not those "sentences" are protected, and pass the threshold of originality [1], is what is at stake here. [1] https://en.wikipedia.org/wiki/Threshold_of_originality https://en.wikipedia.org/wiki/Threshold_of_originality
- reflexer 11y agoThis is incorrect technically. Oracle has already won API copyrightability claim. http://www.wsj.com/articles/supreme-court-denies-google-appeal-on-oracle-suit-1435585873 http://www.wsj.com/articles/supreme-court-denies-google-appe... The trial now is about Google's "fair use" of those APIs.
- mindcrime 11y agoYeah, same thought here. I understand what he meant, and pretty much everybody on HN understands it.. but to a (potentially) non-technical juror, that just does not sound good at all. I hope that one gaffe doesn't cost Google the case.
- d_j_b 11y ago"For me, declaring code is not code," Page said. This sentence sounds pretty odd to me. What does Larry Page mean?
- 20andup 11y agoHe means declaring method signatures (ie/ Java's API) is not code in itself.
- Maarten88 11y agoI think he means header files compile to nothing, they do not end up as actual computer instructions. They only serve to help programs call the actual implementations (which he'll see as the real code) correctly.
- Tomte 11y agoBut declarations can have an effect on the instructions generated.
- raphman_ 11y agoI'm not sure if this interpretation of his words is what he meant to say. I'd argue that code that "compiles to nothing" can be protected by copyright, too, even if it is not distributed to customers. E.g., extensive documentation inside comments in the source files is definitely copyrighted. Complex build rules might be copyrightable, too, although they definitely end up in the distributed application. Therefore, it would probably be counterproductive to assert such a thing in court.
- return0 11y agoGoogle is trying to make the case that interfaces aren't 'code' here. That's the entire case here, right?
- raphman_ 11y agoYes. I just wanted to clarify that code that "compiles to nothing", e.g., build instructions, may still be copyrightable. Therefore, I do not think that Page wanted to extend his definition of "non-code" to anything besides interfaces/declarations.
- calsy 11y ago'The lawsuit began when Oracle sued Google in 2010 over its use of 37 Java APIs, which Oracle acquired when it bought Sun Microsystems. In 2012', am I crazy or is this just a misprint? Oracle sued Google in 2010 before they acquired Sun Microsystems?
- arcatek 11y agoThey purchased Sun in 2010, and sued Google right after.
- Morgawr 11y agoThere's a period between those sentences. The "In 2012..." is related to "...a judge ruled that APIs can't be copyrighted at all". I don't know when Oracle bought Sun (didn't look it up), but this is not what the sentence(s) is(are) implying.
- taspeotis 11y agoThe relevant sentences are: The lawsuit began when Oracle sued Google in 2010 over its use of 37 Java APIs, which Oracle acquired when it bought Sun Microsystems. In 2012, a judge ruled that APIs can't be copyrighted at all, but an appeals court disagreed. Not sure what confusion could arise from this.
- stuartleigh 11y agoIf you miss the period it reads as "... which Oracle acquired when it bought Sun Microsystems in 2012," which I guess would be confusing.
- pritambaral 11y agoOracle filed against Google on Aug 12, 2010.[0] Oracle announced buying Sun on Apr 20, 2009.[1] The deal may have taken a while to complete (as late as 2015), but Oracle got to integrate Sun's assets into Oracle as early as 2010, and indeed that is when everyone (including Oracle) believes Sun was acquired. ---- 0: http://i.i.cbsi.com/cnwk.1d/i/ne/pdfs/FINAL_Complaint.pdf http://i.i.cbsi.com/cnwk.1d/i/ne/pdfs/FINAL_Complaint.pdf 1: http://www.oracle.com/us/corporate/press/018363 http://www.oracle.com/us/corporate/press/018363
- forrestthewoods 11y agoThe more I read about this case the more I think Oracle is right. And the more I think most people, HN readers included, are grossly misinformed. In the last big thread I asked if anyone could provide concrete examples of terrible things that would happen if Oracle won. I didn't get a good response but the comment was buried. My question stands if anyone has a good answer. I'm very open to discussion here.
- keypusher 11y agoIt's really not about whether bad things would happen or not. It's about what is the correct decision. I define an interface for a box. It has methods push() and pull(). I implement a wooden box that conforms to this interface. Many happy users push and pull my box via the interface all day. Someone comes along and implements a metal box that conforms to my interface, so that users can push and pull a metal box. I sue that person and win. Does this sound correct to you? What bad things would happen? * Compiling against any C header files, such as kernel headers, is called into question. This has massive ramifications because of many for-profit businesses that compile against the headers of GPL code, as is standard practice. * Amazon S3 API is widely implemented by other cloud storage providers. Sharing an API between products makes it easy for customers to switch one application between different providers. * This is copyright, not patent. Which means there is no requirement to register a design, no oversight and no cost. * It could cause a rush of people just writing obvious API combinations to be the one who "got there first" and potentially harm their competition. https://www.publicknowledge.org/news-blog/blogs/why-you-cant-copyright-an-api https://www.publicknowledge.org/news-blog/blogs/why-you-cant...
- forrestthewoods 11y ago> I sue that person and win. Does this sound correct to you? Sure. That's plausibly reasonable. The API definition is significantly more detailed that just the method names. The metal box maker could easily have created their own API. But instead they use an API created by someone else. * Compiling against headers is an important issue. That would be bad. I raised this question in the last thread but it didn't seem to be an issue. * A closed S3 API seems fine to me. Amazon doesn't have an obligation to make switching easy. At the same time they'd have incentives to make their API open to encourage people to start using S3. Permissive open source software is exceptionally popular these days. If Amazon wants to write a closed API that presents an opportunity for someone else to write an open API. * I think we'd be in a much better place if software could NOT be patented but APIs were copyrighted. Implementation code is already under copyright. * I don't think "got there first" is a real concern. TCP and UDP both define connect(), send(), and receive(). But they are radically different APIs with radically different specifications. Thank you for your thoughtful reply. This is a good discussion.
- Aleman360 11y agoNot sure if I agree. I find that coming up with good interfaces is often more of a creative challenge than the implementation. API's are worthy of some sort of protection since ease of use is a definite competitive advantage. Also, you can easily screw your perf with bad interfaces (especially in C++). E.g., not templatizing, requiring extra allocations, type impedance mismatches, vtable bloat, etc. The interface certainly affects how the machine executes your code.
- return0 11y agoAre APIs/interfaces patentable?
- metafunctor 11y agoIs it Oracle's position that all implementations of the Java APIs (or partial implementations) are illegal, unless it's specifically allowed by Oracle? That sounds ludicrous. What about unit testing libraries, for example?
- valleyer 11y agoThis also means that Wine, GNUstep, FreeDOS, etc., are illegal, right?
- metafunctor 11y agoYes, it would seem logical to me.
- dgregd 11y agoWhat about Oracle Linux and Bash on Windows?
- ddeck 11y agoI am far from an expert in these matters, but as I understand it there are fair use exemptions when the purpose of the implementation is for interoperability and compatibility. Given WINE's purpose, they would seem to be on safer ground. I believe this was one of Google's initial arguments, but as the DoJ stated when they weighed in: >"The Android platform uses the Java programming language, but [Google] purposely designed Android not to be compatible with the Java platform or interoperable with Java programs." [1] [1] http://www.fosspatents.com/2015/05/us-dept-of-justice-finds-googles.html http://www.fosspatents.com/2015/05/us-dept-of-justice-finds-...
- abecedarius 11y agoA strange notion of 'not compatible'. I wrote a Java library in 1996 that's been used unchanged in Android apps. (Yes, the app author has to compile it to Dalvik.) [Added: it was always my understanding that this ability to use Java code was the whole point of using the Java API.]
- 11y ago
- 0xmohit 11y agoSomebody needs to analyze results from http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2FPTO%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=an%2Fgoogle&d=PTXT http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=H... What does one say of http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2FPTO%2Fsearch-adv.htm&r=39&p=1&f=G&l=50&d=PTXT&S1=google.ASNM.&OS=an/google&RS=AN/google http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=H...
- deleted 11y ago[deleted]
- echion 11y agoLeci [API] n'est pas une code.
- felipeerias 11y agoI am curious about the implications of this lawsuit for Free SW. Claiming copyright over the Java API is not that far from claiming copyright over a C header, and most projects do just that. On the one hand, RMS has said that "just using structure definitions, typedefs, enumeration constants, macros with simple bodies, etc., is NOT enough to make a derivative work. It would take a substantial amount of code (coming from inline functions or macros with substantial bodies) to do that". On the other, I imagine that somebody could get in trouble for e.g. copying the files under linux/include and providing a proprietary implementation underneath (unlikely scenario, you get the point).
- curt15 11y agoWhy does being a "derivative work" depend on the copyright status of the original work?
- felipeerias 11y agoBecause Free SW licenses only apply to copyrighted works.
- codingmyway 11y agoOracle will likely win on technical grounds regarding APIs but only because the law is unsuited to software. It's whether a judge should overrule it on principle of not patent trolling as it's against the public good. It's the fact they bought Sun with the intention of suing Google in order to profit from Android's success. If it was Sun suing it would different. After Elon Musk pledged that other car manufacturers could use Tesla's patents is Larry Ellison going to wait until all cars are electric and Tesla is a minor player before buying them out and immediately turning around and suing the entire industry?
- codingmyway 11y agoThe other question is what an Oracle win would do to the Java ecosytem
- maze-le 11y agoThat is a good question. I think short-mid term not much, as a huge amount of infrastructure is dependent on the jmv as a platform, switching to .NET or independent solutions is only a long-term option. I don't know how big a long-term impact will be, but I think it won't be neglible...
- codecamper 11y agoI can't really tell who isn't bothering to explain what an interface / API is & why you might want to copy one vs make your own. Is it Larry or the writer of this article? If it's Larry, then it is interesting to see this sort of laziness when so much money is at stake. Terrible to read what a song & dance Oracle is putting on. 11,000 lines of code! gtfo
- keypusher 11y agoEither Google needs some better lawyers or this article is not telling the whole story. This should be a very simple issue to explain, open and shut case.
- wfunction 11y agoI'm going to go out on a limb here. While I'm definitely not on Oracle's side for this case, I'm not so sure I agree with the statement that declaring code is not code in general. To me, that's akin to the NSA collecting phone call metadata and then claiming that it's not really a problem because they don't actually have the contents. Except, as we know, with sufficient metadata, you don't even need contents to figure out what's going on. The same goes with APIs. With sufficiently comprehensive APIs or sufficiently advanced programming language facilities, which are becoming more and more commonplace (more sophisticated static type checking, macros, and template metaprogramming), more and more information becomes encoded in the declarations, to the point where you really can't claim that the declaration isn't something you should be able to copyright. With the Java API under consideration I agree that the APIs probably shouldn't fall under copyright, but I'm not sure I agree with this precedent being set here more generally.
- deleted 11y ago[deleted]
- dpark 11y ago>more and more information becomes encoded in the declarations I don't see how this is true at all. We've moved continually toward higher-level APIs. There's a lot more "magic" in String.split than strtok. If your API is so specific that the implementation is entirely implied by the declaration, then all that means is that the implementation itself is trivial, in which case I don't think your API implementation should copyrightable either.
- cmdkeen 11y agoBut it isn't a single function definition it is the whole API. Deciding that you want to pitch your API at a specific level of abstraction and ensuring that level is consistently maintained across a whole language is hard work. The recent criticisms of ASP.Net Core's API changes or PHP's "interesting" APIs over the years surely demonstrate that writing language APIs is hard.
- 11y ago
- optforfon 11y agoDoe anyone know why Google decided on a jury trial? It seems they are technically in the right, but explaining it to an educated judge in a bench trial would be a lot easier than a random sample of non-programmers.
- ramaro 11y agoSounds like the Linux copyright accusations SCO made against HP, RedHat, IBM, etc... allover again. SCO is now gone. https://en.wikipedia.org/wiki/SCO/Linux_controversies https://en.wikipedia.org/wiki/SCO/Linux_controversies
- negamax 11y agoCan someone elucidate how these trials have access to internal email exchanges?
- takinola 11y agoIt's called Discovery. When a company gets sued, the first thing the opposing counsel does is request they provide all communications relevant to the case. Judges tend to frown on non-compliance with such requests (e.g. shredding papers, deleting emails, and other such similar shenanigans) and tend to send people to jail or declare judgements against the offending party. This is one of the reasons why you should be careful about the emails you send using company systems. You may one day have to read it in front of a jury.
- wglb 11y agotend to frown on non-compliance As in Arthur Anderson no longer exists because someone shredded documents that were under discovery.
- madiathomas 11y agoOracle already won a case that deemed APIs copyrightable. Which is bad for the industry at large. Except for Oracle and patent trolls off course. Google is now arguing whether it copied code in a fair way or not. They can't argue that they didn't copy anymore because they have already lost that case. What is happening now is more like proving to your lecturer that you didn't copy your whole assignment from Wikipedia. You only extracted some information from it and majority are your own.
- 77pt77 11y agoWhat about saying "declarative code is not code" instead? As it stands, this title is extremely confusing.
- Udo 11y agoWhat's most striking to me is how easily this could have been avoided, everybody knew what liabilities would arise from betting your entire mobile platform on the goodwill of a competitor. With the massively overqualified talent pool Google hoards, they could absolutely have implemented a completely new language, compiler, and VM themselves. I'm sure this alternative must have been at least on the table. Does anyone with insider info know what the reasoning was behind that decision?
- mikekchar 11y agoI'm not an insider, but I think the decision making is pretty clear: they bought Android (the company). They could have started something from scratch, but they felt they could get to the market faster buying up a company that was already part of the way there. Android could easily have been built on the GPLed version of Java. But again the reasoning behind the decision of building your own JVM is pretty clear: Android wanted someone to buy their company and felt that the GPL might make the sale difficult. Of course with Google buying, they probably wouldn't have cared, but by the time Google was doing the buying, the decision was already made. Pretty typical story.
- monocasa 11y agoAlso, the GPL version of Java wasn't available when Google bought Android.
- iwwr 11y agoIf anything, Google's desire to reinvent the world has held them back here. They could have just forked OpenJDK and made their lives easier, in retrospect. Into this went their irrational fear of GPL (describing it as 'viral' or 'infectious'). The fact remains that not even Google can reinvent the world in their image. Building a whole new language at the same time as a legacy-prone ecosystem requires too many moving pieces to fit together quickly. They picked some middle ground, java allowed them to tap into the large java talent pool (then and now). Reinventing the guts allowed their ambitious engineers to show off, which they did, but maybe not as effectively as if they'd built on top of the work of others.
- puppetmaster3 11y agoClearly Google internally said they should license it and that they should remove the copy righ from the code. Right? http://arstechnica.com/tech-policy/2016/05/top-programmer-describes-androids-nuts-and-bolts-in-oracle-v-google/ http://arstechnica.com/tech-policy/2016/05/top-programmer-de...
- urza 11y agoFor anyone who haven't read it yet: Against Intellectual Monopoly http://levine.sscnet.ucla.edu/general/intellectual/againstfinal.htm http://levine.sscnet.ucla.edu/general/intellectual/againstfi... We should abandon the patent and copyright systems as they are today, they are doing more harm than good.
- rnikander 11y agoMaybe Google could spend a few billion dollars helping Oracle customers move to PostgreSQL.
- Corrado 11y agoI think if I were Google I would be moving everything I have access to non-Oracle technologies. If that means porting Dalvik to Rust/Swift/Go then so be it. Basically, blackball Java and suck all the air out of the room.
- coldcode 11y agoOne basic travesty not covered in these comments is that a jury of people who have zero clue what software is or how they work are being asked to judge an entire industry on a topic they can't possibly understand. Sadly in civil cases the concept of a jury of your peers is not a right. In reality a jury of software engineers and the like would make more sense since they at least understand how software is put together. But that won't ever happen in our system because of the complexity of defining a peer in what might be an arcane specialty (not software but other things).
- alecbaldwinlol 11y agoYes, I completely agree with the above. Litigation is handled poorly, taxation handled poorly (federal and state), identity handled poorly (Social Security Admin), legislation, elections, law enforcement, and these are just the things I can think of... At every step of the way, something or someone outside of your business can topple your personal life and your company's life just for trying to do business in the USA. So you either try and deal with it, or go abroad and be labeled as something else entirely
- ccvannorman 11y agoLOL, kind of like the 18th century witch hunts where the witches cry, "If you must burn me at the stake, at least put me to trial by jury of OTHER WITCHES!" Imagine how that would have gone over :P
- seunosewa 11y agoBad analogy. Nobody is being punished for being software engineers.
- alecbaldwinlol 11y agoBut isn't this an ironic example, because the witches weren't actually witches, it's just that the normal observer could be convinced they were?
- deleted 11y ago
- jdright 11y ago> Bicks moved on to another e-mail, which he was allowed to put up on the courtroom screens. The message was a note from Andy Rubin to upper management, laying out strategic options for Android. One option was to do a deal with Sun, while a second option to go ahead and use Java without a license, but the company would "make enemies along the way." If it weren't for the dreaded consequences to the industry, I would love seeing Google losing this. They well deserve with these attitude. But then I remember their enemy is Oracle. Oh my, I will close my eyes and flip a coin...
- lsaferite 11y agoYou think they should lose based on them breaking a law or you would want them to lose because you don't like them? If it's the latter I guess it's a good thing you don't like Oracle a little more. As you pointed out, this case had far ranging consequences for the software industry and any personal opinions of how much you personally like or dislike any company need to be 100% put aside.
- jdright 11y agoI don't need to put nothing aside because I'm not the jury. I don't like Google's attitude and I don't like Oracle's attitude neither. To me both deserve to lose, but how is that possible? No matter what the result of this will be, it will be sad. They are the worse that can happen to software industry.
- emeraldd 11y agoHere's an question that should pair up pretty well to the API copyright-ability question. Is the list of words and their order in a dictionary copyrightable?
- harryh 11y agoYes.
- emeraldd 11y agoI can see the definitions being copyrightable yes, but I don't see how an alphabetically arranged list of words (just the list) would classify as copyrightable: https://en.wikipedia.org/wiki/Wikipedia:Copyright_in_lists#Arrangement https://en.wikipedia.org/wiki/Wikipedia:Copyright_in_lists#A... Hence the question ..
- harryh 11y agoHasbro has (somewhat) successfully argued that the list of Scrabble words is copyrightable.
- harryh 11y agoSo let's say I have a file PayYourSalary.scala, and somewhere in that file there is a method: def payEmployeeForOneDay(rate: Int, minutesWorked: Int = 8) = { // other stuff here } As you can see, there is a bug here. This method used to have a parameter hoursWorked with a default of 8 (a reasonable default!). But then it was changed to minutes and someone forgot to update the default. Because of this, some people ended up getting paid 1/60th of what they were supposed to. That's a declaration but it certainly looks like a bug in the code to me! Larry is being absurd. If it's in a file with a .java extension (or .scala, or .c or even .h) it's code. If it's source that a compiler or interpreter sucks in then it's code.
- Crespyl 11y agoYour sample code is an interesting case because the nature of declarations in Scala (among other languages) is distinct from the nature of declarations in pure Java. Setting a default value for an argument is an assignment, a real action that is taken by the code at runtime. The Java equivalent would be in two (or three, depending on how you count) parts, something like: // Do the things. // If minutesWorked is left at -1, this procedure will use the default value of 480. void payEmployeeForOneDay(int rate, int minutesWorked) { // inert declaration if (minutesWorked == -1) { minutesWorked = 8; } // active code with bug // ... } Here we have a human readable specification of behavior, which has zero impact on the compiler or generated code, a machine readable description of an interface for other bits of software to interact with this bit of software, and some working code that will make something happen. This is interesting because the specification being described and implemented is not fully encapsulated by the function declaration/API, but also by the "non-code" english comment attached to it. Is it fair use for me to copy this API by using the same function declaration but rewording the documentation, but writing my own implementation of the function body to correctly match the comment? What if I implemented a bug-compatible version of the body from scratch, and rewrote the comment to match?
- didip 11y agoSomewhere, somebody at Google bemoaned: I told you we should have bought Sun! Buying Sun is literally cheaper than this lawsuit. Oracle is so ridiculous.