DEV Community

Discussion on: Exploring how Elm can target Web Assembly

Collapse
 
synalysis profile image
Synalysis

I'd also assume that what's called garbage collection here is due to the conclusion that if JavaScript needs one Elm will also need one.

Some years ago I wrote a PostScript interpreter and quite a while it worked very well without a garbage collector - all was done with reference counting. Apple shows with ARC (Automatic Reference Counting) that even a language much more complex than ELM can work without GC.

So as long as you don't have cyclic references reference counting should do the trick.