Converted perft.cpp
https://github.com/shinkarom/delimiterc ... 3cf5f3331c
Delimiter development diary
Moderators: hgm, Rebel, chrisw
-
- Posts: 92
- Joined: Tue Nov 19, 2019 1:26 pm
- Full name: Roman Shynkarenko
-
- Posts: 92
- Joined: Tue Nov 19, 2019 1:26 pm
- Full name: Roman Shynkarenko
Re: Delimiter development diary
I skipped debugit.cpp because it's very rarely used in the code and because if needed I'll write the debug functions myself.
-
- Posts: 92
- Joined: Tue Nov 19, 2019 1:26 pm
- Full name: Roman Shynkarenko
Re: Delimiter development diary
Your thoughts, anyone? The silence here is really disconcerting.
-
- Posts: 92
- Joined: Tue Nov 19, 2019 1:26 pm
- Full name: Roman Shynkarenko
-
- Posts: 433
- Joined: Fri Dec 16, 2016 11:04 am
- Location: France
- Full name: Richard Delorme
Re: Delimiter development diary
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
-
- Posts: 92
- Joined: Tue Nov 19, 2019 1:26 pm
- Full name: Roman Shynkarenko
Re: Delimiter development diary
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".
-
- Posts: 92
- Joined: Tue Nov 19, 2019 1:26 pm
- Full name: Roman Shynkarenko
-
- Posts: 92
- Joined: Tue Nov 19, 2019 1:26 pm
- Full name: Roman Shynkarenko
-
- Posts: 92
- Joined: Tue Nov 19, 2019 1:26 pm
- Full name: Roman Shynkarenko
Re: Delimiter development diary
Converted movegen.cpp
Only two more files to go.
https://github.com/shinkarom/delimiterc ... 7c5a6644f6
Only two more files to go.
https://github.com/shinkarom/delimiterc ... 7c5a6644f6
-
- Posts: 92
- Joined: Tue Nov 19, 2019 1:26 pm
- Full name: Roman Shynkarenko