News for hackers. Stuff that matters.
Re:Conservative GC can be faster than precise GC by matheusmoreira on Saturday September 07, 2024 @11:13PM (#41477946)
> With the precise gc, they had to make the change to only storing pointers, leading to allocating small values.

Why? Many dynamic languages use a tagged pointer representation which isn't incompatible with precise garbage collectors. Couldn't Go do the same?

Re:Conservative GC can be faster than precise GC by skybrian on Saturday September 07, 2024 @11:17PM (#41477960)
Perhaps because Go has pointers to the middle of records and arrays? (And records of arrays, etc.) It's an unusual language feature.
Re:Conservative GC can be faster than precise GC by kbolino on Sunday September 08, 2024 @11:33AM (#41480985)
This, plus Go pointers are real memory addresses, a property which is guaranteed by the runtime for unsafe pointer operations and C interop.