Skip to content

Jumbub/bf-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

a pretty fast brainfuck interpreter

it's possible that this is the fastest non-jit interpreter (see the competition)

it's also possible that this is just tuned to my system and won't be fast for anyone else

see the notable micro-optimisations for fun insights


the competition

mine:

  • (0.77s) ./build/src/standalone/brainfuck samples/mandelbrot.b 0.77s user 0.00s system 99% cpu 0.769 total

other non-jit entries:

the fastest jit implementation for reference:


running the interpreter

build:

cmake --preset release
cmake --build --preset all

run:

./build/src/standalone/brainfuck samples/mandelbrot.b
./build/src/tests/tests

notable micro-optimisations


references

About

brainfuck go fkkkkkkk

Topics

Resources

Stars

Watchers

Forks