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!
hiatus good for bug-finding
Moderators: hgm, Rebel, chrisw
-
- Posts: 737
- Joined: Wed Mar 08, 2006 8:08 pm
- Location: Orange County California
- Full name: Stuart Cracraft
-
- Posts: 900
- Joined: Tue Apr 27, 2010 3:48 pm
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.
-
- Posts: 838
- Joined: Thu Jul 05, 2007 5:03 pm
- Location: British Columbia, Canada
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.
-
- Posts: 13447
- Joined: Wed Mar 08, 2006 9:02 pm
- Location: Dallas, Texas
- Full name: Matthew Hull
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
-
- Posts: 27811
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: hiatus good for bug-finding
Are you talking about GNU Chess 5, or is this a new program?
-
- Posts: 13447
- Joined: Wed Mar 08, 2006 9:02 pm
- Location: Dallas, Texas
- Full name: Matthew Hull
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
-
- Posts: 46
- Joined: Thu Jun 15, 2006 11:21 am
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 remember .mhull 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
-
- Posts: 737
- Joined: Wed Mar 08, 2006 8:08 pm
- Location: Orange County California
- Full name: Stuart Cracraft
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.
-
- Posts: 737
- Joined: Wed Mar 08, 2006 8:08 pm
- Location: Orange County California
- Full name: Stuart Cracraft
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.
-
- Posts: 737
- Joined: Wed Mar 08, 2006 8:08 pm
- Location: Orange County California
- Full name: Stuart Cracraft
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 remember .mhull 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