From: Sean Russell Date: 2001-05-30T08:25:55+09:00 Subject: [ruby-talk:15977] Re: java based interpreter and regexes -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Je Mardo 29 Majo 2001 15:41, vi skribis: > Okay, I installed jarkata 1.2 and run the test: Time says 9.5s. Just > to compare, "time ruby ..." says 4.7s. What is Jarkata? Does this include the Sun HotSpot JIT? What does your modified benchmark (without startup penalties) say? > Well, then Ruby's problem is called Tk. I'd separate the language > from its libaries especially if there're not core libraries but you > could drop in replacements. Yeah, I agree. Ruby "comes with" Tk, like Java "comes with" Swing. The only real difference is that there aren't many alternative GUIs for Java, and none with any market leverage. In any case, because of this I think that, as an end-user application platform, Ruby is in an even worse position than Java. > For example, I once tried the gtk/gnome bindings for Java and this > worked quite well. It was as fast as any other native gnome > application and you couldn't tell from its speed that it's a Java > application anymore. Quite nice. Hmmm. I've never seen the GTK bindings for Java. Binding Java to any JNI immediately knocks off half the reason why I use Java in the first place. Still, this is nice to know. If I ever saw a wxWindows binding for Java, I'd seriously consider using it, since I *believe* that, of all of the cross-platform toolkits, it is the most ubiquitous, and is a decent blend of open, small, easy, and pretty (while not being the best in any category). > >The main reason for what? The speed issue in Swing? Or the limited > >capabilities of AWT? > > The speed reason. Really? The primary speed (or lack thereof) culprit is the event queue? > Well, all major Java implementations nowaday feature a JIT. Yeah, granted. JIT takes time, and doesn't act on *all* of the code executed. Although I agree that the following is debatable, I'd still say that Java is more interpreted than native. Unless it is running on one of the phantom pico-chips :-) === SER Deutsch|Esperanto|Francaise|Linux|Java|Ruby|Aikido|Dirigibles|GPG === http://www.germane-software.com/~ser jabber.com:ser ICQ:83578737 "Man is still the best computer that we can put aboard a spacecraft -- and the only one that can be mass produced with unskilled labor." - Wernher von Braun -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.2 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7FC/5P0KxygnleI8RAslkAJ9i9KjFLUwsciPEKBnI4eD3mOe2zgCgs9Im 6AJKGx5OLW4NNcYft7MB0KQ= =339p -----END PGP SIGNATURE-----