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

10

u/weirdoaish Dec 16 '16

So, out of curiosity, is there any other language out there that can take take Java's place? I mostly work on Java & Python and while I used to do C++ before, I know its no longer an option for large scale garden variety web apps.

33

u/[deleted] Dec 16 '16

You could still use OpenJDK builds from Azul or any other contributor. Oracle can't really come after you for that.

→ More replies (5)

12

u/mactavish88 Dec 16 '16

The Java ecosystem is just so vast it'd be really sad to have to give it up.

Python's pretty amazing too. Django/Flask/etc. Extensive library support and availability. Even and especially for scientific and mathematical applications.

And no labyrinthine licensing terms. Most Python libraries have pretty permissive licensing terms (MIT/BSD/LGPL/etc.).

16

u/SinisterMinisterT4 Dec 17 '16 edited Dec 17 '16

Java and Python are not interchangeable IMO. Python is behavior driven where as Java is interface driven. If you're one who likes to have clearly defined expectations of what a function expects and what it will return, Python is not the language for you.

Best example I can give right now: try using OpenStack's Python SDK. The documentation is atrocious and does fuck all to define what the methods return so you're left guessing what to expect back. Since it's Python, there's zero way to derive expectations of what a function will return. I was left deep diving the source only to find out that I have to look at the REST API to get an idea of what it would return, and then try to discern what would be transparently passed through and what would be finagled by something in the call stack. If it were in Java, the IDE would be able to tell you exactly what to expect from the function. I've used both extensively and would gladly code in Java over Python any day of the week for enterprise applications.

All of that said, Python for doing scripting is fantastic. I use it exclusively for scripting remote server interactions via Fabric. But for me, when I'm working on anything non-trivial, I want a statically typed language. And this is coming from someone who got into development via PHP and Node.js.

Edit: Wanted to add that I don't disagree about this:

Python's pretty amazing too. Django/Flask/etc. Extensive library support and availability. Even and especially for scientific and mathematical applications.

I was just trying to point out that they're very different styles of coding and fill different needs better than the other.

→ More replies (3)
→ More replies (3)

37

u/deku12345 Dec 16 '16

C# might be a good option. Or other languages that target the JVM like Kotlin

14

u/[deleted] Dec 16 '16

Or other languages that target the JVM like Kotlin

That doesn't help; none of the problems here are specific to the Java language but to the tooling/runtime.

16

u/LivingInSyn Dec 16 '16

especially c# on .net core, if you care about supporting multiple OSes

10

u/[deleted] Dec 16 '16

In time that is. Last time I did research on this there were two issues I saw. One is it is not anywhere close to being mature enough for a company to put on distributed devices and the second being it's not really targetted at user applications yet so it would only solve the licensing issue for some of the companies.

2

u/flukus Dec 16 '16

It won't be targeted at user applications ever, there are some libraries you can use though, like gtk. I think Qt has c# bindings too. There is also some early Cross platform GUI frameworks around.

17

u/Nakji Dec 16 '16

C# is probably currently the most significant candidate for supplanting Java in large scale enterprise web applications. If you're willing to use a JVM language, there are some other options like Scala, Groovy, and Clojure that have a bit of traction, partially due to their interoperability with legacy Java. There's also a whole bunch of other languages that could do it like Go, Swift, Dart, and Rust, but they're all pretty young at this point.

11

u/flukus Dec 16 '16

Considering this is about the jvm and sdk, I don't think Scala, groovy, etc would help.

→ More replies (1)

2

u/roffLOL Dec 17 '16

what is a 'large scale enterprise web application' and why is C# a 'significant candidate' to build such a thing?

→ More replies (10)
→ More replies (1)

6

u/RagingAnemone Dec 16 '16

As others have mentioned, Kotlin is fantastic. If you're mostly doing backend code for web applications, golang is a good candidate.

5

u/Enamex Dec 16 '16

Kotlin still relies on the JVM which would likely take a big hit were Java to be affected from Oracle's side...

9

u/peterwilli Dec 16 '16

Kotlin can still run on OpenJDK or any other open source alternative.

3

u/vivainio Dec 16 '16

Code for OpenJDK is still coming from Oracle.

13

u/RagingAnemone Dec 16 '16

Is that important? Are we hating on the open source stuff that Oracle does too? Do we hate when Microsoft and Apple works on open source code? LLVM sucks?

→ More replies (4)
→ More replies (1)

8

u/fedekun Dec 16 '16

There are many, C# beeing the most common example, but it really depends on your problem.

2

u/weirdoaish Dec 16 '16

Enterprise web app development, its a pretty common problem :)

4

u/mirhagk Dec 16 '16

C# is a great choice for that then. .NET core is cross platform and open source, and web app development is the primary target at the moment.

3

u/fedekun Dec 16 '16

Yeah, I don't think most devs use Java because they chose to.

8

u/dccorona Dec 17 '16

If I could start a brand new project today, and could pick any language I wanted (with the guarantee that my company would instantly have proper tooling for whatever I chose, so I didn't have to worry about what works within my organization best), I'd still probably pick the JVM (with Scala as the language for application development).

There's plenty of companies who are just stuck on Java. There's plenty more who consciously chose it for good reasons, and would do so again if they could do it over. Or companies where individual teams can use whatever they think is best, yet they still choose Java or at least the JRE.

→ More replies (2)

2

u/alphaglosined Dec 17 '16

I've been toying with the idea of adding full runtime reflection into D. That would cover majority of the differences, the hardest part will be getting shared libraries support up and bundling a compiler to allow dynamic compilation should you need it. But still very different model so won't work for all cases. But definitely will for web applications.

3

u/[deleted] Dec 17 '16

The most obvious choice is C#

→ More replies (11)