[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [computer-go] Pattern Matcher
Just like C++ of course JAVA is a programming language which practically is
doing the 100% exact things.
It's not harder to code in JAVA than in C/C++.
However it's 3 times slower simply.
The proof for that has been given so many times already that i am not going
to repeat it. Just to a bet with Omid David Tabibi
some c# guy also did.
Omid produced 20 small programs.
c# lost all bets.
same for java.
the amazing thing is a factor 3 in speed for even simple code.
that really was shocking bad to me.
At 22:27 8-11-2004 +0000, Stuart Yeates wrote:
>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/
>
>
_______________________________________________
computer-go mailing list
computer-go@xxxxxxxxxxxxxxxxx
http://www.computer-go.org/mailman/listinfo/computer-go/