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

#1135 in Development tools

Download history 17/week @ 2022-07-22 1/week @ 2022-07-29 1/week @ 2022-08-19 17/week @ 2022-08-26 3/week @ 2022-09-02 69/week @ 2022-09-09 19/week @ 2022-09-16 1/week @ 2022-09-23 1/week @ 2022-09-30 2/week @ 2022-10-07 51/week @ 2022-11-04

53 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.9–1.3MB
~21K SLoC