An implementation of the Oz programming language on top of Truffle and Graal.
The bootcompiler and Oz libraries are imported from Mozart 2.
Early stage but the Panel and Browser are working.
- Java 8
- Maven 3
- C/C++ toolchain (
build-essential
) for building Graal - Python 2.7 (for
mx
) - Ruby >= 2.2.0 (for the launcher)
mkdir mozart-dev
cd mozart-dev
git clone https://github.com/eregon/mozart-graal.git
cd mozart-graal
rake
It takes around 5 min to build everything.
Run with
./oz
Graal is not built by default to save time. To build it, run
rake build:graal
On recent Linux, you need to do part of the build manually, see Building JVMCI.
Eclipse files are auto-generated for the two projects.
We recommend using mozart-dev
as the workspace.
You can then import the projects with:
File
=> Import...
=> General
=> Existing Projects into Workspace
.
Click Browse...
, select mozart-graal
and click Finish
.
If you want to run inside Eclipse, look for the Main
class
in the mozart-graal
project and add in the User Entries of the Classpath tab the Scala library jar,
org.scala-lang.scala-library_*.jar
which you can find under your Eclipse installation plugins/
directory.