News for hackers. Stuff that matters.
Re:Zinc Search engine. A lightweight alternative to Elastics... by stiray on Saturday December 04, 2021 @07:54AM (#29440540)
Please check this, it explain difference between Java and Go garbage collectors quite nicely:

https://itnext.io/go-does-not-need-a-java-style-gc-ac99b8d26...

Re:Zinc Search engine. A lightweight alternative to Elastics... by pkulak on Saturday December 04, 2021 @01:12PM (#29442843)
Yeah... I guess. But I could write the same article about how Java doesn't need value types and extreme escape analysis because it has a generational garbage collector. 99% of garbage really does end up in the eden generation and is literally free to clean up, no different than a stack.

Once you put aside all the words and see how things stack up in the real world, Go and Java are pretty comparable, usually with the JVM having a slight edge after the JIT is nice and warm. They go about it in different ways, but there's nothing wrong with that.

Re:Zinc Search engine. A lightweight alternative to Elastics... by kaba0 on Saturday December 04, 2021 @04:22PM (#29444441)
It was criticized quite heavily on the relevant hn thread.

But basically, go can get away with a less advanced GC due to having and relying on value types quite often. But Java and certain workloads do require the state-of-the-art GCs that the JVM provides. And a search engine likely constitutes such a one.