Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Sophistifunk
· 5y ago · 0 comments
On-topic questions: If it's generating wasm, how's the collector work? If it's generating JavaScript, what happens to weak refs?
Comments
[–]
konsoletyper
5y ago
There are separate compiler backends for Wasm and JS. JS BE does not support WeakReferences (or rather supports them as a class, but does not support weak reference semantics). For Wasm BE I written my own GC, which supports weak references.