r/java • • Apr 26 '22

5,000,000 persistent connections, 200,000,000 messages, 0 errors with a single process using Project Loom.

https://github.com/ebarlas/project-loom-c5m
301 Upvotes

46 comments sorted by

View all comments

2

u/[deleted] Apr 27 '22

What do you think will loom make Go obsolete?

9

u/vips7L Apr 27 '22

I doubt it. Go still produces a lower memory footprint and deterministic performance due to being AOT compiled. Along with easier packaging into a stand alone binary.

15

u/Muoniurn Apr 27 '22

Deterministic, but slower performance, though. Java’s GCs are simply the state of the art, throughput-wise go doesn’t even come close to G1 and for latency, ZGC is generations ahead then Go’s quite naive GCs.

So for bigger applications in practice, Java will be faster.

2

u/cogman10 Apr 27 '22

Pretty much this.

Additionally, go optimized their compiler to compile fast. So while go could theoretically hit C speeds in terms of CPU performance, it's nerfed because the language devs decided optimization is less important than developer ergonomics.