Re: Java and Objective-C
Re: Java and Objective-C
- Subject: Re: Java and Objective-C
- From: Denis Bohm <email@hidden>
- Date: Sat, 7 Jun 2008 14:10:15 -0700
On Jun 7, 2008, at 2:01 PM, Bill Bumgarner wrote:
On Jun 7, 2008, at 1:49 PM, WT wrote:
But here's the flip-side of your question, which clarifies what I
had been saying in previous messages: what features of
NSUndoManager require Cocoa's native language to be based on C? I'm
not familiar with the details of NSUndoManager (as I said, I only
dabble on Cocoa, so I'm really a noob) but I suppose the extreme
dynamism of Obj-C are required. If that's the case, they could
probably be added to any other language upon which Cocoa might have
been based on.
It certainly doesn't require C, but it does require the dynamism of
Objective-C. SmallTalk or CLOS (Common Lisp Object System) are
both languages / runtimes capable of supporting similar programming
models.
I don't think the same level of dynamism could be added to any other
language without changing the nature of the language. For Java,
adding such degrees of dynamism would change the fundamental nature
of the virtual machines and JIT compilers in that they could no
longer eliminate call sites as a part of optimizations. Actually,
any object oriented language that has the ability to inline methods
such that they cannot be "out of lined" again at runtime cannot
support the dynamism offered by Objective-C.
Can you give a specific example of that specific point using some
Objective-C code?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden