5 ms·
Objective-C is a dynamic OO language and it has always been AOT compiled. Also there's Smalltalk/X: http://www.exept.de/en/products/smalltalkx http://www.exep
by mpweiher 13y ago
Objective-C is a dynamic OO language and it has always been AOT compiled.
Also there's Smalltalk/X: http://www.exept.de/en/products/smalltalkx http://www.exept.de/en/products/smalltalkx
libart for Android also brings AOT to a jitted/VMed language.
- deleted 13y ago[deleted]
- pjmlp 13y agoYou forgot Lisp, Scheme, Dylan, Julia, Basic.
- AlexanderDhoore 13y agoFunny enough, even C#: http://www.mono-project.com/AOT http://www.mono-project.com/AOT This is used to run C# on iOS.
- danabramov 13y agoStill does.
- lohan 13y ago+1
- pjmlp 13y agoC# is not a dynamic language.
- Skinney 13y agoNot by default no, but it easily supports dynamic code through 'dynamic'
- pjmlp 13y agoThe use of dynamic keyword and interface, doesn't make it dynamic from CS semantic analysis point of view.
- Skinney 13y agoC# allows generating and re-writing code at runtime. Couple that with reflection, bypassing private/protected modifiers etc. Does that make it dynamic? Genuinly interested, what defines a dynamic language?
- rayiner 13y agoJulia isn't AOT compiled. Indeed, one of the things that makes it so fast is that it does JIT compilation of method bodies using runtime information to drive type inference and to produce multiple type-specialized copies of methods.
- pjmlp 13y agoSilly me, you are right. I forgot about it.
- ris 13y ago> Objective-C is a dynamic OO language Objective C is not a dynamic language. Do not confuse dynamic language with dynamic typing or whatever the standard wisdom in the Apple cult is.
- Alphasite_ 13y agoI'd certainly say that it is, it certainly meets the dynamic binding pre requisite. And small talk certainly does, so why does Objective-C not qualify?
- pjmlp 13y agoBecause of the C subset.
- strmpnk 13y agoMany languages have static subsets. For example, many languages won't let you change the meaning of `1+1` while others might allow you to dispatch the addition dynamically.
- KMag 13y agoIn fact, a static subset is a very nice property to have in a dynamic language. It's probably the easiest way to make a dynamic language self-hosting. For instance, PyPy uses a static subset of Python called RPython and Squeak uses a subset of Smalltalk called Slang.
- mpweiher 13y agoSure is. Supported: Dynamic typing. Fully dynamic message dispatch with doesNotUnderstand: (called forwardInvocation:), proxies, Higher Order Messaging, etc. Addition of (a) classes ( objc_registerClassPair() ) and (b) methods ( class_addMethod() ) at runtime. Changing an object's class at runtime (objc_setClass() slightly hacky, but done by system services such as KVO, so supported). Closures/Blocks. Reflection. Addition of (associated) instance variables at runtime. Interpreted languages can be fully interoperable peers. Not supported: Eval (but see above re: interpreted peers). Continuations. ---- See: https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html#//apple_ref/c/func/object_setClass https://developer.apple.com/library/mac/documentation/Cocoa/... EDIT: added references.