Code Monkey home page Code Monkey logo

fast-brainfuck-interpreter's Introduction

Fast-Brainfuck-Interpreter

An interpreter for the brainfuck language written to be fast and minimal. The program is written in C and it uses the time.h library to measure how many seconds the interpreter function takes to finish. This program was originally written in 2015 to implement a simple genetic algorithm that writes programs in brainfuck (it's a programming language that uses single char instructions and it's turing complete).

Compiling and usage

To compile and execute, use the commands:

gcc -o BFinterpreter.exe BFinterpreter.c 
./BFinterpreter.exe [FILE_TO_EXECUTE]

FILE_TO_EXECUTE must be a brainfuck program. Every non standard brainfuck letter will be ignored by the program (so you can just type characters in there as comments and the interpreter will not fail).

Provided Files

Hanoi_Tower.bf (computes graphically the hanoi tower, code taken here) and mandelbrot_fractal.bf (computes graphically the mandelbrot fractal, code taken here) are brainfuck programs (just text) that are ready to execute and can be used to compare speeds with other brainfuck interpreters.

fast-brainfuck-interpreter's People

Contributors

tecnarca avatar

Stargazers

Michele Lambertucci avatar

Watchers

James Cloos avatar  avatar

fast-brainfuck-interpreter's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.