View Single Post
Old 09-18-2003, 07:17 PM   #16 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,166
Belisarius is on a distinguished road
Quote:
It can use JNI to call native methods.
But that defeats one of the central characteristics of Java, which is code portablity. So yes, you can do anything through JNI, but at that point you have to ask yourself, "Why aren't I doing this in C?" Plus, I'm not familiar with the overhead of calling native code.

Quote:
Java can never beat c for speed; its guaranteed.
Guaranteed by what? And Java Forums are kinda handy, but I don't put too much stock in the analysis done in them, as it's usually pop-Computer Science. Fun stuff to discuss, but that's about it.

I'm not going to argue that Java is faster than C in general, just that it sounds like the speed improvements that Sun has made will make the differences trivial in the next HotSpot. Again, I'm reserving judgement until they do a full release. Yes, there will still be inefficient code in Java (Hashtable and Vector come to mind), but Sun is introducing new datastructures to replace them. Besides, they aren't an indication of the nature of the language itself.
__________________
GitS
Belisarius is offline   Reply With Quote