On Sat, 11 Sep 2004 Compgo123@xxxxxxxxxxxxxxxxx wrote:
Recently I got some new ideas and decided to re-write my program. So
this
subject has some meaning to me. My experience tells me that the
easiness to debug
a program is of great importance. The most often met problems are the
memory
leak or illegal memory reference. Some of the problems hide very
deep. They
were found most of the time when I do a large number of search. For
example when
I search 1 million nodes the program is fine. But it hangs up at
about one
and half million nodes. Made it vey difficult to debug. So there
should be a
convenient way to check memory leak and to debug.
If you are developing under Linux, I strongly recommend to try out
valgrind. It can does all of the above, plus a very fine-grained
checking of uninitialized memory access.
Having said that, my experience with GNU Go is the same as has been
described by, I think, Chrilly Donninger: Very few of the bugs are
language specific.
True, but C makes it ever so easy to do stupid things, and harder (or
at least