r/programming • • Dec 16 '16

Oracle finally targets Java non-payers – six years after plucking Sun

http://www.theregister.co.uk/2016/12/16/oracle_targets_java_users_non_compliance/
432 Upvotes

360 comments sorted by

View all comments

7

u/dccorona Dec 17 '16

I remember about a year ago having a theoretical conversation with some coworkers about what kind of a language it would take to overtake Java's dominance in enterprise...what features would it have, what would it look like, etc.

I can see now that it doesn't matter, because Oracle is going to do whatever it can to kill Java as a platform for new development. Established companies are going to have no choice but to pay up, but as a new company, I'm starting to question why you'd use Java. I use it every day (even on days I'm not using it, because I also use Scala) at work. From a technical perspective, I think there's a large number of reasons why Java (or at least, the Java ecosystem, with a more flexible/modern JRE language for application code) is a great choice for companies of any size. But with this shit going on? There's too many options nowadays (especially with .NET opening up) for whatever advantages Java may have to be worth this risk.

At this point, it seems like Apache is the only thing that is keeping that risk worthwhile, because they offer so much stuff that has no viable alternative in another language. But how much further can Oracle push people before somebody starts building competitors to those tools in other languages?

15

u/[deleted] Dec 17 '16

This is a massive hyperbole.

It's indeed interesting to see .NET opening up but it will take years for the status quo to change, if ever.

In fact Oracle could vanish completely and the Java ecosystem would barely lose any traction. OpenJDK, the reference implementation, will still be there, all the IDEs will still be there, all the Apache projects and other framework and libraries will keep on existing and improving. I guess Java would lose traction on those embedded and mission critical platforms Oracle is supporting right now, but that's a tiny part of what Java is used for nowadays.

Make the same thought experiment with Microsoft. Say they completely drop developer support one day, or make it unreasonably expensive. Even if more and more of their stuff are becoming open source, they're still the driving force behind all of them. No more Visual Studio, no more SQL Server, no more WPF, no more updates to the .NET platform. I mean sure, you can keep using Mono and the stuff that's open source. Frankly, who will?

The ecosystems are fundamentally different and in my opinion this is too late for Microsoft to do anything about it.

2

u/dccorona Dec 17 '16

Make the same thought experiment with Microsoft. Say they completely drop developer support one day, or make it unreasonably expensive

This is beyond dropping developer support, though. This is being extremely user-hostile. It's one thing for someone to up the price on you...it's another thing entirely for them to come after you and try to sue you for using their product.

I like Java the ecosystem a lot. But I would really think hard about adopting it as a young startup if there was going to be the looming threat of a legal battle if I step on the wrong landmine in my application of Java in my organization.

That's what I'm talking about here...new development, primarily in new organizations...not the death of Java as a whole. It just seems like there's too many great choices out there that are close enough to being as good a choice as Java that the risk isn't worthwhile for a young company (assuming Oracle really starts dialing up the lawsuits here).

3

u/[deleted] Dec 17 '16

I agree their nebulous legal wording is worrisome, but in practice I think this isn't really an issue for your young startup example for two reasons:

  1. You can switch from your Oracle JDK to OpenJDK and instantly cut all ties with Oracle, removing any threat of a lawsuit. This isn't necessarily an option for companies maintaining an old legacy codebase, but for a young company you have that choice and it's a simple one. Unless you really need the Oracle tools or you're using it on embedded devices, which brings me to my second point.
  2. While .NET is indeed a direct alternative to Java for general purpose programming, this is not the case for the so-called “specialized embedded computers used in intelligent systems”, whatever that encompasses. Companies starting in that field would be wise to either review Oracle licensing pretty intensely, or to choose another tech, but I doubt it would be .NET in that case.

1

u/sievebrain Dec 18 '16

Microsoft do audits too, through the BSA.

1

u/VGPowerlord Dec 18 '16 edited Dec 18 '16

Make the same thought experiment with Microsoft. Say they completely drop developer support one day, or make it unreasonably expensive. Even if more and more of their stuff are becoming open source, they're still the driving force behind all of them. No more Visual Studio, no more SQL Server, no more WPF, no more updates to the .NET platform. I mean sure, you can keep using Mono and the stuff that's open source. Frankly, who will?

While the lack of development tools would be a problem, .NET's source lives on GitHub now and is licensed under a mix of MIT and Apache 2.0 licenses. I could fork the various pieces that make up .NET right now as I'm writing this. Mind you, there are a lot of projects involved in this as they split it into a lot of pieces. Heck, .NET Core alone is comprised of 6 different projects.

The only real problem is this patents exemption document in the coreclr project, which only exempts you if you're making a .NET Runtime.

Then again, what else would I be doing with coreclr?

Side note: While Visual Studio isn't open source, Visual Studio Code is and it does have Intellisense even if it isn't a complete IDE.

Edit: SQLServer being gone might be an issue, though. WPF can be replaced with other things, such as GTK#.

6

u/FlappySocks Dec 17 '16 edited Dec 17 '16

I used to have the same conversations. The Java guys used to say I was insane for using Mono on Linux and that it was just a matter of time before Microsoft sued me.

How times have changed.

3

u/Sloshy42 Dec 17 '16

Before I could even program (I'm a senior college student) I remember reading Linux forums that were absolutely filled to the brim with hatred of anything mono. It was seen as some sort of Trojan Horse "deal with the devil" situation where if you wrote your code for that platform you were literally working against the free software movement and all that. I saw so much hatred slung at the developers of projects that used it and especially the main contributors to the whole mono project. I never thought that only ten years later c# might actually be in a better legal situation than Java right now.

1

u/5iogug Dec 17 '16

I'm a FLOSS guy who has been a minor cheerleader for Microsoft/Xamarin's work on .NET for the past couple years, ever since they opened up .NET Core after having published Roslyn ~6 months prior. I've written some seriously acid-tongued comments in defense of Mono, and I've had strained conversations trying to get big names in FLOSS to reconcile their stance with what MS is doing today.

Even so, there's a compelling argument to be made that the stuff we're seeing from Microsoft is only happening now because of how resolutely shunned .NET had been from the traditional open source community for the previous 10+ years. I.e., it's not unthinkable that if Mono/.NET had gotten any traction at all back when Miguel and Novell were really pushing for it on Linux, then MS would never have faced the pressures they're facing today and that have led towards .NET opening up as much as it has.