Coder Social home page Coder Social logo

ark's Introduction

#The Ark Programming Language

Notices

For the final time, we've changed our name. We're the Ark programming language now. We had to get rid of Alloy due to some complications, and finalized on Ark. The entire discussion (which is rather long for a name change) can be found on issue #195.

Due to this name change, we've also migrated the subreddit from r/alloy_lang to r/ark_lang, go subscribe! Finally, our irc has moved from #alloy-lang to #ark-lang

We're also currently porting the backend from C to LLVM, this may take a while and things will be broken. If you want to check out the progress, have a look at issue #345.

Resources

Building

If you want to try out Ark yourself, clone the repository, compile it, and add bin/ark to your path. You can also run the test script (you'll need python) test.py to see if the tests work, though we can't guarantee they will all run successfully if you're building the nightly.

Requirements:

You will need:

  • GNU Make
  • Clang/GCC (we're not sure about other compilers' support)
  • Python 2.4 or above (optional, for running the tests)

Compiling

$ git clone http://www.github.com/ark-lang/ark
$ cd ark
$ make

We're using LLVM by default now, so you can just run make to create the executable.

However, note that the LLVM backend is currently very incomplete, and is only recommended for development purposes. We're working as fast as possible to get it as stable as possible.

Testing

If Ark is in your $PATH:

$ ./test.py

If Ark is not in your $PATH:

$ PATH=$PATH:"./bin/" ./test.py

Just show me what it looks like already

Sure, you can either see a small virtual machine implemented in Ark here. Or you can just see a small Hello World example below:

// c binding for printf
// you have to do this for now, but soon
// we'll have a standard library for this
func printf(format: str, _): int;

func main(): int {
    printf("Hello, World");
    return 0;
}

License

Ark is licensed under the MIT License.

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.