Hacker News new | ask | show | jobs
by topspin 957 days ago
The actual data toward the top was also interesting; the cost of GC is high and Rust eliminates it.
3 comments

The cost of GC is only high as in the cost of living in modern society is. Sure, you can technically live in the forest and build/hunt/harvest everything for yourself, but unless you have very specific reasons for that, having a house and going to the supermarket is the sane default option.
Easy to learn, safe, fast: pick two
That also depends on GC, and the language, and the implementations of the GC.

E.g. in Erlang GC is mostly negligible [1] (but you can put undue pressure on it, and on the underlying OS), there are realtime GCs for Java, etc.

But yeah the cost of GC is never zero.

[1] citation needed

> That also depends on GC, and the language, and the implementations of the GC.

Nothing depends on no GC.

I'm not anti-GC. I earn most of my living using GC languages. But there comes a time when the cost of power and hardware outweigh the value of GC. When that time comes Rust is an excellent way to solve it. I am, however, very "anti" the "no such time exists" position. That has never been and will never be true.