3 ms·
You dont need OS support for gc to do gc in a scripting language. Wax, https://github.com/probablycorey/wax https://github.com/probablycorey/wax which is a Lua
by justincormack 15y ago
You dont need OS support for gc to do gc in a scripting language. Wax, https://github.com/probablycorey/wax https://github.com/probablycorey/wax which is a Lua binding for UIKit does all the gc for you. The framework just needs to do all the bookkeeping for you behind the scenes.
- prodigal_erik 15y agoWhen the platform's native data structures are explicitly managed but not garbage collected, the language runtime can't just steamroller them, it has to notify the platform about each individually becoming disused. It's the worst of both worlds, you pay for O(n) work to handle garbage as well as not reclaiming memory immediately, and it's worse with an API that takes graphs of first-class objects rather than buffers which happen to contain the bits you want (which are incredibly risky, but the language runtime can handle that once and for all).