OK, never say never. I told myself I would put Schoolbook Chess, a variant I invented back in 2006, to rest. Well, while taking a break from Deadwood development, I discovered there are a number of computer chess engines out there that can play my chess variant, so I got permission from three makes of chess engines to enter the 2009 Schoolbook Chess computer tournament; the tournament was a six-game double round robin. The final results were:
ChessV 0.9.0 with time handicap: 3
TJChess10x8: 3
Joker80: 0
The games were Game/15 (all moves in 15 minute) games done on a Core 2 Dual 1.5 ghz laptop processor. A reasonable, but not extensive, effort was made to make sure no other processes were running during the tournament. Both engines played (and pondered) at the same time on the same computer.
TJChess and Joker80 played at Game/15 in WinBoard. ChessV 0.9.0 was given 30 seconds to make a single move.
Joker80 lost all four games it played, giving TJChess10x8 and ChessV 2 points each. In the ChessV-TJChess10x8 games, TJChess10x8 won once as white, as did ChessV.
I observe that Joker80 is usually stronger than TJChess10x8, but plays Game/15 very poorly.
In both TJ-vs-ChessV games, ChessV made a castling move TJChess could not recognize (in Schoolbook, it is legal to move the kind two or three squares while castling, and four squares while castling on the queenside). When this happened, I stopped the clocks, set up the board to have the castling move be done, restarted WinBoard, and gave TJChess10x8 10 minutes to complete the rest of its moves.
The actual games, including Zillions of Games save files of all games, are available at the following location:
http://samiam.org/schoolbook/
As an aside, people can download ChessV here:
http://samiam.org/chessv/
For people who do not have Zillions of Games, the save files are in a format that looks like a normal Chess score.
OK, I'm done with Chess variants for 2009. We'll see if I have a 2010 tournament.
Time to go back to developing Deadwood.
Thursday, September 17, 2009
Tuesday, September 15, 2009
Deadwood news
I haven't made an update to Deadwood for a few days. I still have plans to begin the recursive code, and a pretty solid roadmap of how I will write that code, but life has come up and I just haven't had time these last two weeks to work on it.
What I have done, however, is test the Deadwood code. I have been running Deadwood in debug mode as my only DNS server for over a week and have not had a single crash. I also ran stress tests, again without a crash. The code looks solid; I think the September 9 update fixed whatever it was that was causing the crash I and an anonymous poster saw a week or two ago.
I hope to start work on Deadwood again in a day or two.
What I have done, however, is test the Deadwood code. I have been running Deadwood in debug mode as my only DNS server for over a week and have not had a single crash. I also ran stress tests, again without a crash. The code looks solid; I think the September 9 update fixed whatever it was that was causing the crash I and an anonymous poster saw a week or two ago.
I hope to start work on Deadwood again in a day or two.
Etiquetas:
Deadwood
Wednesday, September 9, 2009
Deadwood minor update
I've updated Deadwood's Makefile to have a new .c source file: DwRecurse.c, where routines specific for implementing full recursion will be placed.
Etiquetas:
Deadwood
Tuesday, September 8, 2009
Deadwood roadmap: Implementing recursion
I am now ready to begin implementing recursion for Deadwood.
My plan is to write functions that handle the recursion, then revamp the code that handles in-flight requests to be able to handle recursive requests.
The first code I will write is a function that can compare DNS labels in a string to see if they are the same label. If they are, return a 1, otherwise return a 0 (-1 if some error happens while doing this processing).
After doing that, I will write a function that, if given a DNS reply with NS records, converts the NS records in to IPs if there is sufficient information in the AR section of a DNS reply to do so.
Once I do that, I will make a function that sees if a given reply is complete. A complete reply is a reply where the IP or whatever they asked for is in the answer they give us. A CNAME reply is complete if it includes the requested IP/whatever. A "not there" (SOA in NS section) reply is complete. A reply with an IP is complete.
A CNAME reply without the actual IP or whatever is incomplete. As is a NS referral.
Anyway, I hope to start work on this in a day or two.
My plan is to write functions that handle the recursion, then revamp the code that handles in-flight requests to be able to handle recursive requests.
The first code I will write is a function that can compare DNS labels in a string to see if they are the same label. If they are, return a 1, otherwise return a 0 (-1 if some error happens while doing this processing).
After doing that, I will write a function that, if given a DNS reply with NS records, converts the NS records in to IPs if there is sufficient information in the AR section of a DNS reply to do so.
Once I do that, I will make a function that sees if a given reply is complete. A complete reply is a reply where the IP or whatever they asked for is in the answer they give us. A CNAME reply is complete if it includes the requested IP/whatever. A "not there" (SOA in NS section) reply is complete. A reply with an IP is complete.
A CNAME reply without the actual IP or whatever is incomplete. As is a NS referral.
Anyway, I hope to start work on this in a day or two.
Saturday, September 5, 2009
New Deadwood snapshots
Well, I've run a bunch of stress tests with Deadwood, both with gdb and with Valgrind. There are no errors nor (as an anonymous commenter thinks there might be) any memory leaks.
Since this anonymous commenter reports a glibc error (which, sadly, they did not have a chance to save), this indicates that there might be a double-free() situation. What I have done is revised reset_rem() to always make sure a given memory location is a non-null pointer before free()ing it, and making the memory pointer point to null after resetting it. I have also revised the code to initialize all "local" pointers as null pointers before being used.
The snapshot with these changes applied can be downloaded here:
http://maradns.org/deadwood/snap/
The filename with an 'H' in it (head branch) is the version to look at.
OK, at this point, I'm closing the issue as being unreproducible. If anyone sees this and has a stack trace or any useful information, please let me know.
I have also revised the stable 2.3 branch of Deadwood by removing a spurious fflush from the hash (cache) code. Again, the download is in the same place, with an 'S' in the filename (stable branch).
Since this anonymous commenter reports a glibc error (which, sadly, they did not have a chance to save), this indicates that there might be a double-free() situation. What I have done is revised reset_rem() to always make sure a given memory location is a non-null pointer before free()ing it, and making the memory pointer point to null after resetting it. I have also revised the code to initialize all "local" pointers as null pointers before being used.
The snapshot with these changes applied can be downloaded here:
http://maradns.org/deadwood/snap/
The filename with an 'H' in it (head branch) is the version to look at.
OK, at this point, I'm closing the issue as being unreproducible. If anyone sees this and has a stack trace or any useful information, please let me know.
I have also revised the stable 2.3 branch of Deadwood by removing a spurious fflush from the hash (cache) code. Again, the download is in the same place, with an 'S' in the filename (stable branch).
Etiquetas:
Deadwood
Friday, September 4, 2009
Deadwood testing update
Yesterday, my copy of Deadwood 2.4.07 crashed in Windows, and I had to restart the service.
I looked at the Dr. Watson log, but the log had no useful information about why Deadwood crashed (it had an exception number of 80000007 and reported "ERROR -> ntdll!KiFastSystemCallRet: 7c91e514 c3 ret"), but appears to be something outside of Deadwood's code).
I ran some stress tests with Deadwood in Linux this morning and was unable to reproduce the crash.
I am going to close this issue as "unreproducible" unless anyone chimes in and reports Deadwood 2.4.07 crashing. It was probably caused by some bug in the Windows kernel or what not. If anyone sees this kind of crash, it would be best to include a stack trace, but I'll live if all you can give me is a Dr. Watson rerpot.
I looked at the Dr. Watson log, but the log had no useful information about why Deadwood crashed (it had an exception number of 80000007 and reported "ERROR -> ntdll!KiFastSystemCallRet: 7c91e514 c3 ret"), but appears to be something outside of Deadwood's code).
I ran some stress tests with Deadwood in Linux this morning and was unable to reproduce the crash.
I am going to close this issue as "unreproducible" unless anyone chimes in and reports Deadwood 2.4.07 crashing. It was probably caused by some bug in the Windows kernel or what not. If anyone sees this kind of crash, it would be best to include a stack trace, but I'll live if all you can give me is a Dr. Watson rerpot.
Etiquetas:
Deadwood
Thursday, September 3, 2009
Another feature to add for Deadwood 3.0
Another feature I will need to add to Deadwood 3.0 before releasing it is giving it the ability to parse legal MaraDNS 1.x files.
This means I have to add every single variable MaraDNS 1.x has in mararc files and adding it to Deadwood. For the most past, the variables will be ignored and do nothing; the Deadwood man page will have, for each of these variables, a description of the variable and the note "This variable does not affect Deadwood and is only here so Deadwood can parse MaraDNS mararc files". For example, we will have a "dummy" csv2 dictionary variable (a pointer to a zone file in MaraDNS 1.2+) which will do nothing in Deadwood.
The most notable change I will have to make is adding support for ipv4_alias to Deadwood 3.0, which will result in the code which parses IPs being re-written.
This means I have to add every single variable MaraDNS 1.x has in mararc files and adding it to Deadwood. For the most past, the variables will be ignored and do nothing; the Deadwood man page will have, for each of these variables, a description of the variable and the note "This variable does not affect Deadwood and is only here so Deadwood can parse MaraDNS mararc files". For example, we will have a "dummy" csv2 dictionary variable (a pointer to a zone file in MaraDNS 1.2+) which will do nothing in Deadwood.
The most notable change I will have to make is adding support for ipv4_alias to Deadwood 3.0, which will result in the code which parses IPs being re-written.
Subscribe to:
Posts (Atom)
