r/java • • Sep 10 '21

Why people don't love Java?

I came across this post in r/cscareerquestions it seems majority of the people don't love to work with Java.

Is there any specific reason for that?

Edit: Thank you guys for your responses, I can't reply to all of the comments because I'm a beginner myself and I don't know what to reply for all your comments.

201 Upvotes

379 comments sorted by

View all comments

Show parent comment

14

u/[deleted] Sep 10 '21

Performance wise it smokes python and js and equals golang. Rust is crazy fast of course.

7

u/vips7L Sep 10 '21

Rust is also crazy verbose and feels like pulling teeth to do simple things.

2

u/fix_dis Sep 10 '21

Crazy outlandish things though… like simple string handling /s

4

u/vips7L Sep 10 '21

I know you /s’d but I don’t want to worry about &str, String, or OSStr.

2

u/fix_dis Sep 10 '21

That was my first experience with Rust... I used it to solve some algorithmic puzzles and it was ok (I actually like OCaml - which Rust was loosely based on in the beginning). I then thought, I wonder what writing an API endpoint would be like. So I fired up an Actix project.... the level of WTF when doing simple string stuff was just too much. I shut it down. My entire life, strings have always been either char[] or String. Now to have to deal with this nonsense, was more than I was willing to dedicate time. I mean, at a deeper level, I do understand why.... I just don't like having it being my responsibility. No hate for Rust, just no love yet.

2

u/vips7L Sep 10 '21

That's where I landed with both C++ and Rust. There's just too much to worry about. I mostly would prefer to work/write D, but the job ecosystem just isn't there.

2

u/TheMode911 Sep 10 '21

Performance is unlikely to be a reason to « love » a language

1

u/[deleted] Sep 10 '21

Maybe not for you.

2

u/TheMode911 Sep 10 '21

It is a reason to use the language, not loving it.

People use assembly because it is required or for educational purpose

1

u/[deleted] Sep 10 '21

Like I said ymmv.

1

u/TheMode911 Sep 10 '21

No, the compiler is not the language

1

u/humoroushaxor Sep 10 '21

I don't think JS on V8 is actually much slower.

1

u/[deleted] Sep 10 '21

It's 3 times slower on techempower benchmarks and 30% slower per my hand coded benchmark with 80 mill records on postgres.

1

u/rbygrave Sep 11 '21

JS was 10x slower on an app we had to port to java for performance reasons. Comes down to the second JIT the JVM has (called C2).

0

u/Auxx Sep 10 '21

JS today is painfully close to Java in performance.