Re: Mixing Obj-C & Java in same Cocoa app?
Re: Mixing Obj-C & Java in same Cocoa app?
- Subject: Re: Mixing Obj-C & Java in same Cocoa app?
- From: Ondra Cada <email@hidden>
- Date: Mon, 17 Sep 2001 11:20:53 +0200
Bradley,
>
>>>>> Smith, Bradley (SB) wrote at Mon, 17 Sep 2001 08:31:02 +0100:
SB> >(a) with compiled Java/Cocoa (!forget swing!), there should
SB> >be a very little
SB> >penalty over ObjC (actually, the only two reasons I see for
SB> >compiled Java
SB> >being slower is the GC, and perhaps that Java does not
SB> >support structs, so
SB> >things like NSRect have to be objects; none of them should be that
SB> >important);
SB>
SB> AFAIK *all* Java is compiled, but into byte code - not native, which
SB> means a JVM has to interpret at runtime. This is clearly going to be
SB> slower that Obj-C compiled into native PPC instructions. Nothing you can
SB> do about it.
Java can be compiled to machine code as well, see GCC. OSX jamfiles and
libraries don't support that, but it is possible. That's what I meant by
"compiled Java" (although you are quite right that the "interpreted Java" is
compiled to bytecode first, so my term was ambiguous -- sorry).
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc