Re:Grain: A strongly-typed functional programming language f...
by tom_mellior on Tuesday July 31, 2018 @03:42AM
(#17651283)
Has anyone found in the sources if/how they treat garbage collection?
[ Parent
| on HN ]
Re:Grain: A strongly-typed functional programming language f...
by vilu on Tuesday July 31, 2018 @04:10AM
(#17651410)
No, I would be interested in that too. I don't know anything about Web Assembly but maybe GC is handled by Web Assembly?
Re:Grain: A strongly-typed functional programming language f...
by masklinn on Tuesday July 31, 2018 @06:01AM
(#17651862)
There are plans to eventually integrate GC into wasm, but at the moment the GC has to be implemented and bundled in the wasm file. That is in fact one of Rust's advantages there. And of course wasm supporting a GC does not mean languages targeting wasm will want to use it (and lose the flexibility of providing their own).
Re:Grain: A strongly-typed functional programming language f...
by pitb0ss on Tuesday July 31, 2018 @10:56AM
(#17653652)
Yes. They currently use reference counting since WASM doesn't allow stack inspection.
Re:Grain: A strongly-typed functional programming language f...
by tom_mellior on Wednesday August 01, 2018 @11:57AM
(#17663698)
Do you have a link to the source?