Category Archives: Java

Find Primes Updated

I’ve updated the FindPrimes Benchmark page with results running under Windows. I also updated the C++ code to work around the GCC compiler bug that produced incorrect results at higher levels of optimization, so now the Xcode C++ times are … Continue reading

Posted in C#, Code, Java | 2 Comments

FindPrimes Benchmark

I’ve posted a short write-up with code of a FindPrimes Benchmark to compare Java, C++ and C# execution speeds on my Mac. Summary: C++ takes 1.5 – 2 times as long as Java and C# takes 3 times as long … Continue reading

Posted in C#, Code, Java | 8 Comments

Predictable Randomness

One GNU Chess source file I didn’t port to Java was the random number generator, and that turned out to be a problem for processing the binary opening book files. The board position hash codes are 64-bit numbers created by … Continue reading

Posted in Chess, chessbox, Java | 2 Comments

“Jnuchess” Plays and Wins

The Java port of GNU Chess is now doing well enough to play a game and beat me. To get the main alpha-beta engine to work I had to track down about a half-dozen or so translation errors I had … Continue reading

Posted in Chess, chessbox, Java | 2 Comments

GNU Chess/Java Starts to Run

I decided to go ahead and convert the remaining printf() calls (too chicken to try switching to Java 5 at this point) and ignore the signal() calls so I could try running GNU Chess/Java. The signal() calls are only used … Continue reading

Posted in Chess, chessbox, Java | Leave a comment

Tiger Installed

After two delayed attempts, I got Mac OS X 10.4 “Tiger” installed tonight. On the first attempt I was slowed by Apple’s lame back-up application, creatively called “Backup”. It seemed to re-scan everything whenever I added or removed a folder … Continue reading

Posted in Java, Mac | Leave a comment

C to Java

I’ve almost finished the mostly-mechanical first pass of converting the C GNU Chess code to Java syntax. I haven’t tried to compile yet, but there’s about six files out of thirty-plus that IDEA (world’s greatest IDE) says contain syntax errors. … Continue reading

Posted in Chess, chessbox, Java | 2 Comments