Getting started with rock
The ooc language was originally implemented in java. The compiler was called ooc, or j/ooc. After several revisions of language optimizations (and great courage), a new compiler was born, rock. The self-hosting aspect of the language is evident through rock, the compiler written in ooc. j/ooc has been left between a rock and a hard place ever since. References to ooc target the language, while references to rock target the actual compiler that takes ooc code (typically .ooc file extension), translates it to c99 code, and then compiles it into a binary file.
-
The one-liner
Ubuntu comes with wget, OS X with curl:
curl: bash -c "`curl -L http://ooc-lang.org/install.sh`"
wget: bash -c "`wget -O - http://ooc-lang.org/install.sh`"
Note: If you go with one-line installation, you are set. The following steps are for manual compilation
-
Clone rock
git clone http://github.com/nddrylliog/rock.git
-
Change directory
cd rock
-
Prepare the source
Download bootstrap source and extract into the root of the rock directory. A folder called build should appear
-
Compile
make
-
Set up environmental variables
export ROCK_DIST=/path/to/rock
export PATH=$ROCK_DIST/bin:$PATH
-
If you use Windows
Download this precompiled binary version
Now, that wasn't so hard, was it?
You are now ready to get started. Follow the guides, read the docs, watch the screencasts, join the irc channel, and enjoy life to the fullest!
