4 ms·
It's also worth mentioning WASM has no GC today.
by slimsag 9y ago
It's also worth mentioning WASM has no GC today.
- pjmlp 9y agoMy amd64 and ARM CPUs also don't have it. On languages where the algorithm is an implementation detail, one can make use of reference counting with a cycle collector, which are just a few hundred lines. Implementing one is pretty simple, making it perform well is another matter.
- hajile 9y agoUnlike your real processor though, you can't directly access memory or ensure its absolute location. You can make an advanced GC that is slow or a basic one that is not.
- Sawamara 9y agoWhich is good. You can always implement GC inside it, but personally, for performance-intensive computing, I do not want GC inside WASM unless eplicitly enabled.