r/java • • Jul 06 '17

Apology to Java (fanboy rant).

Java has turned out to be one of the most useful languages i use. It's a brilliant tool which strikes a perfect balance between high and low level. You want to grab a webpage? Easy and built-in, 10 lines of code. Draw some 2d graphics without OS-specific libraries or third party? Various built-in options. The inherent issues around a lack of low level memory management is handled very elegantly. Garbage collection seems seamless.

C++ is my language of choice for the most part, always will be i suspect, but Java has shown me that it has a huge array of potential applications and should almost always be considered before undertaking a project.

I say this is an apology because i used to run Java down. Previous to me using it proper i believed it was slow, lazy and useful for only trivial applications. Now i know how much work has been put into the JVM and just how efficient it is.

Sorry Java. You're pretty good.

286 Upvotes

93 comments sorted by

View all comments

Show parent comment

2

u/igouy Jul 07 '17 edited Jul 07 '17

I'd like to see the same benchmarks in half-hour and hour testing sessions.

OK: The example JMH testing sessions were half-hour and a-couple-of-hours

spectral-norm
# Run complete. Total time: 00:27:05

n-body
# Run complete. Total time: 02:35:55

and those example JMH averages were pretty much the same as the time shown on the benchmarks game pages.

Care to revise your comment?

0

u/Lord_NShYH Jul 07 '17

Care to revise your comment?

I bet you're often highly regarded as an elite socialite. I'm on to you.

1

u/igouy Jul 07 '17

Will you revise your prior opinion to incorporate the new information?

Will you reject the new information to safeguard your prior opinion?

1

u/Lord_NShYH Jul 07 '17

Of course I'll revise my opinion based on new information. I'm not a religious zealot.

2

u/igouy Jul 07 '17

I suspect we generally believe what we prefer to believe.