Code Monkey home page Code Monkey logo

jazz's Introduction

Jazz

Jazz - JIT/AOT compiled programming language that uses gccjit for emitting machine code.

Roadmap

You can see roadmap there: Jazz Roadmap

TODO

  • comptime functions DONE!
  • Macros
  • Jazz2C++ Translator DONE!
  • Struct initialization: DONE!

Building book

$ cd book
$ mdbook build
$ mdbook serve

Now you can open http://localhost:3000/ in your browser.

Example code

Factorial:

import "std/libc.jazz"
func factorial(x: i32) i32 {
    if x == 0 {
        return 1;
    } else {
        return factorial(x - 1) * x;
    }
}

pub func main() i32 {
    printf("%i\n",factorial(5));

    return 0;
} 

Building

  1. Install libgccjit with version >= 9: Fedora Linux
    sudo dnf install libgccjit-devel
    
    Ubuntu Linux
    sudo apt install libgccjit-9-dev
    
  2. Run cargo build --release
  3. Run cargo install --path .

Libraries and programs written in Jazz

  • AllegroJazz Jazz bindings to Allegro 5 library.
    • Snake Snake game written in Jazz using AllegroJazz library

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.