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 »

shinkarom wrote: Sun Dec 20, 2020 1:29 pm
maksimKorzh wrote: Sun Dec 20, 2020 1:13 am
I don't have a daily job. Health problems and all that. And if you'd seen my code, you wouldn't suspect me of coding professionally.
I use D because it's the closest thing to C++ with Cyrillic console input. It's a pity that my computer is too weak for Visual Studio, because C# would be the ideal choice.
Though D is nice too, only without GUI. Its syntax is not alien as C++ replacement, and it has a few good features, like UFCS.
I've started freelancing after learning to code via writing chess engines. If you're at home, have computer and internet - that's enough for doing some remote jobs. I saw your code ofcourse - you have a good potential.
shinkarom
Posts: 92
Joined: Tue Nov 19, 2019 1:26 pm
Full name: Roman Shynkarenko

Re: Delimiter development diary

Post by shinkarom »

Finally figured out how to imitate in D the array of pointers to arrays. This marks the completion of the remaining parts of psqt.

https://github.com/shinkarom/delimiterc ... 4a10cda389

Announcement: if you (plural) like this project very much (which I doubt), please consider supporting this humble non-coder by giving me money (which I also highly doubt).
shinkarom
Posts: 92
Joined: Tue Nov 19, 2019 1:26 pm
Full name: Roman Shynkarenko

Re: Delimiter development diary

Post by shinkarom »

Converted the whole of data.cpp.
Note to self: D does not use suffix ULL for unsigned long numbers.

https://github.com/shinkarom/delimiterc ... bc44b43ed9
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 »

shinkarom wrote: Sun Dec 20, 2020 2:31 pm Finally figured out how to imitate in D the array of pointers to arrays. This marks the completion of the remaining parts of psqt.

https://github.com/shinkarom/delimiterc ... 4a10cda389

Announcement: if you (plural) like this project very much (which I doubt), please consider supporting this humble non-coder by giving me money (which I also highly doubt).
People are usually about to give you some money if you do something useful for THEM - they don't care if you're doing it for YOUR OWN.
I know that from my YouTube experience - helping others can be monetized, but donations are almost never to come.
I think to start getting donations one must create something of lichess.org level site, but again like - it's the matter of doing something
useful for others.

I wanted to make money on chess programming earlier, but now I've realized that it's kind of almost impossible)
On the other hand this is good because when you're not doing something for money - you're totally free do do it however you want.
Foe example I do web scraping for money. Even though I'm sick and tired of that so much at the moment, still it works awesome
as my current only source of income as a freelancer (no upwork or similar, pure youtube clients/subscribers).

Now I'm trying to switch to paid consultations which works really well, but not too often.
Hope it helps.
shinkarom
Posts: 92
Joined: Tue Nov 19, 2019 1:26 pm
Full name: Roman Shynkarenko

Re: Delimiter development diary

Post by shinkarom »

maksimKorzh wrote: Mon Dec 21, 2020 3:22 am
Please notice that I didn't say "please consider donating", because, as you said, donations are associated with worthy causes. This was more street beggar-like plea.
In fact having that disclaimer was one of the goals of developing Konotop. Just for fun, because, honestly, I don't expect anyone to heed it.
<rant>
There's not enough grey matter in this brain of mine or stamina in these muscles to develop something worth donating. And given that my only source of income is pension due to aforementioned health problems, earning at least something in 29 years from my programming becomes an obsession.
</rant>
shinkarom
Posts: 92
Joined: Tue Nov 19, 2019 1:26 pm
Full name: Roman Shynkarenko

Re: Delimiter development diary

Post by shinkarom »

Converted log.cpp.
D functions write, writeln, writef and writefln are more pleasant to work with than C analogues.

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

Re: Delimiter development diary

Post by shinkarom »

Converted alloctime.cpp.
Converting smaller files first has its advantages.

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

Re: Delimiter development diary

Post by shinkarom »

Converted sort.cpp.
This file is responsible for sorting the move list, taking in account killers and pv.

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

Re: Delimiter development diary

Post by shinkarom »

Converted board.cpp.
It takes some skills to have a development diary. Right now there is nothing to report. I'm just mechanistically rewriting the C code, adapting it for D.
It's good that the languages are so similar. This was one of the reasons to choose D.

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

Re: Delimiter development diary

Post by shinkarom »

Converted interrupt.cpp.
It seems to be the only file that requires platform specific code. The work moves forward slowly.

https://github.com/shinkarom/delimiterc ... 599e92193d