r/programming • • Feb 22 '15

Java Makes Programmers Want To Do Absolutely Anything Else With Their Time

http://www.forbes.com/sites/quora/2015/02/21/java-makes-programmers-want-to-do-absolutely-anything-else-with-their-time/
35 Upvotes

636 comments sorted by

View all comments

Show parent comments

18

u/bcash Feb 22 '15

There definitely is a lot of people that hate Java. At this point, there are some much nicer alternatives (Rust, Go, D, etc.). None have existed long enough to reach the maturity required to supplant Java yet, but I definitely think it will happen within the next 5-10 years.

Not a chance.

The space that Java occupies is, if anything, thinning out rather than gaining competitors. Ten years ago it was the arrival of higher-level scripting languages, more recently there's been the flood of C++-replacements (of which Rust, Go, and D are all members).

The middle-ground, the managed runtime level, is lacking in competition. Or rather the competition that exists is complementary (e.g. other JVM languages).

3

u/rcode Feb 22 '15

C++-replacements (of which Rust, Go, and D are all members).

Except that Go isn't (and never was) a C++ replacement. Even the Go authors decided it was a mistake to have called it a "systems language" when it came out.

8

u/Dworgi Feb 22 '15

C# says hi.

And considering it's gone open source, that's a pretty big competitor.

8

u/[deleted] Feb 22 '15

My BluRay player, set-top box, smart cards, Android tablet, bank, etc. tell me Java is here to stay.

21

u/weeezes Feb 22 '15

But a dude on the internet says it's not, so I just have to go with that.

20

u/[deleted] Feb 22 '15

And considering it's gone open source, that's a pretty big competitor.

Unless Linux becomes a first class citizen there is no real competition.

4

u/Dworgi Feb 22 '15

Servers. Never forget about servers.

2

u/[deleted] Feb 22 '15

That is Microsofts's stated intent. Their builds pass on Linux now, there's a ways to go, but I'd say that CLR and LLVM languages are significant threats to Java in the server space. If Microsoft or Apple start running Clojure and/or Scala as first class languages then Java could be in real trouble.

10

u/bcash Feb 22 '15

If Microsoft or Apple start running Clojure and/or Scala as first class languages then Java could be in real trouble.

That's really not likely to happen.

1

u/kcuf Feb 23 '15

There was a posting a couple of months back for an amazon team that was going to be using clojure. Not sure what's come of them...

1

u/bcash Feb 23 '15

The reasons Microsoft or Apple will not adopt Scala and Clojure as first-class languages for their platforms have nothing to do with the relative strengths and weaknesses of those languages.

1

u/kcuf Feb 23 '15

I understand, there are many factors governing their decisions. I was just pointing out there are large scale companies that are willing to branch out -- albeit for just one team, so not really first-class...

0

u/[deleted] Feb 22 '15

[deleted]

0

u/[deleted] Feb 22 '15

[deleted]

-1

u/[deleted] Feb 22 '15

That and the JVM type system, which has been a pain in the ass for Scala.

6

u/aldo_reset Feb 22 '15

The other way around: the reason why Scala.net ended up being abandoned is because .net's reification of generics makes it impossible to port Scala's type system on it.

1

u/rcode Feb 22 '15

Interesting. Do you have a source/link for more information?

1

u/[deleted] Feb 22 '15 edited Feb 22 '15

Are you talking about Structural Types? Because last I looked that was the feature that was hard to implement on the CLR. After more reading I stand corrected, thanks!

1

u/joequin Feb 22 '15

What do you mean?

-1

u/[deleted] Feb 22 '15

The current JVM has type erasure baked in, the CLR does not.

1

u/CyruzDraxs Feb 23 '15

Go or D fit into the same category--they are managed languages. Rust is also kind of managed, but probably too complicated for use in mainstream app development.

1

u/chrabeusz Feb 22 '15

I don't see any reason why "C++-replacements" couldn't compete with Java. Why would I care if they are managed or not?

3

u/RICHUNCLEPENNYBAGS Feb 22 '15

If you're writing the world's millionth accounting app or whatever you probably want managed code because the performance implications are just irrelevant.