Re:Show HN: A pure reference counting GC in Go
by ckok on Wednesday January 15, 2020 @02:34AM
(#22052364)
Quite cool. But I miss the part where you can actually use the objects themselves to store something in. What's your goal here? To have a real usable gc, becuase if so, it should probably allocate outside the Go heap, and directly from the OS? Also the fields should probably be packed:
as those seem to have quite a bit of overhead for an object.
[ Parent
| on HN ]
Re:Show HN: A pure reference counting GC in Go
by sendilkumarn on Wednesday January 15, 2020 @03:10AM
(#22052497)
I completely agree. My goal here is to learn and debug what is happening. (intention is to backport this into tinygo)
There are a plenty of steps to make it into usable gc.
Re:Show HN: A pure reference counting GC in Go
by ckok on Wednesday January 15, 2020 @03:13AM
(#22052507)
Ah that makes sense. I did the "non thread safe" version of this paper for our webassembly support (Because at the time, Boehm didn't support it)
https://github.com/remobjects/IslandRTL/blob/master/Source/S...
But the threadsafe one does have a lot of raw edges, and I couldn't get that one working.
Re:Show HN: A pure reference counting GC in Go
by sendilkumarn on Wednesday January 15, 2020 @03:17AM
(#22052529)
Thats cool.
I think assemblyscript has implemented it. Something you might be interested to explore