Git Product home page Git Product logo

mozart-graal's Introduction

Mozart-Graal

Build Status

An implementation of the Oz programming language on top of Truffle and Graal.

The bootcompiler and Oz libraries are imported from Mozart 2.

Interesting Points

  • A master thesis was made with this project to optimize performance. It details many static and dynamic optimizations.

  • Tail calls are optimized and compiled as loops, see TailCallCatcherNode. Self-recursion is optimized further in SelfTailCallCatcherNode.

  • There is a Truffle AST serializer in OzSerializer using Kryo able to serialize Oz code.

  • The project uses the Coroutine patch for HotSpot to be able to create many lightweight threads.

  • The parser, typer, and some optimizations are written in Scala (bootcompiler/) and the AST produced by Scala is then translated to a Truffle AST in Translator.

Current Status

Early stage but the Panel and Browser are working.

The Panel On Mozart-Graal

Dependencies

  • Java 8
  • Maven 3
  • C/C++ toolchain (build-essential) for building Graal
  • Python 2.7 (for mx)
  • Ruby >= 2.2.0 (for the launcher)

Build instructions

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

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.

IDE: IntelliJ IDEA

IntelliJ IDEA configuration are checked in the repository and should work out of the box. Import mozart-dev as a project.

mozart-graal's People

Contributors

alexgian avatar anthonygego avatar eregon avatar francoisfonteyn avatar gdeb avatar gdemelo avatar ggutierrez avatar kennytm avatar layus avatar mistasse avatar mon-ouie avatar necrodome avatar sjmackenzie avatar sjrd avatar yjaradin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.