11 ms·
The Next Twenty Years of Java: Where We've Been and Where We're Going
- bcg1 11y agoGlad to see that I'm not the only one who still likes the JVM after living through the good, the bad, and the ugly with it. Freeing Java with the GPL was an amazing move by Sun and kudos to everyone who made that happen. Without that action, there likely would not be another 20 years at this point. I think the article is good and I concur that the JVM's future as a compilation target looks promising. Personally I'm very excited about the prospect of the JVM being a major platform for Perl 6... Perl has an amazing community and I look forward to an influx of true hackers into Javaland.
- amyjess 11y agoI dislike the Java language, but the JVM itself has excellent tooling. Maven and OSGi are wonderful, wonderful things.
- jcadam 11y agoI'm not sure if this is meant to be serious or not. I suppose if someone has no experience outside of the Java ecosystem (like many of the developers I've had to work with over the years), Maven and OSGi might appear to be 'good' things.
- fleitz 11y agoThis is the Zen of Java.
- EdwardDiego 11y agoYour comment is sneering and dismissive without any substance. Why is Maven bad instead of good, and what experiences do you have that lead you to that opinion?
- Someone1234 11y ago> Freeing Java with the GPL was an amazing move by Sun and kudos to everyone who made that happen. But due to recent legal rulings (and assuming they don't get overturned in the supreme court) Oracle has effectively locked Java back down. Even if it is GPL, Oracle has managed to copyright the APIs themselves, making the GPL-ness of the Java codebase more or less meaningless. Sun did make Java free, no doubt about that, but under Oracle it is hard to argue that Java remains free. It is an Oracle product that Oracle owns, and if you try to fork it you will be sued (Oracle has made that point abundantly clear). To be honest the GPL is now inadequate against this new type of copyright enforcement.
- narrator 11y agoIANAL, but it seems to me that Java 1.6 is GPLed and the implementation contains the interfaces. As long as they stick to JDK 1.6, which is good enough, they're fine.
- FigBug 11y agoIsn't the issue that Google didn't fork it, but instead re-implemented it and the re-implementation had Oracle code in it? If Google had forked it and kept their version under the GPL they would have been fine.
- pron 11y agoI don't think you understand. That APIs are copyrightable means that the GPL applies even to the API. The GPL does not allow any further restrictions, and Oracle isn't imposing any. You may do with OpenJDK as you please as long as you comply with the GPL. You may re-implement the APIs, or use HotSpot's JIT to compile Brainfuck bytecode -- anything at all. That doesn't mean you can use the trademark Java for the result, but that's beside the point (and applies for all open-source projects). If you don't want to comply with the GPL and you still want to build an implementation of Java -- which is what Google did -- only then do you have to comply with Oracle's alternative licensing, which forces you to make your implementation fully compliant (Android isn't) and places further restrictions (such as the use on mobile devices). In any case, whatever applies to Java applies to any other GPL project. As to Oracle suing you if you fork Java (and not abide by the GPL), let's just see what actually happened there: 1/ Google reimplemented Java not under GPL 2/ it did so while breaking compatibility, and 3/ to directly compete against what was then on of Java's main sources of income. So, yes, I think it's safe to say that if you make an incompatible implementation of Java to directly threaten Oracle's business, they will sue you. I have a feeling that other companies would do the same.
- pquerna 11y agoJava was not free'ed by the GPL. Its a mirage. You've been deceived. The specific implementation of the OpenJDK is available under the GPL, but the TCK, which is basically all of the test cases, is essentially proprietary. Can you imagine Google writing Go, but keeping the Test cases for themselves? Well, they would let you use the test cases, but only if you used Go in way Google wanted you to. If you wanted to compile Go on the Raspberry Pi, or on anything 'like' a Phone, well that was off limits, and you could no longer use the test cases. It's bizarre. It's evil. The JVM is a great platform, but it is not "free".
- rbanffy 11y ago> the TCK, which is basically all of the test cases, What if a new set of compatibility tests were derived from OpenJDK's behavior and all major Java-invested vendors who wouldn't mind poking Larry in the eye (I suppose not too many people would find that objectionable), decided that new test set is the de-facto compatibility reference?
- pquerna 11y ago"We", the royal hacker we, non-Oracle companies, tried, it failed: http://en.wikipedia.org/wiki/Apache_Harmony http://en.wikipedia.org/wiki/Apache_Harmony
- rbanffy 11y agoThe dynamics of a GPL-based project are somewhat different from an Apache-based one. Maybe that difference could be meaningful here.
- jslove 11y agoOracle owns Javascript too.. http://tsdr.uspto.gov/#caseNumber=75026640&caseType=SERIAL_NO&searchType=statusSearch http://tsdr.uspto.gov/#caseNumber=75026640&caseType=SERIAL_N...
- bcg1 11y agoThat's a good point and you're justified in saying that it could have been better if the TCK was GPL'd too. But in reality the TCK is not part of the language, the virtual machine, or anything else that most hackers use. And we actually have a free JVM implementation that passes the TCK and always will as long as that is important, and I would argue that having 2 is much less important than having 1. And if its really that important... we could make our own TCK and force Oracle to become bug for bug compatible with us I think much more relevant to being 'partially free' would be the example of Android... if they had released the whole platform as GPL the wouldn't be facing a billion dollar lawsuit that threatens the very possibility of building compatible APIs altogether... instead they chose to be as proprietary and control freakish as they could get away with while still pretending to be a community project... you can at least compile and run OpenJDK on almost any platform... while Android is notorious for being technically open source but in practice nearly impossible to run without proprietary components
- jph 11y agoJava's best time may coming up because of the Internet of Things. At Sun JavaSoft in the '90s, we had IoT prototypes working well, such as distributed networking, home automation, automobile controllers, and wearable computing. It's great to see these IoT concepts are coming to fruition.
- unclebucknasty 11y agoJava was truly ahead of its time in that vision. Its promise was initially its portability, and it always had a network-friendly orientation. But the plethora of interconnected devices that we have and envision today simply didn't exist at that time. If Java hadn't hung in there, we'd be talking about another, more recently created language designed for this purpose.
- rudiger 11y agoActually, Java was originally developed as a programming language for smart appliances. Its roots are in IoT and embedded systems with limited resources.
- codesushi42 11y agoDeployed on the server or to the device? If you are referring to device, I'm extremely doubtful. I remember that Oracle had a Java booth at the San Mateo Maker Faire 2014. I was at the Faire the entire 2 days and would pass the booth every so often in the convention center. I hardly saw anyone take any interest in the idea of Java on embedded devices, and the booth remained empty despite some good presentation with large signs and plenty of floor space. Anecdotal? Maybe. But I think many device guys would cringe at the idea of something as bloated as Java running on a device. I've done my share of Java on server and Android at Google, and I certainly do. And by bloated, I mean things that come with Java-- large dependency trees, libraries, verbose code etc. I think both NodeJS and Python are gaining more mindshare on the device-side: https://github.com/rwaldron/johnny-five https://github.com/rwaldron/johnny-five If you mean server-side, I would agree more. Java is certainly fast enough to run the data collection frontend. Kafka and Storm are great libraries that you can fit into a Lambda architecture for processing real-time data. And of course there are frameworks like Hadoop, Mahout, etc for the batch processing end. Still, there's MQTT which isn't Java-centric, and IMO lacks an adequate message broker in Java. And Go is a another good option on the data collection side as well, and will probably get better.
- coldtea 11y ago>Today, the JVM runs on an estimated 89% of computers, 3 billion mobile phones, and 125 million TV devices. I'm not even sure the above is technically correct. But even if it is: 1) it runs on most of those "89% of computers" as Java Applets, a technology noone cares about, not as a readily deployed Java runtime for the desktop. 2) Those 3 billion mobile phones either are Android, in which case they don't exactly run Java, or are insignificant featurephones with mobile Java that again nobody cares about. 3) Nobody cares about those "125 million TV devices" as platforms either.
- akandiah 11y ago> 2) Those 3 billion mobile phones either are Android, in which case they don't exactly run Java, or are insignificant featurephones with mobile Java that again nobody cares about. No. Java is more pervasive than you think. It's widely used in SIM cards: http://en.wikipedia.org/wiki/Java_Card http://en.wikipedia.org/wiki/Java_Card You can't get away from it.
- coldtea 11y agoStill, SIM cards are not a platform anyone cares about either. It's not like it matters what runs in SIM cards with regards to Java's viability. (Not to mention they'll probably get the boot soon, as they're an obsolete technology)
- SlipperySlope 11y agoHere's hoping that Oracle loses its US Supreme Court case over copyright of Java API's. Otherwise I love that Java and GNU/Linux CRUSHED Microsoft in mobile.
- krschultz 11y agoOne thing to note, GNU/Linux definitely did not crush Microsoft. Android/Linux maybe, but Android/Linux and GNU/Linux are pretty far apart. There is almost nothing GNU in Android. Honestly the whole "GNU/Linux" naming things makes a whole lot more sense in light of Android than it did when we Linux was basically only popular in conjunction with GNU based desktops & servers. http://www.gnu.org/philosophy/android-and-users-freedom.en.html http://www.gnu.org/philosophy/android-and-users-freedom.en.h...
- vardump 11y ago> Today, the JVM runs on an estimated 89% of computers, 3 billion mobile phones, and 125 million TV devices. Today, 100% of them run C. Without C, there'd be nothing for Java to run on.
- Someone1234 11y ago"Run[s] C" doesn't actually make sense. C outputs assembly, so most of them run assembly. There are a lot of mobile platforms with no [obvious] C compiler, or certainly not trivial access to one. Running Java makes sense, since JavaByte is a "thing." Running C is just another way of saying they run native binary blobs which is meaningless and obvious.
- vardump 11y agoIt makes as much sense as saying they run Java. Java bytecode is JITted into very same machine code. JVM outputs "assembly" [1] as well. The interpreters are also written in C or C++, even the partially hardware assisted ones, such as Jazelle. All executable code is native "binary blobs" in the end. But they're written in language X. What I'm saying, is that 100% of those devices contain code written in C. C is also a "thing", it just happens to be usually compiled ahead of time. [1]: Technically the term should be native/machine code or such. Assembly usually refers to text format assembler listing. Edit: Wow, so many downvotes? Even though that 100% was just as meaningful as 3 billion. Ok...
- tsotha 11y agoC or any compiled language, you mean.
- vardump 11y agoWell, C is usually the lowest common denominator language. Something that everything can run. Something you can truly run everywhere, although not necessarily as-is without some porting effort.
- CrystalGamma 11y ago"Nashorn"? I guess someone made a shout-out to Rhino ...
- biggerbob 11y agoWhat?
- justincormack 11y agoOdd not to mention Dalvik or Android in this at all.
- therealmarv 11y agoI'm just happy I could deinstall Java on my mothers PC because 98% (?) of LibreOffice functionality runs without Java, so no need to keep this hell of update software on a Windows machine. The first thing Java and especially the main JVM maintainer for PCs (Oracle) should do is: 1. stop distributing junk like Ask toolbar. 2. make Java automatic updates as easy as updating Chrome. JVM is big adware nowadays and annoying to update for normal non tech people out there.
- spiralpolitik 11y agoJava's challenge over the next few years is going be how to make compatibility breaking changes to the language and standard library without ending up in the same quagmire that Python did. If they can do that then I think both language and VM have a decent future ahead of them.
- WalterGR 11y agoJava's challenge over the next few years is going be how to make compatibility breaking changes to the language and standard library I don't follow Java, so: what sort of breaking changes need to be made? Why?
- MrBuddyCasino 11y agoJava is where it is now because it is a stable platform. They would be foolish to introduce compatibility breaking changes.
- jebblue 11y agoThe blog is being served by a server called Cowboy, some quick Googling shows it's written in Erlang. Overall if Oracle doesn't screw it up, Java (at least the platform) does have a bright future.
- vorg 11y ago> 2006-2010 [...] a new crop of JVM-based languages emerged. [...] JRuby was soon followed by Groovy, Scala, Clojure and many others. Each language introduced features that were unique and unavailable in Java Languages that are JVM versions of already existing languages were out long before JRuby (JVM' Ruby) and Clojure (JVM's Lisp). I remember Jython (JVM's Python) was first released around 1997, then called JPython. At that time there was also the Jacl language (JVM's TCL). Beanshell's also an older language, which Groovy cloned and added closures (since made obsolete by Java 8's lambdas) and a meta-object protocol to. As for Scala, it's like a more statically-compiled and functional version of Groovy, about which Groovy's creator said he'd never have created Groovy if he'd known about Scala.
- WalterGR 11y agoGroovy cloned and added closures (since made obsolete by Java 8's lambdas) Java's lambdas aren't real closures, though. Are Groovy's? Edit: "Real" is, I suppose, arguable. By that I meant: Java's lambdas don't support mutation of captured variables.
- speakeron 11y ago> Java's lambdas don't support mutation of captured variables A variable has to be declared 'final' to be visible from a Java closure (anonymous inner class in pre-1.8 Java). This means you can't mutate a primitive or an object reference, but it's possible to change the contents (instance variables) of an instantiated object captured by the closure. (And, indeed, this is exactly what you do in this situation).
- WalterGR 11y agoAh, I see. Thanks.
- vorg 11y ago> Java's lambdas don't support mutation of captured variables I've never used Java 8 lambdas but that sounds the same as Java's inner classes which I'm now guessing lambdas are syntactic sugar for. I remember the common trick with inner classes to enable mutation was to declare and initialize a size 1 array of the required type instead of the type itself, and refer to, say, myvar[0] instead of myvar inside the class. I'm guessing this would then work with Java 8 lambdas also. > Java's lambdas aren't real closures, though. Are Groovy's? I last used Groovy at version 1.8 so don't remember for sure but think they did allow mutation. Groovy's closures also have the delegate lookup flag to enable dynamic scoping of names within closure code passed around and executed later, which I don't imagine lambdas have. Such a trick is done with macros in lisps like Clojure.
- PaulHoule 11y agoIn my mind, Java is the first programming language that was designed by adults.
- tormeh 11y agoAda?
- nostrademons 11y agoAlgol 60?
- nbevans 11y agoSeems rather pro-biased towards Java. Case in point: 1. Not a single mention of its main competitor .NET. 2. Not a single mention that as Java becomes more and more closed source and proprietary, under Oracle's stewardship, .NET becomes more and more open source and community driven (in the true sense).
- jorgecastillo 11y ago>It has grown under Oracle -- both in openness and adoption. No it has not, basically Sun did all the hard work on this areas. If Google looses (lets hope not) the lawsuit vs Oracle, I hope they give Oracle what they deserve and switch to C#. Either way I am not using Java (I don't dislike it!) for anything outside of Android.
- tapirl 11y agogolang is the way
- nindalf 11y agoIts not possible to use only Go for Android application development. The goal of both the Go team and the Android team is to make Go a candidate for JNI development as an alternate to C/C++. The rest of the Android app, especially the UI can only be written in Java.
- tapirl 11y agoIt is possible, maybe not now, but very possible later. UI just is graphics painting using OpenGL ES.
- GFK_of_xmaspast 11y agoIt's really too bad RMS squashed gcc targeting the jvm.
- jslove 11y agoJavaScript beats jaVA in every reGARD.. Java is the CoBOL of the 2000s...
- kba 11y agoGood write-up, but damn it that guy has got to learn the difference between "its" and "it's". It's killing me!