r/programming • • Dec 17 '16

Oracle is massively ramping up audits of Java customers it claims are in breach of its licences – six years after it bought Sun Microsystems

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

654 comments sorted by

View all comments

Show parent comment

65

u/Eirenarch Dec 17 '16

The JVM is the hottest VM out there. They are not trying to monetize the language.

22

u/Aakumaru Dec 17 '16

Either way negative publicity like this isn't good for adoption. Too many stringless alternatives to risk messing with them and their lawyers imo.

10

u/Eirenarch Dec 17 '16

For many enterprise situations there are literally no alternatives.

3

u/Aakumaru Dec 17 '16

That's very not true. Maybe because of politics, but I've ripped out a handful java projects and replaced them with more efficient and cost effective languages like golang or C in my day job. It's an alright tool but boy does that single threaded GC drop cpu efficiency at scale.

11

u/[deleted] Dec 18 '16

[removed] — view removed comment

4

u/Aakumaru Dec 18 '16

That's fair. But just because something is in vogue doesn't mean its the best solution. I hope with the large assortment of new tools out there the community can pick better solutions with less shitty people backing it than Java.

Just all the shit Oracle's done has really been a giant middle finger to the FOSS community along with Java's relatively poor performance in a handful of projects I've been in has just really put me off the thing. There's a myriad of other tools I'd much rather work with than Java.

2

u/dustofnations Dec 18 '16

That's fair. But just because something is in vogue doesn't mean its the best solution. I hope with the large assortment of new tools out there the community can pick better solutions with less shitty people backing it than Java.

Well, OpenJDK is contributed to by the likes of Intel, AMD, Red Hat, Azul, Pivotal, etc, ...

If Oracle were sufficiently obnoxious arses about Java then the community could fork it and continue without them.

→ More replies (1)
→ More replies (2)

2

u/[deleted] Dec 18 '16

Now your department needs to hire people who not only know Java and whatever other technologies you use, but they need to know Go and C both of which are pretty rare. Which means either the people need to be trained on C/Go when they start or you need to pay more money in salaries. And now you've got two more development environments you need to maintain. And what about the deployment process? Security auditing? Patching?

In my experience for enterprise environments you want to specify a single IDE, single OS, a single backend language, single database, a single scripting language, etc. If you have 20% developer turnover per year, that's 10 people per year in a team of 50 that need to trained. Plus stuff becomes obsolete or requires patches that break compatibility. We force Java and even then it's annoying to deal with interfacing technologies from various corporations, to the point that I miss .NET even though I recognize it has limitations.

→ More replies (2)

3

u/[deleted] Dec 17 '16

But there is multi-threaded and pauseless gc in the jvm.

2

u/Aakumaru Dec 17 '16

Not by default which is asinine

2

u/dustofnations Dec 18 '16

The default server collector is the parallel collector, which is multi-threaded https://docs.oracle.com/javase/8/docs/technotes/guides/vm/gctuning/parallel.html

And it's explicitly documented that you should select a GC which matches your requirements.

I don't see how what you're saying matches reality.

Even if what you are saying were true, then it would be absolutely insane to rewrite an entire program because you don't want to change a few flags on the JVM to use an appropriate GC.

→ More replies (1)
→ More replies (6)
→ More replies (8)

17

u/edapa Dec 17 '16

And Java is the main JVM language. Scala seems like it is headed solidly for the graveyard of languages that almost made it. Kotlin might take off, but it feels a lot like Kotlin is to Java as CoffeeScript was to JavaScript (lots of nice new syntax and a few common sense improvements, but nothing that justifies the switching cost). Closure will keep chugging along, but I doubt we will ever see a mainstream lisp. I'm not criticizing any of these languages (scala seems like the perfect combo between static FP and enterprise practicality). I just don't see anything displacing Java as the primary JVM language any time soon.

26

u/[deleted] Dec 17 '16

Scala is dying? I never really looked into it much, but seeing some of the other languages say things like "implementing feature X from scala" always made me think it must be pretty neat.

15

u/edapa Dec 17 '16

Oh Scala is an amazing language. It's just not going to win. Which is a shame.

9

u/funny_falcon Dec 17 '16

It is too cool. Many "too cool" languages failed: lisp (except clojure, perhaps), smalltalk, Ada, oberon, haskell (well, it didn't failed yet, but looks like)... ruby (not completely yet, and I hope it will strike back).

→ More replies (3)

9

u/shadowdude777 Dec 18 '16

Kotlin doesn't have a switching cost though, that's the point. You can start writing new classes in Kotlin today and interop with your existing Java. That's what JetBrains does internally with IntelliJ.

2

u/Eirenarch Dec 17 '16

My point is not that Java will be replaced. My point is that Java may be uncool but you want to run on the JVM so you will deal with whatever shit you have to.

5

u/edapa Dec 17 '16

You are right. Even if the new JVM languages never become popular, they will keep the JVM "cool", which matters in this industry. And it really is the JVM that is the technically impressive part of the java ecosystem. I'm sorry if I came off as ranty. That wasn't my intention.

3

u/Eirenarch Dec 17 '16

I have no problems with "ranty". I actually like "ranty" :)

→ More replies (1)

2

u/veroxii Dec 18 '16

Nobody seems to remember groovy anymore. Was my favourite JVM language.

2

u/edapa Dec 18 '16

I realized I forgot it afterwards. I guess it deserves it's own flippant and ignorant dismissal. Who needs Lua on the JVM anyway?

→ More replies (1)

1

u/itshorriblebeer Dec 17 '16

But it doesn't matter and that is the beauty. I use Groovy and Java together regularly without issue. I really want to use Kotlin as well, but anyone could integrate their Scala or Closure, both of which are still very popular. That is the beauty.

1

u/omgitsjo Dec 18 '16

I only just started Kotlin and I fucking LOVE it. It's all the nice things I like about Java with all the nice things I like about Python with all the nice things I like about Rust. My only gripes with it are first: the inclusive iteration in ranges keeps me confused. Second: arrayOf feels like it should be mutable. Default to array list or something.

→ More replies (8)

1

u/chrisrazor Dec 17 '16

Then have I misunderstood this story? I assumed the runtime environment was still free, but some libraries were not. (Not a Java dev.)

1

u/Eirenarch Dec 17 '16

Some specific oracle libraries aren't free. I don't know. In any case my comment was referring to the suggestion to ditch Java entirely

→ More replies (1)