logoalt Hacker News

umanwizard11/08/20241 replyview on HN

> They just use the implementation from the last version of the compiler

The garbage collector isn’t part of the compiler, it’s part of the runtime. It’s worth being clear about this distinction because I think it’s the root of the OP’s confusion.


Replies

wrs11/08/2024

Sure, but what’ll really bake OP’s noodle is that Go’s GC is written in Go too. :) [0]

[0] https://go.dev/src/runtime/mgc.go