3 ms·
> Objects have a static layout (unlike say Javascript or Python or Ruby which treat objects as basically hash tables of fields) This will make life easier for
by stcredzero 14y ago
> Objects have a static layout (unlike say Javascript or Python or Ruby which treat objects as basically hash tables of fields)
This will make life easier for implementors of high performance VMs and tend to reduce memory footprint of objects.
- darknoon 14y agoSince we're on that topic… in Objective-C, object layout is determined at runtime (these days anyway). It's pretty efficient though, and lets you do sometimes-useful stuff like add ivars at runtime. It also kills the fragile base class binary compatibility issue that plagues other compiled languages (particularly relevant as a glue / MVC language).