Skip to content

Jacoblightning/yabafoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YABAFOC: Yet Another BrAinFuck Optimizing Compiler

YABAFOC is an optimizing brainfuck compiler written in python.

Requirements

YABAFOC requires gcc in path currently but hopefully will support other C Compilers

Speed

YABAFOC is the best in class; Outpacing El brainfuck, bfc, and even Ρ‴ (Tritium) (somehow) (We also outpace Speedfuck according to their readme but I didn't download and check it.)

To get the most speed out of YABAFOC, run it with the --unsafe-optimizations flag. This can increase speed up to 2x and more.

But I want proof of YABAFOC's speed.

Well, download and run it yourself...

But if I must, here are the timing results for common benchmarks (on my machine):

mandelbrot.b: 276ms

hanoi.b: 4ms

golden.b: 7ms

beer.b: 2ms

bench.b: 2ms

As you can see, all of these are easily completed ahead of the competition (I'm going to regret saying this aren't I)

Because of this, I created my own benchmark: fib40 (Precompiled)

YABAFOC runs fib40 in 12s 285ms

For comparison, BFC takes 44s 935ms and P‴ takes 17s 753ms

ISSUES

If a program fails to produce the correct output or somehow manages to crash without unsafe optimizations, please open an issue and I will take a look at it.

About

Yet Another BrAinFuck Optimizing Compiler

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors