Lisp and Stalin
Moderator: Ras
-
jwes
- Posts: 778
- Joined: Sat Jul 01, 2006 7:11 am
Lisp and Stalin
I just read about the Stalin compiler for Lisp. It supposedly generates optimized c code from lisp. Has anyone tried it ?
-
sje
- Posts: 4675
- Joined: Mon Mar 13, 2006 7:43 pm
Re: Lisp and Stalin
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.
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.
-
sje
- Posts: 4675
- Joined: Mon Mar 13, 2006 7:43 pm
Re: Lisp and Stalin
I found a Scheme chess program source:
http://synthcode.com/scheme/kishi.scm
It even has an xboard interface.
http://synthcode.com/scheme/kishi.scm
It even has an xboard interface.
-
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 *
Nice find Steven.sje wrote:I found a Scheme chess program source:
http://synthcode.com/scheme/kishi.scm
It even has an xboard interface.
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.
-
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 *
I had a look through the src and found some command-line options/switches that Kishi uses >
Examples:
Jim.
Examples:
Code: Select all
kishi.exe -xboard -depth=6 -position=fen.epd -verbose -ansi -unicode -no-display -reverse-video -black-
sje
- Posts: 4675
- Joined: Mon Mar 13, 2006 7:43 pm
Re: Lisp and Stalin - * Kishi Windows-winboard build here *
I think the command line switch "-b" sets black as the program color. Haven't tried it yet, though.Jim Ablett wrote:Or should I say half-working, it only plays as black.
I don't see an underpromotion capability. Certain draw types are also ignored, although the xboard interface could still claim these.