Re:TeaVM: Build Fast, Modern Web Apps in Java
by Sophistifunk on Sunday January 31, 2021 @09:51PM
(#25985008)
On-topic questions: If it's generating wasm, how's the collector work? If it's generating JavaScript, what happens to weak refs?
[ Parent
| on HN ]
Re:TeaVM: Build Fast, Modern Web Apps in Java
by konsoletyper on Monday February 01, 2021 @03:45AM
(#25986804)
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.