The Crystal Programming Language
Pull request Compare This branch is 7569 commits behind crystal-lang:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
bootstrap
lib
samples
spec
std
.gitignore
.rspec
.rvmrc
.travis.yml
Gemfile
Gemfile.lock
Makefile
README.md
Rakefile
Vagrantfile

README.md

Crystal Build Status Coverage Status

Crystal is a programming language with the following goals:

  • Have the same syntax as Ruby, or at least as similar as possible.
  • Never have to specify the type of a variable or method argument.
  • Be able to call C code by writing bindings to it in Crystal.
  • Have compile-time evaluation and generation of code, to avoid boilerplate code.
  • Compile to efficient native code.

Interested? Read the introduction or the docs for developers.

Questions or suggestions? Ask in our Google Group or join our IRC channel #crystal-lang at irc.freenode.net

Why?

We love Ruby's efficiency for writing code.

We love C's efficiency for running code.

We want the best of both worlds.

We want the compiler to understand what we mean without having to specify types everywhere.

We want full OOP.

Oh, and we don't want to write C code to make the code run faster.

Status

The project is in pre-alpha stage: we are still designing the language and prototying a compiler in Ruby, while at the same time writing a compiler in Crystal.

Installing

You will need:

  • Ruby 1.9
  • LLVM 3.3 installed as a shared library.

Then:

  1. Clone the repository
  2. Install bundler if you don't have it already: gem install bundler
  3. Execute bundle

Finally run crystal:

bin/crystal --help

githalytics.com alpha