
Lessons
An introduction to writing Brainfuck
Eight glyphs, a tape, a pointer. Urban Müller, 1993. A small language that still does the job.
10 lessons · The Host · Lesson 1 free

Lesson 1 · On the house
Eight glyphs and a tape
What Brainfuck is, and why anyone sat down to write it.

Lesson 2
The tape and the pointer
Cells in a row. One pointer. You only touch the cell you are on.

Lesson 3
Plus and minus
The cell under the pointer. Increment, decrement, wrap.

Lesson 4
Left and right
Greater-than moves the pointer right. Less-than moves it left.

Lesson 5
The dot
Output. The current cell as a byte. ASCII if it is a letter.

Lesson 6
The comma
Input. One byte into the current cell. EOF is a local argument.

Lesson 7
Brackets
While the cell is not zero, do this again.

Lesson 8
Move a number
Drain this cell. Pour it into the neighbour.

Lesson 9
A letter, then Hello
Nested loops build a number. A famous listing prints a greeting.

Lesson 10
Why eight glyphs
Esolang culture. A compiler as a joke. Then you stop.
Certificate
Sign in to claim it
The certificate sits behind a desk login. Sign in or create an account, then type your name and download the JPG.