Search found 16712 matches

by bob
Fri Mar 23, 2018 4:17 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: I'm not very happy with the do {} while() statement in C
Replies: 111
Views: 19693

Re: I'm not very happy with the do {} while() statement in C

Little endian is a retarded design that came due to backward compatibility with the original 8 bit architecture. Many machines have done it right (big endian). Little endian has one important property, fetching smaller integer from the same address. This is the reason why BE sucks and why LE is act...
by bob
Thu Mar 22, 2018 12:21 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: trick question
Replies: 25
Views: 4035

Re: trick question

Hmm, i think they are equally likely :) My line of thought is : a) Each number from 160 - 199 has a probability of 1/40 of hitting exactly 200 on the next polling test. At this point i thought, hey this (1/40) is more likely than 1/200 but nooo... b) We are in this range, i.e.160-199 only 40/200 of...
by bob
Thu Mar 15, 2018 3:22 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Reliable speed comparison: some math required
Replies: 33
Views: 6628

Re: Reliable speed comparison: some math required

You can also use intel's vtune tool and get even more information. IE total clock cycles, total instructions executed, total cache hits/misses, etc... On Linux, perf also gives that information. Another interesting application of perf is identifying (false) sharing, which easily kills performance w...
by bob
Wed Mar 14, 2018 2:20 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: I'm not very happy with the do {} while() statement in C
Replies: 111
Views: 19693

Re: I'm not very happy with the do {} while() statement in C

saddling the development community with a scrawny architecture basically forever. Well, no. The last true x86 architecture was the 486. After that, we still have the external x86 instruction set, but not the architecture; internally, modern x86 CPUs are something entirely different. And nobody care...
by bob
Wed Mar 14, 2018 2:06 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: I'm not very happy with the do {} while() statement in C
Replies: 111
Views: 19693

Re: I'm not very happy with the do {} while() statement in C

Only question is, who wants to do that? No speed savings to fetch less than an 8 byte value, a penalty in fact... Causes lots of overhead on the network which is big-endian in data transmission (hence the hton functions in the network library... I found a use case for this in my current project. Ce...
by bob
Sat Mar 10, 2018 10:18 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: I'm not very happy with the do {} while() statement in C
Replies: 111
Views: 19693

Re: I'm not very happy with the do {} while() statement in C

It is simply what you get when you keep hacking on an instruction set to add new features. The customers have decided that they don't want to throw away all the software they already paid for. That's why backwards compatibility won, because it addressed the needs of the paying customers. But none o...
by bob
Sat Mar 10, 2018 10:13 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: I'm not very happy with the do {} while() statement in C
Replies: 111
Views: 19693

Re: I'm not very happy with the do {} while() statement in C

Only question is, who wants to do that? No speed savings to fetch less than an 8 byte value, a penalty in fact... Causes lots of overhead on the network which is big-endian in data transmission (hence the hton functions in the network library...
by bob
Sat Mar 10, 2018 6:08 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: I'm not very happy with the do {} while() statement in C
Replies: 111
Views: 19693

Re: I'm not very happy with the do {} while() statement in C

I would add that 64 bit code (Intel world) is beyond a messy environment. It was a HUGE kludge (64 bit instructions added) on top of an already HUGE kludge Why? I actually think that long mode in x64 (AMD 64) is a natural extension to x86, basically boils down to REX prefix (sacrificing 1-byte inc/...
by bob
Sat Mar 10, 2018 5:58 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: what to do when all depths give the exact same score?
Replies: 8
Views: 1139

Re: what to do when all depths give the exact same score?

Two comments. (1) using endgame tables is the answer here as it will handle all of the oddball cases with reduced material; (2) you ought to be able to find the draw via search. I just tried Crafty and with one thread on my 1.7ghz MacBook, it takes less than 3 seconds to come up with a repetition dr...
by bob
Sat Mar 10, 2018 4:20 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: I'm not very happy with the do {} while() statement in C
Replies: 111
Views: 19693

Re: I'm not very happy with the do {} while() statement in C

I don't mean to be a pain but to me it sounds like you are describing the C++ way. I know that C++ objects can be simulated in C using structures and being strict in using function calls accordingly. But then I might as well use C++. In my way of thinking C++ using objects is superior for a team pr...