b9 is an educational language runtime and programming language! We’re using it to show people how to use Eclipse OMR to build their own language runtime with a Just in Time (JIT) Compiler! The b9 language, b9porcelain, is a simple subset of JavaScript.
This page contains some basic instructions to get you started. For more detailed instructions, go to:
To get started with b9 using the Ninja build system, you'll need the following:
git
build-essential
nodejs
(Minimum version 4.5.0)npm
esprima
cmake
(Minimum version 3.2.0)ninja
git clone --recursive https://github.com/b9org/b9.git
cd b9 \
&& npm install esprima \
&& cd ..
mkdir build \
&& cd build \
&& cmake -GNinja -DCMAKE_BUILD_TYPE=Debug ../b9 \
&& ninja
In the build
directory, run:
./b9run/b9run ./test/hello.b9mod
You can run the full b9 test suite with:
ninja test
If you'd like to build your own language runtime, you can follow our Developer Journey to see the steps we took in building b9.