5 ms·
>There are some JVM languages that are better and have similar performance. How about a single example?
by eznzt 6y ago
>There are some JVM languages that are better and have similar performance.
How about a single example?
- kevincox 6y agoJava I mean you can argue about the productivity all day but I think I would slightly prefer it. But there are a handful of JVM languages hovering around 2x C performance (after being warmed up)
- vips7L 6y agoCan't wait til they complain that Java is too verbose while they're manually writing for loops in GO.
- DLA 6y agoJava is insanely verbose. Fact.
- vips7L 6y agoIts less verbose than Go. Fact.
- Jyaif 6y agoDo you have anything to back this up? I haven't done any scientific comparison, but my personal feeling is that Go is terser.
- vips7L 6y agoYes the simplest being writing a loop to filter or map. In go you will be writing full loops and intermediate variables. I'm not going to list the go versions because I'm on mobile. In Java: arr.stream().map(SomeClass::someFn).collect(toList()) How about writing a min function for all number types? In go due to no generics you'd have to write a function for every type. In Java: static <T extends Number> T min(T a, T b) { if (a < b) return a; return b; } My comment was more tongue in cheek at the guy above me for stating "facts" though.
- wirrbel 6y agoThis is the Java most haven't seen because their experience is with codebases predating the streaming-API, sometimes even generics. The death of Java will be Scala-written dependencies in the Maven-packages ecosystem ending up as a liability.
- lenkite 6y agoIf that's the scale, then Go is archdemon-salesman verbose. Primal-Cosmic Fact.
- metaltyphoon 6y agoC# and the CLR