sunjay / brain

A high level programming language that compiles into the brainfuck esoteric programming language
MIT License
173 stars 12 forks source link

Optimize brainfuck output #1

Open sunjay opened 7 years ago

sunjay commented 7 years ago

We want to generate the smallest brainfuck files possible while still using as few brainfuck cells as possible. Less instructions is a greater priority than memory efficiency since brainfuck doesn't use that much memory to begin with. That being said, memory is still important and must be taken into account.

Resources:

sunjay commented 7 years ago

The basic scaffolding for optimizations has been implemented. More optimizations will be added as time goes on and more features are added to the language. This issues tracks the progress of that work and other future optimizations as well.