Brainfuck interpreter in Rust
MIT License
Quick 'n dirty BrainFuck interpereter in Rust.
Rust 1.25.0 or higher (I jumped on those nested import groups). Or download the 64-bit Linux binary from releases.
bfrs
accepts a brainfuck file as its first argument, and optionally a second argument of either -d
or --debug
to dump machine state after each instruction, which is obnoxious. For example: bfrs resource/benchmark.b -d
.
Use cargo run, test, install, --release, etc.
Middling.
On my machine (AMD A10-5750M) it runs benchmark.b
in 6.66 seconds and mandel.b
in 95.02 seconds.
First stab at it was even worse, 13.21 and 221.16 respectively, so, you know, gainz.
This crazy page from this crazy guy. Thanks, Cristof. He wrote the sierpinksi one and some of the other tests I've been using.
Benchmark and Mandlebrot programs yanked from kostya.