by gilgoomesh · 12y ago · 0 comments
Bluntly: there is a class of programmers and programs that cannot be written without:
* C linkage
* Calling of and calling from C
And a further class of programs where:
* Garbage collection
* Significant runtime
* Safe code
Make acceptable performance impossible. This class of programs includes .NET itself which is entirely written on top of the Win32 C APIs.
If you want a runtime on top of Objective-C, you're welcome to write one yourself. It could offer everything you're requesting without needing to change anything about Objective-C.
Oh wait, there are literally dozens of runtimes on top of Objective-C. Not to mention official bindings to Python and other languages. Sure, none of them are very popular but if you want to write in something else: go ahead.
It is just the historical legacy fact that the majority of modern OS ABI == C ABI that keeps us have to link with it.
https://pythonhosted.org/pyobjc/
Or Xamarin for programming iOS using Mono/C#?
http://docs.xamarin.com/guides/ios/getting_started/hello,_wo...
Or F-Script for programming Mac OS X from a command-line shell?
All three are quite well established and work pretty well for what they do.