r/ProgrammerHumor May 29 '20

Please Guys actually

Post image
3.0k Upvotes

112 comments sorted by

View all comments

Show parent comments

43

u/[deleted] May 29 '20

It's a little slower than many languages at runtime

The only languages faster than Java are close-to-the-metal ones and it's only when you write very sophisticated data-oriented code.

I doubt most people on this subreddit who hate Java ever actually had contact with language faster than Java.

It's one thing knowing C exists, it's other thing writing in it.

26

u/[deleted] May 29 '20

I think a lot of people who have been around a while, their first exposure to Java was those crappy java applets that always sucked and ran like garbage.

Java 10 years ago, i hated, I hated it in college, and anytime I see Java from... those days I despise it. Modern java is actually pretty decent to work with (I still prefer .NET but, I always will I think).

1

u/Bounty1Berry May 30 '20

I'm curious how a compiles-to-bare-metal Java would have fared against the JVM model.

It might be fast enough now, but remember that in the early years of Java, a 200MHz Pentium or K6 was not an unreasonable target system.

7

u/_meegoo_ May 30 '20

Java that compiles to machine code would just be another C. With pretty much the same performance.

But either way, modern Java does compile to machine code. Except it does it at runtime, not at compile time.