[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [computer-go] Pattern Matcher



Vincent Diepeveen wrote:

JAVA is great for connectivity and a quick programming of internet tools
and for server tools and interfaces.
It can be, but it's certainly not perfect.

But for the pure speed, i must refer this inferior compiler technology to
the outdated desk.
This seriously makes me wonder which compilers you have been using.

A complex program will be a factor 3 slower with it at least.
Let's assume[1] that java is 3 times slower than c/c++ at run time, but 3 times faster at getting an idea form pure idea to running code that can be evaluated.

I'll take java any day.

When I finally run out of ideas to code, maybe I'll port to c++, or maybe i'll run it through gcj (http://gcc.gnu.org/java/) which now supports the full java 1.1 and happily builds native binaries for any platforms supported by gcc. Or maybe, by then the java compilers will be as mature as the c/c++ compilers are today and the speed difference won't be significant.

In fact small 30 line programs already are to my amazement not seldom up to
a factor 3 slower.
Certainly, and most of that is JVM initialisation, a one-off hit. Running in Ant or similar makes things orders of magnitude quicker (you get the overhead of initialising a new thread within the current JVM not that of initialising new process and initialising a new JVM).

cheers
stuart

[1] Which it isn't in my experience.
--
Stuart Yeates stuart.yeates@xxxxxxxxxxxxxxxxx
OSS Watch http://www.oss-watch.ac.uk/
Oxford Text Archive http://ota.ahds.ac.uk/
Humbul Humanities Hub http://www.humbul.ac.uk/
_______________________________________________
computer-go mailing list
computer-go@xxxxxxxxxxxxxxxxx
http://www.computer-go.org/mailman/listinfo/computer-go/