Donna, a new UCI chess engine by Michael Dvorkin

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

Norbert Raimund Leisner
Posts: 1643
Joined: Tue May 20, 2008 4:57 pm
Location: Augsburg - Germany

Re: My test

Post by Norbert Raimund Leisner »

Thomas Kappler created an executable file for Windows 64-bit too on the following website
https://onedrive.live.com/?cid=53e547e3 ... DZcCK96VmU
Norbert Raimund Leisner
Posts: 1643
Joined: Tue May 20, 2008 4:57 pm
Location: Augsburg - Germany

Re: My test

Post by Norbert Raimund Leisner »

AIBiODZcCK96VmU must be added to the given URL for download Donna 1.0 MK x64

Norbert
User avatar
Graham Banks
Posts: 41472
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: Donna, a new UCI chess engine by Michael Dvorkin

Post by Graham Banks »

cdani wrote:Hi!
Here it is a 64 bit version:

http://www.andscacs.com/donna/donna1.rar

I had to copy the source in
src\donna (from $GOROOT)
to be able to compile it with

go build -gcflags -B ./donna.go

Also I changed the first import of donna.go:
import (
`donna`
When I run Donna under ChessGUI, it installs okay, but on its first move just keeps thinking (and displaying the output) until it loses on time.
Any suggestions?
gbanksnz at gmail.com
User avatar
Graham Banks
Posts: 41472
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: Donna, a new UCI chess engine by Michael Dvorkin

Post by Graham Banks »

Graham Banks wrote:
cdani wrote:Hi!
Here it is a 64 bit version:

http://www.andscacs.com/donna/donna1.rar

I had to copy the source in
src\donna (from $GOROOT)
to be able to compile it with

go build -gcflags -B ./donna.go

Also I changed the first import of donna.go:
import (
`donna`
When I run Donna under ChessGUI, it installs okay, but on its first move just keeps thinking (and displaying the output) until it loses on time.
Any suggestions?
Works okay on a modern computer, but not on a non-popcount one.
Guess I need to ask Daniel nicely for a non-popcount 64-bit compile. :)
gbanksnz at gmail.com
User avatar
cdani
Posts: 2204
Joined: Sat Jan 18, 2014 10:24 am
Location: Andorra

Re: Donna, a new UCI chess engine by Michael Dvorkin

Post by cdani »

Graham Banks wrote: Works okay on a modern computer, but not on a non-popcount one.
Guess I need to ask Daniel nicely for a non-popcount 64-bit compile. :)
I'm sorry that I find no documentation in internet to do this. May be someone with knowledge of Go can do it.
User avatar
Graham Banks
Posts: 41472
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: Donna, a new UCI chess engine by Michael Dvorkin

Post by Graham Banks »

cdani wrote:
Graham Banks wrote: Works okay on a modern computer, but not on a non-popcount one.
Guess I need to ask Daniel nicely for a non-popcount 64-bit compile. :)
I'm sorry that I find no documentation in internet to do this. May be someone with knowledge of Go can do it.
Thanks for replying Daniel.

Is anybody else able to do this?
gbanksnz at gmail.com
User avatar
Graham Banks
Posts: 41472
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: Donna, a new UCI chess engine by Michael Dvorkin

Post by Graham Banks »

Graham Banks wrote:
cdani wrote:
Graham Banks wrote: Works okay on a modern computer, but not on a non-popcount one.
Guess I need to ask Daniel nicely for a non-popcount 64-bit compile. :)
I'm sorry that I find no documentation in internet to do this. May be someone with knowledge of Go can do it.
Thanks for replying Daniel.

Is anybody else able to do this?
Strangely enough, Donna works on my Q8200, but not on my Q6600.
gbanksnz at gmail.com
spambanane
Posts: 22
Joined: Sun Jun 17, 2012 9:45 am

Re: Donna, a new UCI chess engine by Michael Dvorkin

Post by spambanane »

Norbert Raimund Leisner wrote:From Donna's source directory run the build command:

$ go build -gcflags -B ./cmd/donna.go

Best wishes,
Norbert

using the "-B" gc flag (disabeling boundary checking) is a very bad idea.

quoting a go core developer (dave cheney): "It is important to note that -B is an unsupported flag. The goal of Go is a safe language, one where array subscripts are bounds checked when they are not provably safe. Go already elides bounds checks when you use range loops, and future compilers will improve this. It is also important to note that none of the builders test -B so it might even generate incorrect code. In summary, when the compiler improves, -B will go away, so don’t get too attached."

so chances are high that creating an executable with "go build" will solve the problems.
spambanane
Posts: 22
Joined: Sun Jun 17, 2012 9:45 am

Re: Donna, a new UCI chess engine by Michael Dvorkin

Post by spambanane »

cdani wrote:Hi!
Here it is a 64 bit version:

http://www.andscacs.com/donna/donna1.rar

I had to copy the source in
src\donna (from $GOROOT)
to be able to compile it with

go build -gcflags -B ./donna.go

Also I changed the first import of donna.go:
import (
`donna`
1. set the enviroment variable GOPATH to where you want the go projekt to reside
2. "go get github.com/michaeldv/donna/cmd"
3. you will find an executable file named "cmd" in $GOPATH/bin
User avatar
cdani
Posts: 2204
Joined: Sat Jan 18, 2014 10:24 am
Location: Andorra

Re: Donna, a new UCI chess engine by Michael Dvorkin

Post by cdani »

spambanane wrote:
cdani wrote:Hi!
Here it is a 64 bit version:

http://www.andscacs.com/donna/donna1.rar

I had to copy the source in
src\donna (from $GOROOT)
to be able to compile it with

go build -gcflags -B ./donna.go

Also I changed the first import of donna.go:
import (
`donna`
1. set the enviroment variable GOPATH to where you want the go projekt to reside
2. "go get github.com/michaeldv/donna/cmd"
3. you will find an executable file named "cmd" in $GOPATH/bin
Thanks for the info! Was the first compile I have done in Go. Also the -B flag was proposed by the author of the engine.

Do you know if this changes something about the problem of Graham?