Skip to content

schillpeet/wtf-bf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wtf-bf

Language: Brainfuck License

This is a small side project written in Brainfuck – a minimalist, esoteric programming language made up of just eight commands. While Brainfuck is Turing-complete, it's mostly used for puzzles, experimentation, and brain-twisting fun rather than practical applications.

I used it here purely for the challenge and enjoyment – as a creative exercise to output the sentence that had been a brainfuck for me for years.

Optimization

Purely for the challenge, I've been trying to optimize bf programs to use as few commands as possible. By using 5 cells and setting them to 81 35 45 99 121, the program wtf-optimised.bf moves between the cells updating them and outputting them to save commands (955 -> 397).
Thread tracking google sheets

Check optimization-notes.md for notes on how this works.

Usage

macOS

$ brew install brainfuck
$ brainfuck wtf.bf

windows

npm i -g bf-cli
bf-cli wtf.bf

npx bf-cli wtf.bf

About

brainfuck - just for fun

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors