News for hackers. Stuff that matters.
Re:Jacobin: Minimal JVM written in Go and capable of running... by RetroTechie on Thursday August 24, 2023 @04:05PM (#37253872)
I can see how using Go's GC reduces the codebase.

But I don't see how that reduces binary size.

Compiled Go programs include a Go runtime in their binary, correct? (statically linked).

So if Go program uses Go's builtin GC, that GC wouldn't be part of the program code, but would be part of the runtime that it's packed with in the binary, right?

In essence replacing [GC in Go program part of the binary] with [GC in Go runtime part of the binary].

I mean, I can see the advantage(s) there. But reducing binary size doesn't seem to be one of them. Unless you count [Go program using its own GC + the one in Go runtime] vs. [only the one in Go runtime].

It's still a (read: at least 1) GC included in the binary.

Re:Jacobin: Minimal JVM written in Go and capable of running... by skitter on Thursday August 24, 2023 @04:28PM (#37254134)
You're right, but that's what's meant - using the Go GC vs also implementing a custom one.
Re:Jacobin: Minimal JVM written in Go and capable of running... by coldtea on Friday August 25, 2023 @01:17AM (#37258344)
>But reducing binary size doesn't seem to be one of them. Unless you count [Go program using its own GC + the one in Go runtime] vs. [only the one in Go runtime]

Yes, of course that's what they mean. Not having 0 code for GC altogether, but just using the GC that you already have, and is required overhead, as opposed to implementing another and having both.