Brainfuck in Rust
bf-rs
is a Brainfuck interpreter and JIT compiler
based on Eli Bendersky’s series on JIT
compilation.
It includes a library crate, bf
, that exports most of the
functionality, and an
executable bfi
that provides a command-line interface for executing
Brainfuck programs.
By default, installing bf
does not enable the JIT compiler, because
that requires nightly Rust. To build with the JIT enabled:
$ rustup run nightly cargo build --release --features jit