nik gen wrote:
Cons of Java:
2. Performance cost of the Virtual Machine.
3. lots and lots use of memory.
nik gen wrote:Hi,
There are many differences between java and Objective-C. Few of them are as below.
1. Java has Garbage Collection, Memory is handled by developer in Objective-C.
2. Java has static typing, where as Objective-C has dynamic.
3. Objective-C has rich API to develop GUI comparatively Java.
Apart from this, there are some pros and cons for each language.
Pros of Java:
1. Platform Independent.
2. Availability of many third party libraries.
3. No header files or function prototypes.
4. Direct access of member variables.
Pros of Objective-C:
1. Categories.
2. Use standard C code natively.
Cons of Java:
1. Performance cost of the brifge. JavaBridge, XcodeObjCJavaBridge.
2. Performance cost of the Virtual Machine.
3. lots and lots use of memory.
Cons of Objective-C:
1. Need to handle memory management explicitly.
2. Not as many as resource available.
3. Objective C is somewhat slower than Java. But the fact is Cocoa-Java is slower than Cocoa-Objective-C. also pure java is faster.
Thanks,
Niketa.
nik gen wrote:Hi,
There are many differences between java and Objective-C. Few of them are as below.
1. Java has Garbage Collection, Memory is handled by developer in Objective-C.
2. Java has static typing, where as Objective-C has dynamic.
3. Objective-C has rich API to develop GUI comparatively Java.
Apart from this, there are some pros and cons for each language.
Pros of Java:
1. Platform Independent.
2. Availability of many third party libraries.
3. No header files or function prototypes.
4. Direct access of member variables.
Pros of Objective-C:
1. Categories.
2. Use standard C code natively.
Cons of Java:
1. Performance cost of the brifge. JavaBridge, XcodeObjCJavaBridge.
2. Performance cost of the Virtual Machine.
3. lots and lots use of memory.
Cons of Objective-C:
1. Need to handle memory management explicitly.
2. Not as many as resource available.
3. Objective C is somewhat slower than Java. But the fact is Cocoa-Java is slower than Cocoa-Objective-C. also pure java is faster.
Thanks,
Niketa.
Billy Hause wrote:
n my tests between Java and C++ using a standard sorting algorithm to sort a random list. I've found Java to be 5 to 10 times slower than C++.
Ernest Friedman-Hill wrote:
Billy Hause wrote:
n my tests between Java and C++ using a standard sorting algorithm to sort a random list. I've found Java to be 5 to 10 times slower than C++.
That was a very flawed benchmark, then. People have done these sorts of tests for years, and if you compare a number of different C++ compilers and a number of different Java runtimes, you find that the difference isn't anywhere near that large: when the tests are done properly, the best C++ and the best Java results are always within a factor of 2 of each other. In general, the very best C++ compilers do win -- as they do here, for example -- but the common compilers like g++ and (cough) Visual C++ are not the best compilers. A good JVM often outperforms C++ code compiled with these less-than-ideal compilers.
Consider Paul's rocket mass heater. |