Hacker News new | ask | show | jobs
by adolph 441 days ago
Can someone speak to the below statement from the article? I thought Objective-C did not have a runtime like memory managed languages like C#.

> avoid the runtime overhead of Objective-C in the kernel

From Apple docs[0]:

You typically don’t need to use the Objective-C runtime library directly when programming in Objective-C. This API is useful primarily for developing bridge layers between Objective-C and other languages, or for low-level debugging.

0. https://developer.apple.com/documentation/objectivec/objecti...

1 comments

Objective-C does have a runtime that maintains all the state necessary to implement the APIs in the documentation you linked.

For example, how to map class objects to string representations of their names.

Yep, ObjC programs call into the runtime every time they call a method.