I think you could do the pointerless version (the one using an int32 index) of this in go via unsafe casting.
I’ll try it out later
I’ll try it out later
You could represent the heap as an array, use array offsets instead of pointers, and do your own garbage collection, but that’s pretty low level and you might as well compile to WebAssembly.