Search found 4166 matches

by syzygy
Sat Jul 14, 2012 4:28 pm
Forum: Computer Chess Club: General Topics
Topic: #Mat in 12
Replies: 30
Views: 3208

Re: #Mat in 12

Octochess finds the mate in less than a second: (...) info depth 11 seldepth 24 nodes 746697 score mate 11 time 616 nps 1212099 pv b3d5 h4a4 a3b2 a4b4 b2c3 b4c4 d5c4 b5c4 e6e7 h8e8 c7d8 b7c8 d8e8 a8b7 e8f7 c8d7 e7e8q b7c6 e8d7 c6b6 d7c7 b6b5 f7c4 I count 12 moves. 30 12:11 +M11 1.Bd5 Ra4+ 2.Kb2 Rb4...
by syzygy
Sat Jul 14, 2012 3:56 pm
Forum: Computer Chess Club: General Topics
Topic: #Mat in 12
Replies: 30
Views: 3208

Re: Mate-in-11?

kgburcham wrote:ease up Louis. Isnt it ok that every once in a while these 3300 elo programs are not perfect? we expect a lot from them.
I assume it is because some of the best moves are pruned out.
Reporting a mate in 11 where there is only a mate in 12 is definitely a bug. (The other way around it is not.)
by syzygy
Sat Jul 14, 2012 10:11 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Proper way to learn c ?
Replies: 63
Views: 11961

Re: Proper way to learn c ?

No, the normal way is to link against glibc, which will then invoke the kernel using a system call. Making a system call can only be implemented in assembly and you will not notice any difference between C and C++ there. So what's the benefit of using C++ in kernel then? glibc is C, not? :wink: The...
by syzygy
Wed Jul 11, 2012 8:32 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Random value compute or table hard coded ?
Replies: 25
Views: 3624

Re: Random value compute or table hard coded ?

Note that you just need to store the castling rights for the 2 rooks, not from-to nor for the king. So you need just 4 numbers in total in theory. Yes, and those 16 numbers are really just 4 numbers. Probably they managed to save out another cycle with this and every cycle is 1 if you're at that ma...
by syzygy
Wed Jul 11, 2012 7:46 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Random value compute or table hard coded ?
Replies: 25
Views: 3624

Re: Random value compute or table hard coded ?

Just out of interest - why do you need 16 random numbers for castling? They are 16 XOR'd combinations of 4 random numbers. The trick is to keep track of castling status in 4 bits, then update the hash key by XOR'ing with RandomCastle[old_status ^ new_status]. So the RandomCastle[] array has to be i...
by syzygy
Wed Jul 11, 2012 4:03 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Programmer code of honor (update)
Replies: 88
Views: 12611

Re: Programmer code of honor (update)

I also think it makes no sense to prohibit something that is completely undetectable and unprovable. You cannot tell if someone desassebled another program, you can only tell if they copied the details to a point that proved that they had to have decompiled the program. In general such acts are nei...
by syzygy
Wed Jul 11, 2012 12:48 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Proper way to learn c ?
Replies: 63
Views: 11961

Re: Proper way to learn c ?

The benefit of using C++ in the kernel would be that kernel developers could use C++ Reminds me of absolute rhyme :) No seriously I don't see any benefit in that. Then I guess you are not a kernel developer wishing to develop in C++. I'm not either. I'm also not asking the Linux kernel to be conver...
by syzygy
Wed Jul 11, 2012 12:09 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Proper way to learn c ?
Replies: 63
Views: 11961

Re: Proper way to learn c ?

No, the normal way is to link against glibc, which will then invoke the kernel using a system call. Making a system call can only be implemented in assembly and you will not notice any difference between C and C++ there. So what's the benefit of using C++ in kernel then? glibc is C, not? :wink: The...
by syzygy
Tue Jul 10, 2012 11:59 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Proper way to learn c ?
Replies: 63
Views: 11961

Re: Proper way to learn c ?

Huh? Do you know what the Linux kernel is? It is not the C library.... You tell me. You don't link against kernel directly. You don't link against CRT. That sounds like magic :D EDIT: how do you open a file then? You leave an email to Linus? No, the normal way is to link against glibc, which will t...
by syzygy
Tue Jul 10, 2012 11:52 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Proper way to learn c ?
Replies: 63
Views: 11961

Re: Proper way to learn c ?

mar wrote:
syzygy wrote: Do you realise that Linux executables are not linked against kernel object code?

Name mangling is not an issue here at all.
No I don't :) Against CRT then? So all you have to do is use extern "C" :)
Cool. Very C++ish
Huh? Do you know what the Linux kernel is? It is not the C library....