3 ms·
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 runt
by adolph 2y 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/objective-c-runtime https://developer.apple.com/documentation/objectivec/objecti...
- twoodfin 2y agoObjective-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.
- dcrazy 2y agoYep, ObjC programs call into the runtime every time they call a method.