17 releases

Uses old Rust 2015

0.4.8 May 30, 2018
0.4.7 May 22, 2018
0.4.5 Jun 3, 2017
0.4.2 May 30, 2017
0.2.6 May 27, 2017

#928 in Programming languages

Download history 4/week @ 2024-04-03 1/week @ 2024-05-15 2/week @ 2024-06-05 2/week @ 2024-06-12 4/week @ 2024-06-26 105/week @ 2024-07-03

109 downloads per month

MIT license

155KB
3.5K SLoC

Rust 2.5K SLoC // 0.0% comments C++ 1K SLoC // 0.2% comments Shell 39 SLoC // 0.0% comments

bf-rs: Brainfuck in Rust

Build Status Crates.io License: MIT

bf-rs is a optimizing Brainfuck interpreter and JIT compiler inspired by 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.

This crate supports Rust version 1.20 and later. However, by default, installing bf does not enable the JIT compiler, because that requires nightly Rust. To build and install from crates.io with the JIT enabled:

$ cargo +nightly install --features=jit bf

If you’re interested in how it works, see the documentation.

Dependencies

~0.6–1.1MB
~11K SLoC