hiatus good for bug-finding

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

smcracraft
Posts: 737
Joined: Wed Mar 08, 2006 8:08 pm
Location: Orange County California
Full name: Stuart Cracraft

hiatus good for bug-finding

Post by smcracraft »

Returned to the code after a time and
found some big bugs.

A code-walkthrough by either oneself
later or by others is pretty helpful!
rbarreira
Posts: 900
Joined: Tue Apr 27, 2010 3:48 pm

Re: hiatus good for bug-finding

Post by rbarreira »

Definitely... when you're looking at the same code every day you stop questioning things, and the mistakes just get ignored.

Another good way to find bugs is to try to explain your code to others. Quite often you'll go "so this happens this way and then... oh... wait...", finding a bug without the other person even saying anything.
wgarvin
Posts: 838
Joined: Thu Jul 05, 2007 5:03 pm
Location: British Columbia, Canada

Re: hiatus good for bug-finding

Post by wgarvin »

rbarreira wrote:Another good way to find bugs is to try to explain your code to others. Quite often you'll go "so this happens this way and then... oh... wait...", finding a bug without the other person even saying anything.
This is one of the things that make code reviews useful in a programming job. Usually the reviewer is unfamiliar with the code, and you have to explain to them exactly what the code *actually* does. So you systematically work through all the possibilities, and it will usually be obvious if there is some edge case where the code doesn't do what you intended.
User avatar
mhull
Posts: 13447
Joined: Wed Mar 08, 2006 9:02 pm
Location: Dallas, Texas
Full name: Matthew Hull

Re: hiatus good for bug-finding

Post by mhull »

smcracraft wrote:Returned to the code after a time and
found some big bugs.

A code-walkthrough by either oneself
later or by others is pretty helpful!
By how much do you estimate play was improved from the fixes?
Matthew Hull
User avatar
hgm
Posts: 27808
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: hiatus good for bug-finding

Post by hgm »

Are you talking about GNU Chess 5, or is this a new program?
User avatar
mhull
Posts: 13447
Joined: Wed Mar 08, 2006 9:02 pm
Location: Dallas, Texas
Full name: Matthew Hull

Re: hiatus good for bug-finding

Post by mhull »

hgm wrote:Are you talking about GNU Chess 5, or is this a new program?
IIRC, Stuart never worked on version 5, which was a completely new program in bit boards. Just the early versions.
Matthew Hull
kongsian
Posts: 46
Joined: Thu Jun 15, 2006 11:21 am

Re: hiatus good for bug-finding

Post by kongsian »

mhull wrote:
hgm wrote:Are you talking about GNU Chess 5, or is this a new program?
IIRC, Stuart never worked on version 5, which was a completely new program in bit boards. Just the early versions.
Actually he did work on some parts of Gnu 5 like the winboard support and some of the evaluation code and maybe some other stuff which I no longer can remember :).

I've been wondering for some time now if it make sense to *upgrade* Gnu 5. It seems easier to start a new engine from scratch (which is what I am doing now). There are so many new ideas that trying to fit them into Gnu is just too difficult.

Kong Sian
smcracraft
Posts: 737
Joined: Wed Mar 08, 2006 8:08 pm
Location: Orange County California
Full name: Stuart Cracraft

Re: hiatus good for bug-finding

Post by smcracraft »

mhull wrote:
smcracraft wrote:Returned to the code after a time and
found some big bugs.

A code-walkthrough by either oneself
later or by others is pretty helpful!
By how much do you estimate play was improved from the fixes?
My tests are pretty basic and actually dropped very slightly in results. My former runs were on an earlier version of the development machine's OS...

I've heard that sometime results on formal tests can drop despite principal variations and move quality going up.

Knock on wood that's what happened here.

The bug was very glaring and in the quiescence search.
smcracraft
Posts: 737
Joined: Wed Mar 08, 2006 8:08 pm
Location: Orange County California
Full name: Stuart Cracraft

Re: hiatus good for bug-finding

Post by smcracraft »

hgm wrote:Are you talking about GNU Chess 5, or is this a new program?
Just my own experimental program. It's bit-board-based (eval and move generator.)

Beats me 100% of the time but that doesn't say much since I'm just a patzer.

:-)
smcracraft
Posts: 737
Joined: Wed Mar 08, 2006 8:08 pm
Location: Orange County California
Full name: Stuart Cracraft

Re: hiatus good for bug-finding

Post by smcracraft »

kongsian wrote:
mhull wrote:
hgm wrote:Are you talking about GNU Chess 5, or is this a new program?
IIRC, Stuart never worked on version 5, which was a completely new program in bit boards. Just the early versions.
Actually he did work on some parts of Gnu 5 like the winboard support and some of the evaluation code and maybe some other stuff which I no longer can remember :).

I've been wondering for some time now if it make sense to *upgrade* Gnu 5. It seems easier to start a new engine from scratch (which is what I am doing now). There are so many new ideas that trying to fit them into Gnu is just too difficult.

Kong Sian
Antonio C. is working on a version of Fruit for GNU 6.

:-)

--Stuart