Skip to content
Dan Connolly edited this page May 27, 2016 · 16 revisions

Starting a Monte REPL with docker

We provide a montelang images, repl and monte-dev, for use with docker.

$ docker run -it montelang/repl

▲> 1+1
Result: 2

Monte quick start with Nix

Once you get nix, you can subscribe to the typhon-latest channel and install monte:

$ nix-channel --add http://selina.inze.house:3000/project/typhon/channel/latest
$ nix-channel --update
$ nix-env -i monte
$ nix-env -q
monte

Then you can start the REPL:

$ monte repl
...
▲> 1+1
Result: 2

Or run a script:

$ monte eval myscript.mt

Keeping up to date

$ nix-channel --update
$ nix-env -i monte

Why nix?

The move to libuv took the project beyond pure rpython into C/C++ dependencies, and nix provides an elegant way to manage the dependency.

How to get Nix on Ubuntu

Pick from the nix downloads and install, for example, nix_1.10-1_amd64.deb. Then, following the installation instructions:

$ sudo mkdir /nix
$ sudo chown $LOGNAME /nix
$ source /etc/profile.d/nix.sh