On Fri, Mar 18, 2005 at 02:14:17AM +0200, Tzahi Fadida wrote: > The most wide spread excuse to the slow responsiveness of the GUI > is that "computers are getting faster and have more memory and thus > it won't matter". Well, maybe but you have to remember that as times > goes by more programs, especially multimedia, are introduced and thus > this logic won't work all the time. > > I also think that you cannot compare C and JAVA by performance since > they were made for different purposes. C to write fast programs and OS > code all the while knowing it is a risky language and Java was written > for ease of use, redability, and reliability which should lower recall rate > of software and hardware that uses that software.
I'm not sure I agree with you, but set aside C for a minute and look at other higher-level languages such as Perl, Python and Ruby (and Tcl?). How difficult is it to write a non-slugish GUI with them? > Maybe, if you will use some C libraries that duplicates all of JAVA's > features and restrictions which includes among others - garbage > collector, range checks, references, etc... you can compare performances. > Obviously all these features once turned on by default will slow your C > program, especially when you trigger their usage like range checks and > garbage collector. The languages I mentioned above have those nice qualities. They actually try to do more at runtime than Java, as they are weakly-typed. > Using JNI as was said here just means that you probably got it wrong in > your language choice for that particular software. Btw, I am sure that > in many cases even native compilation of JAVA won't compete with the C > code since the features are not turned off. All of those languages already have rich libraries of optimized code. The GUI is just one example: QT, gtk+, wxWidgets and Tk are all written in optimized C/C++. Their bindings to those higher-level languages allow programmers to easily use optimized GUI code. This is certainly not new. The Tcl/Tk combo is older than Java IIRC. I also believe that some SmallTalk environments have had such similar concepts. -- Tzafrir Cohen | New signature for new address and | VIM is http://tzafrir.org.il | new homepage | a Mutt's [EMAIL PROTECTED] | | best ICQ# 16849755 | Space reserved for other protocols | friend ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
