develooper Front page | perl.perl6.announce | Postings from August 2009

MiniPerl6 1.0 "Perlito" bootstrapped in SBCL Lisp

Thread Next
Flavio S. Glock
August 29, 2009 00:17
MiniPerl6 1.0 "Perlito" bootstrapped in SBCL Lisp
Message ID:
MiniPerl6 (mp6) is a subset of Perl 6, which was designed as a light
bootstrapping language. The initial bootstrap used and was then
self-hosted in Perl 5.

MiniPerl6 is now self-hosted both in SBCL Lisp and in Perl 5.

A developer can modify the compiler source code (written in MiniPerl6)
and recompile either with the Perl 5 or with the SBCL backend. The
backends can cross-compile to each other.

MiniPerl6 can be downloaded from the Pugs repository:

$ svn checkout pugs
$ cd pugs/v6/v6-MiniPerl6

You can create an executable binary using these commands:

$ sh lisp-util/
$ sbcl --load mp6-lisp-create-core-image.lisp
$ chmod +x mp6-lisp
$ ./mp6-lisp -e ' class Main { say "hello, World!" } '
 ... lisp compiler warnings
hello, World!

The bootstrapping procedure for both "perl" and "lisp" backends can be
tested with:

$ sh perl5-util/
$ diff -r lib5 lib5-tmp   #  should show no differences

$ sh lisp-util/
... lisp compiler warnings
$ diff -r liblisp liblisp-tmp   #  should show no differences


MiniPerl6 compiler structure

2006.11.02 - MiniPerl6 design

2007.10.19 - KindaPerl6 in Lisp (KindaPerl6 is a Perl 6 compiler
written in MiniPerl6) (Perl 6 in Perl 5)

- Flávio S. Glock

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About