10 ms·
Yes, the swift runtime does stuff like heap allocation & reference counting for classes, type introspection (including `as` casts), error handling, as well as g
by joewillsher 10y ago
Yes, the swift runtime does stuff like heap allocation & reference counting for classes, type introspection (including `as` casts), error handling, as well as generating instances of unspecialised generic types, and dispatching (dynamic) protocol methods (and other witnesses, like computed properties).
https://github.com/apple/swift/tree/master/stdlib/public/runtime https://github.com/apple/swift/tree/master/stdlib/public/run...