There are two ways to install fortytwo-lang.
For compiling fortytwo-lang yourself, you need to install rust.
# Clone repository
$ git clone https://github.com/linuskmr/fortytwo-lang
$ cd fortytwo-lang
# Add WebAssembly WASI target for rust
$ rustup target add wasm32-wasi
# Compile to WebAssembly WASI
$ cargo build --target wasm32-wasi --release
# Run generated WebAssembly binary with wasmer...
$ wasmer run --dir . target/wasm32-wasi/release/ftlcc.wasm examples/extern_write.ftl
# ... or with wasmtime
$ wasmtime run --dir . target/wasm32-wasi/release/ftlcc.wasm examples/extern_write.ftl
For using the docker container, you need to install docker first.
Alternatively you can use the online docker playground.
Pull the existing image from hub.docker.com:
docker pull linuskmr/fortytwo-lang
Run fortytwo-lang in the container. Replace BINARY
with the binary and arguments you want to run.
docker run -i linuskmr/fortytwo-lang BINARY
docker build -t fortytwo-lang .
Run fortytwo-lang in the container. Replace BINARY
with the binary and arguments you want to run.
docker run -i fortytwo-lang BINARY
For compiling fortytwo-lang yourself, you need to install rust.
cargo install --git https://github.com/linuskmr/fortytwo-lang
Now you can run it. Replace BINARY
with the binary and arguments you want to run.
BINARY
Download the git repository and build:
git clone https://github.com/linuskmr/fortytwo-lang
cd fortytwo-lang
cargo build --release
Now you can run it. Replace BINARY
with the binary and arguments you want to run.
./BINARY