Standard JVM | Graal JVM | |
---|---|---|
Linux Ubuntu 14.04.5 | ||
Mac OSX 10.12 |
ZipPy is a fast and lightweight Python 3 implementation built using the Truffle framework. ZipPy leverages the underlying Java JIT compiler and compiles Python programs to highly optimized machine code at runtime.
ZipPy is currently maintained by Secure Systems and Software Laboratory at the University of California, Irvine.
- Install the most recent JDK 8
-
Create a working directory ($ZIPPY_HOME)
-
Clone mxtool:
$ cd $ZIPPY_HOME $ git clone https://github.com/graalvm/mx.git
-
Append the
mx
build tool directory to yourPATH
.$ export PATH=$ZIPPY_HOME/mx:$PATH
-
Clone ZipPy:
$ git clone https://github.com/securesystemslab/zippy.git
-
Get all ZipPy's dependencies:
$ cd $ZIPPY_HOME/zippy $ mx spull
-
Create a file
$ZIPPY_HOME/zippy/mx.zippy/env
and add JDK pathJAVA_HOME=/path/to/jdk8 DEFAULT_VM=server
For instructions on using Graal JVM: please visit the ZipPy Wiki.
$ cd $ZIPPY_HOME/zippy
$ mx build
$ cd $ZIPPY_HOME/zippy
$ mx python <file.py>
$ cd $ZIPPY_HOME/zippy
$ mx unittest python.test
For more details and instructions for downloading and building the system, please visit the ZipPy Wiki.