Why I hate Java.

#programming #java

@n1 Nobody forces you to use all that products. You can reach the same with much less, even in Java.

@markus "Nobody forces you to ..." - I'm sorry but that's not an argument nor technical one.

Java with JVM was designed for '95 world where software was simple (very primitive comparing to contemporary software). Actually it was written and then trashed by one dude. Sun pulled it from the bin not because "what a merit" but because they needed "something" at that time.

If you want to write modern software use modern (well designed tools!) like Rust, Go or Zig. No runtime, ~0 overhead, fast.

@n1 @markus Java was not written by one guy. You are mixing up Java and JavaScript. Zig and Rust are system languages. Not really contenters to Java. By the way Zig is interesting but still some way away from beeing stable. And Go isn't really faster. The Java compiler is better in optimizing, while Go has advantages because of the different memory layout. Startup times of Go programs are better compared to non-native image Java programs.

@andhet @markus Rust and Zig are universal langs. You can write a kernel or a web framework or a CLI app with no fuss. Java was indeed written by James as Oak with a little help from Mike and Patrick. It was amazing in that time. Was.

Anyway this would need a broader discusion, time and space. I respect your knowledge and I really hope Java gets better, folks won't say stuff like "slow java" or "eats all the memory" and will install Java apps with no hesitation. Also no NullPointerExcepions.

@n1 @andhet I do respect you, too. But you cannot compare Oak with today's Java. There are 30 years of development spent into Java meanwhile, and lots of very bright guys are right now hacking really cool things into JDK 25 in this very moment, still. You already can write system extensions (check https://mostlynerdless.de/) , web frameworks and CLI app with no fuss in modern Java. I don't know in which year you stopped tracking Java's progress actively, but what you write sounds like it was 1998.
Mostly nerdless

Every two weeks a text on profiling, debugging or eBPF

Mostly nerdless