Erik Engheim
1 min readNov 25, 2021

--

My initial answer to you was probably not that great. I should have stressed a far more important point: Why on Eart would you want to emulate Go in Java?

I think you may have missed a bit the intention of the article. It was not really to argue that Go is superior to Java (even if I might believe that), but rather to explain why Go uses such as different strategy for garbage collection and can make that work quite well.

Java already has a state of the art garbage collector which companies have invested fortunes into making.

Why would you insist on making a much simpler Go style garbage collector which is a poor fit for Java?

The point here is that different languages benefit from different strategies for garbage collection. You seem to want to shoehorn a garbage collector which Java was not designed to have.

I suspect you can emulate what Go does with great effort, but why? It seems like a wasted effort. What is the gain?

--

--

Erik Engheim
Erik Engheim

Written by Erik Engheim

Geek dad, living in Oslo, Norway with passion for UX, Julia programming, science, teaching, reading and writing.

No responses yet