PocketFuck+
PocketFuck is an improved version of PocketFuck by User:None1. Programs in this esolang are small enough to be put in your pocket!
How to write Programs
To write a program in PocketFuck+, first write a program in brainfuck, then convert every instruction into 3 binary bits using the table below.
Binary Conversion | brainfuck |
---|---|
000 | + |
001 | - |
010 | > |
011 | < |
100 | , |
101 | . |
110 | [ |
111 | ] |
Then group the binary bits 32 by 32 (If the number of bits is not divisible, add zeros until it is), every 24 bits stands for the RGBA value (e.g.: 10011010110011100000000011111111
becomes (154, 206, 0, 255)) of a pixel in the image.
Finally, arrange the pixels into an image, starting from the top left corner, going right then restarting at the next line from the left.
Unlike other brainfuck-based image esolangs, PocketFuck uses every bit in every pixel to store instructions, allowing it to be very space-efficient.
As every bit in the image counts, you must use lossless image formats that supports RGBA, like PNG.