Lisp and Stalin

Discussion of chess software programming and technical issues.

Moderator: Ras

jwes
Posts: 778
Joined: Sat Jul 01, 2006 7:11 am

Lisp and Stalin

Post by jwes »

I just read about the Stalin compiler for Lisp. It supposedly generates optimized c code from lisp. Has anyone tried it ?
User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 7:43 pm

Re: Lisp and Stalin

Post by sje »

Stalin compiles Scheme, not Common Lisp.

Lisp compilers are nothing new, and are fairly easy to write. The first Lisp compiler was written in 1962 and so predates nearly every other language compiler other than Fortran compilers.
User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 7:43 pm

Re: Lisp and Stalin

Post by sje »

I found a Scheme chess program source:

http://synthcode.com/scheme/kishi.scm

It even has an xboard interface.
User avatar
Jim Ablett
Posts: 2386
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Lisp and Stalin - * Kishi Windows-winboard build here *

Post by Jim Ablett »

sje wrote:I found a Scheme chess program source:

http://synthcode.com/scheme/kishi.scm

It even has an xboard interface.
Nice find Steven. :)

I successfully compiled a working Windows executable
using the 'Chicken' Scheme>C compiler, (http://www.call-with-current-continuation.org/)
Or should I say half-working, it only plays as black.

http://www.mediafire.com/?tfd5yqyzjx1

regards,
Jim.
User avatar
Jim Ablett
Posts: 2386
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Lisp and Stalin - * Kishi Windows-winboard build here *

Post by Jim Ablett »

I had a look through the src and found some command-line options/switches that Kishi uses >

Examples:

Code: Select all

kishi.exe -xboard -depth=6 -position=fen.epd -verbose -ansi -unicode -no-display -reverse-video -black
Jim.
User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 7:43 pm

Re: Lisp and Stalin - * Kishi Windows-winboard build here *

Post by sje »

Jim Ablett wrote:Or should I say half-working, it only plays as black.
I think the command line switch "-b" sets black as the program color. Haven't tried it yet, though.

I don't see an underpromotion capability. Certain draw types are also ignored, although the xboard interface could still claim these.