Delimiter development diary

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
maksimKorzh
Posts: 771
Joined: Sat Sep 08, 2018 5:37 pm
Location: Ukraine
Full name: Maksim Korzh

Re: Delimiter development diary

Post by maksimKorzh »

Cool that you didn't give up!
shinkarom
Posts: 92
Joined: Tue Nov 19, 2019 1:26 pm
Full name: Roman Shynkarenko

Re: Delimiter development diary

Post by shinkarom »

Don't be fooled, the project is still pointless.
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 »

With the files converted, now it's time to make it work. The engine now can think to depth 1 from the start position without erros. (Depths 2 and 3 are still glitchy).
There were many mistypings in the code. I presume even more will be found before Delimiter is Arena-worthy.
In other news: I created my own debugit module. For now it only prints the board pieces, but of course the need for debugging will only increase.
If you haven't nocited, Delimiter is now a derivative of Lime rather than a port.
unserializable
Posts: 64
Joined: Sat Oct 24, 2020 6:39 pm
Full name: Taimo Peelo

Re: Delimiter development diary

Post by unserializable »

Hey Roman, if you get around to adding some compilation instructions, or better yet, Makefile that makes use of D compiler that is available from Debian / Ubuntu repositories, I might fire Delimiter up some time.
Monchester 1.0, chess engine playing at scholastic level: https://github.com/unserializable/monchester ("Daddy, it is gonna take your horsie!")
Tickle Monchester at: https://lichess.org/@/monchester
shinkarom
Posts: 92
Joined: Tue Nov 19, 2019 1:26 pm
Full name: Roman Shynkarenko

Re: Delimiter development diary

Post by shinkarom »

There's not much to do. Just install dmd(the D compiler). Then in the root folder of the repo type dub build. It's supposed to build the executable into the bin subfolder.
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: Fri Feb 26, 2021 9:33 am There's not much to do. Just install dmd(the D compiler). Then in the root folder of the repo type dub build. It's supposed to build the executable into the bin subfolder.
If you want some acceptable performances it is better to compile it with ldc2 or gdc (dub build --compiler ldc2 --release) than with dmd. However dmd is a good compiler at the early stages of development, as it compiles amazingly fast.
Unfortunately, the compilation failed on my computer. I submitted two PR to correct the erroneous lines. Once compiled, it looks like the program is still in debugging stages (it proposes b2c3 as first move from the starting position), so I didn't look it further.
Good luck to make it progress and reach a playable level.
Richard Delorme
shinkarom
Posts: 92
Joined: Tue Nov 19, 2019 1:26 pm
Full name: Roman Shynkarenko

Re: Delimiter development diary

Post by shinkarom »

I've merged one pull request, the one about interrupt.d. The one about srand was not needed since I changed book.d to use std.random.
Check out the engine now, it should be more reasonable on depths 1 and 2. Depth 3 still makes it crash.
Thank you for your attention. You don't know how much this means to me. An actual confirmation that someone is using my project, with specific details and not merely generic phrases (which might be simple politeness).
unserializable
Posts: 64
Joined: Sat Oct 24, 2020 6:39 pm
Full name: Taimo Peelo

Re: Delimiter development diary

Post by unserializable »

shinkarom wrote: Fri Feb 26, 2021 9:33 am There's not much to do. Just install dmd(the D compiler). Then in the root folder of the repo type dub build. It's supposed to build the executable into the bin subfolder.
Hey, without implicit awareness of D ecosystem (as most do not), this might not be so straightforward. I myself have actually heard of dmd, but never of dub though I have wide (though at times superficial) knowledge of software development world. Also dmd itself actually is not available from Ubuntu 20.04.2 default repositories, though there is DMD-like wrapper for GDC (... and apparently, dmd might be possible to be installed as snap with sudo snap install dmd, but I avoid snap usage).

Code: Select all

$ apt-cache search dmd | grep -i dmd
gdmd - DMD-like wrapper for GDC
libcrypt-passwdmd5-perl - interoperable MD5-based crypt() for Perl
Some further grepping revealed metapackage 'default-d-compiler - Default D compiler (metapackage)' which installs no actual compiler at all. So with Richard hints above, I tried out gdc and dub installation:

Code: Select all

$ sudo apt install gdc dub
Which installed "gdc (Ubuntu 10.2.0-5ubuntu1~20.04) 10.2.0" and "dub 1.19.0-1build2" packages. However, the dub does not work at all:

Code: Select all

$ dub build
dub: symbol lookup error: dub: undefined symbol: _D3std3net4curl4HTTP9__mixin376onSendMFNdDFAvZmZv
The gdc compiler itself seems to function fine, at least "Hello world" I tried out compiled and ran successfully, so some simple Makefile could be of help for tryouts. Searching for the dub error indicates that its packages in neither Debian or Ubuntu are well maintained (see https://forum.dlang.org/post/lvtnjxlyvh ... .dlang.org)
Monchester 1.0, chess engine playing at scholastic level: https://github.com/unserializable/monchester ("Daddy, it is gonna take your horsie!")
Tickle Monchester at: https://lichess.org/@/monchester
shinkarom
Posts: 92
Joined: Tue Nov 19, 2019 1:26 pm
Full name: Roman Shynkarenko

Re: Delimiter development diary

Post by shinkarom »

Maybe try installing dub from original repository https://github.com/dlang/dub/releases.