[Haskell-cafe] Announce: berp, an implementation of Python 3, in Haskell

Bernie Pope florbitous at gmail.com
Mon May 31 10:04:57 EDT 2010


I'm pleased to announce the first public release of berp, version 0.0.2.

Berp is (the beginnings of) an implementation of Python 3, written in
Haskell. It provides a compiler and an interpreter. In both cases the
input Python program is translated into Haskell code. The compiler
turns the Haskell code into machine code. The interpreter runs the
Haskell code immediately via the GHCi interpreter. The user interface
of the interpreter imitates the one provided by CPython.

A cabal package is available:

  http://hackage.haskell.org/package/berp

The source code is hosted on github:

  http://github.com/bjpop/berp

Documentation is available on a github wiki:

  http://wiki.github.com/bjpop/berp/

Note: berp is known to work with GHC 6.10.4, but it may not work with
6.12.x, due to issues with GHC's memory usage when compiling the
language-python package (ticket #3972 on the GHC trac).

As you can see by the very low version number (0.0.2), berp is still
young; there is lots of room for improvement. However, it does support
a fairly wide variety of Python's features, and some extensions such
as callCC and tail call optimisation. Read more about it on the github
wiki mentioned above.

Cheers,
Bernie.


More information about the Haskell-Cafe mailing list