Search found 17 matches

by ker2x
Sat Dec 01, 2018 8:25 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Java: white ? repeat : repeat;
Replies: 31
Views: 5571

Re: Java: white ? repeat : repeat;

Joost Buijs wrote:
Sat Dec 01, 2018 8:16 am
ker2x wrote:
Sat Dec 01, 2018 6:50 am
feel free to skip at 30:00 if you want to see what i'm talking about when i wrote about bit shifting.
When you multiply by 2 you can do even better than << 2
Haha, I always thought it was << 1, always good to learn something new.
woops :D
by ker2x
Sat Dec 01, 2018 7:09 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Java: white ? repeat : repeat;
Replies: 31
Views: 5571

Re: Java: white ? repeat : repeat;

[MethodImpl(MethodImplOptions.AggressiveInlining)] public static int CountSetBits(ulong Value) { int count = 0; while (Value > 0) { count++; Value &= Value - 1ul; } Debug.Assert((count >= 0) && (count <= _longBits)); return count; } // See https://stackoverflow.com/questions/37083402/fastest-way-to...
by ker2x
Sat Dec 01, 2018 6:50 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Java: white ? repeat : repeat;
Replies: 31
Views: 5571

Re: Java: white ? repeat : repeat;

feel free to skip at 30:00 if you want to see what i'm talking about when i wrote about bit shifting.
When you multiply by 2 you can do even better than << 2
by ker2x
Sat Dec 01, 2018 6:13 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Java: white ? repeat : repeat;
Replies: 31
Views: 5571

Re: Java: white ? repeat : repeat;

i managed to read the whole thread. With the exception of some very specific, like intrinsic of moderately modern cpu instruction set, the speed at which an instruction is executing doesn't really matter. In this very specific case of some intrinsic like popcnt : stockfish_64: 1764951 stockfish_64_p...
by ker2x
Sat Dec 01, 2018 5:26 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Java: white ? repeat : repeat;
Replies: 31
Views: 5571

Re: Java: white ? repeat : repeat;

Hi all, I am steadily making my Java engine Axolotl less horrible, and there is one particular bit of code that bloats my engine a heck of a lot. if (white){ knights = board.WHITE_KNIGHTS; } else { knights = board.BLACK_KNIGHTS; } long myPieces = white ? board.WHITE_BISHOPS : board.BLACK_BISHOPS; A...
by ker2x
Thu Nov 22, 2018 3:46 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: new Engine, Axolotl
Replies: 31
Views: 6156

Re: new Engine, Axolotl

AxolotlFever wrote:
Fri Nov 16, 2018 9:57 am
I am from the UK and France. I don't suppose there is support for this?
Go team France ! :D

Image
by ker2x
Wed Nov 21, 2018 9:57 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Enjoying GM Alex Yermolinsky's analysis
Replies: 3
Views: 1346

Re: Enjoying GM Alex Yermolinsky's analysis

Aldus wrote:
Tue Nov 20, 2018 12:50 am
He has a very funny accent.
Russian accents are the best :oops:
by ker2x
Wed Nov 21, 2018 9:55 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Any Fortran coder ?
Replies: 26
Views: 5684

Re: Any Fortran coder ?

If you work in the profession as a developer or devops or other person who codes partially or wholly for a living, I suggest you pick another language. C and C++ are the standard languages I am aware of that most of the modern chess programs I have seen have been written in. Our community is enrich...
by ker2x
Fri Nov 16, 2018 7:47 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Any Fortran coder ?
Replies: 26
Views: 5684

Re: Any Fortran coder ?

I worked with Fortran for about ten years, up to a few years ago. Mainly for floating point calculations though, I never really used its bitwise operators, but I seem to recall they’re overly verbose. Fortran’s main strengths, as I see it, are its array block operations and auto-parallelisable loop...
by ker2x
Fri Nov 16, 2018 7:31 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Any Fortran coder ?
Replies: 26
Views: 5684

Re: Any Fortran coder ?

If you work in the profession as a developer or devops or other person who codes partially or wholly for a living, I suggest you pick another language. C and C++ are the standard languages I am aware of that most of the modern chess programs I have seen have been written in. Nah, i'm not a professi...