hiatus good for bug-finding
Moderators: hgm, Harvey Williamson, bob
Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
- smcracraft
- Posts: 592
- Joined: Wed Mar 08, 2006 7:08 pm
hiatus good for bug-finding
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!
found some big bugs.
A code-walkthrough by either oneself
later or by others is pretty helpful!
Re: hiatus good for bug-finding
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.
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.
Re: hiatus good for bug-finding
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.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.
Re: hiatus good for bug-finding
By how much do you estimate play was improved from the fixes?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!
Matthew Hull
- hgm
- Posts: 22274
- Joined: Fri Mar 10, 2006 9:06 am
- Location: Amsterdam
- Full name: H G Muller
- Contact:
Re: hiatus good for bug-finding
Are you talking about GNU Chess 5, or is this a new program?
Re: hiatus good for bug-finding
IIRC, Stuart never worked on version 5, which was a completely new program in bit boards. Just the early versions.hgm wrote:Are you talking about GNU Chess 5, or is this a new program?
Matthew Hull
Re: hiatus good for bug-finding
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 remembermhull wrote:IIRC, Stuart never worked on version 5, which was a completely new program in bit boards. Just the early versions.hgm wrote:Are you talking about GNU Chess 5, or is this a new program?
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: 592
- Joined: Wed Mar 08, 2006 7:08 pm
Re: hiatus good for bug-finding
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...mhull wrote:By how much do you estimate play was improved from the fixes?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!
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: 592
- Joined: Wed Mar 08, 2006 7:08 pm
Re: hiatus good for bug-finding
Just my own experimental program. It's bit-board-based (eval and move generator.)hgm wrote:Are you talking about GNU Chess 5, or is this a new program?
Beats me 100% of the time but that doesn't say much since I'm just a patzer.
- smcracraft
- Posts: 592
- Joined: Wed Mar 08, 2006 7:08 pm
Re: hiatus good for bug-finding
Antonio C. is working on a version of Fruit for GNU 6.kongsian wrote: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 remembermhull wrote:IIRC, Stuart never worked on version 5, which was a completely new program in bit boards. Just the early versions.hgm wrote:Are you talking about GNU Chess 5, or is this a new program?.
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
--Stuart


