3 ms·
I'm not aware of any plans to support a malloc/free API currently. GC plans are already underway. Thinking about it, it's actually not that obvious how to sup
by azakai 9y ago
I'm not aware of any plans to support a malloc/free API currently. GC plans are already underway.
Thinking about it, it's actually not that obvious how to support a malloc/free API. It seems like it would need to be deterministic to fit properly on the Web. But writing a spec for that is not easy since efficient malloc/frees are fairly complex and detailed. And once specced out, it could never be improved.
GC on the other hand already exists on the Web, and all the complexity is not noticeable (except for things like proper weak refs and finalizers, which is why those have not been added to the Web yet) so the spec is fairly simple and it allows constant optimization on the implementation side.