For example, Objective-C, Swift and Ruby (i.e. RubyMotion) integrate with the Cocoa framework.
Is this done via linked libraries? I assume they call functions in existing binaries instead of simply recreating some common interface.
For example, Objective-C, Swift and Ruby (i.e. RubyMotion) integrate with the Cocoa framework. Is this done via linked libraries? I assume they call functions in existing binaries instead of simply recreating some common interface. |
||||
|
By many different methods, not easily reduced to just a few paras. Here are some, in roughly ascending order of abstraction.
These mechanisms are often layered. The calls at a higher layer are translated into calls at a lower layer behind the scenes. Objective-C is an odd one, in providing two different API mechanisms. At a physical deployment level, the services can be provided by:
Wherever two disparate technologies (such as Ruby and Cocoa) are able to interact, there is usually a binding layer created by a tool, or manually. Eventually it will use one of the mechanisms above (unless I've missed something). |
|||||||||||||||||||||
|