Delimiter development diary

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

shinkarom
Posts: 92
Joined: Tue Nov 19, 2019 1:26 pm
Full name: Roman Shynkarenko

Re: Delimiter development diary

Post by shinkarom »

shinkarom
Posts: 92
Joined: Tue Nov 19, 2019 1:26 pm
Full name: Roman Shynkarenko

Re: Delimiter development diary

Post by shinkarom »

I skipped debugit.cpp because it's very rarely used in the code and because if needed I'll write the debug functions myself.
shinkarom
Posts: 92
Joined: Tue Nov 19, 2019 1:26 pm
Full name: Roman Shynkarenko

Re: Delimiter development diary

Post by shinkarom »

Your thoughts, anyone? The silence here is really disconcerting.
shinkarom
Posts: 92
Joined: Tue Nov 19, 2019 1:26 pm
Full name: Roman Shynkarenko

Re: Delimiter development diary

Post by shinkarom »

abulmo2
Posts: 433
Joined: Fri Dec 16, 2016 11:04 am
Location: France
Full name: Richard Delorme

Re: Delimiter development diary

Post by abulmo2 »

shinkarom wrote: Sat Jan 23, 2021 3:24 pm Your thoughts, anyone? The silence here is really disconcerting.
I am waiting for the final result :-)
What approach are you using to convert from the C language to the D language? A direct rewrite into full D, or into D as betterC. I know Walter Bright uses the latter to convert dmd from C to D. At some time the compiler was a mixture of D and C, but still compilable and with a conservative behaviour. That says a chess program is small enough to directly re-write it in idiomatic D.
I guess people would me more interested in seeing a rewrite of Stockfish into D, as Stockfish has been already rewritten into C, asm, and rust.
Richard Delorme
shinkarom
Posts: 92
Joined: Tue Nov 19, 2019 1:26 pm
Full name: Roman Shynkarenko

Re: Delimiter development diary

Post by shinkarom »

abulmo2 wrote: Sun Jan 24, 2021 12:46 pm What approach are you using to convert from the C language to the D language?
Just simple rewriting to full D, using std.algorithm where I can't copy the text verbatim. Making sure this is idiomatic D (not like with Lime which was C with a few drops of C++ flavoring) will come later. Right now my goal is just have have it compile without errors. Only when testing the completely rewritten engine I will understand if my converted functions work.

Dockfish better be written by someone else, because this is too trodden ground. Part of my selecting Lime was choosing the engine for a base which would not be too strong or too famous. So that people would not sigh, "Stockfish based engine, what a low effort project".
shinkarom
Posts: 92
Joined: Tue Nov 19, 2019 1:26 pm
Full name: Roman Shynkarenko

Re: Delimiter development diary

Post by shinkarom »

shinkarom
Posts: 92
Joined: Tue Nov 19, 2019 1:26 pm
Full name: Roman Shynkarenko

Re: Delimiter development diary

Post by shinkarom »

shinkarom
Posts: 92
Joined: Tue Nov 19, 2019 1:26 pm
Full name: Roman Shynkarenko

Re: Delimiter development diary

Post by shinkarom »

Converted movegen.cpp
Only two more files to go.

https://github.com/shinkarom/delimiterc ... 7c5a6644f6
shinkarom
Posts: 92
Joined: Tue Nov 19, 2019 1:26 pm
Full name: Roman Shynkarenko

Re: Delimiter development diary

Post by shinkarom »